Skip to content

SIGSEGV when testing, version bdfc3faa253a #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cldorian opened this issue Dec 5, 2009 · 2 comments
Closed

SIGSEGV when testing, version bdfc3faa253a #387

cldorian opened this issue Dec 5, 2009 · 2 comments

Comments

@cldorian
Copy link
Contributor

cldorian commented Dec 5, 2009

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. hg pull -u
2. ./all.bash

What is the expected output? What do you see instead?
Expected:
--- cd ../test
N known bugs; 0 unexpected bugs

Saw:
...
cd testing/quick && gomake test
make[1]: Entering directory `/home/charles/go/src/pkg/testing/quick'
gotest
make[2]: Entering directory `/home/charles/go/src/pkg/testing/quick'
rm -f _test/testing/quick.a _gotest_.8
make[2]: Leaving directory `/home/charles/go/src/pkg/testing/quick'
make[2]: Entering directory `/home/charles/go/src/pkg/testing/quick'
8g -o _gotest_.8 quick.go    quick_test.go
rm -f _test/testing/quick.a
gopack grc _test/testing/quick.a _gotest_.8 
make[2]: Leaving directory `/home/charles/go/src/pkg/testing/quick'
SIGSEGV: segmentation violation
Faulting address: 0x0
PC=0x0

hash_insert+0x31 /home/charles/go/src/pkg/runtime/hashmap.c:460
    hash_insert(0x40110320, 0x40112000, 0x400714ec, 0x809af24)
mapassign+0x5d /home/charles/go/src/pkg/runtime/hashmap.c:821
    mapassign(0x40110320, 0x40112000, 0x40040a98, 0x400468c0)
reflect·mapassign+0x36 /home/charles/go/src/pkg/runtime/reflect.c:24
    reflect·mapassign(0x40110320, 0x40112000, 0x40040a98, 0x809dcc8)
reflect·*MapValue·SetElem+0x150 /home/charles/go/src/pkg/reflect/value.go:1013
    reflect·*MapValue·SetElem(0x401116f0, 0x4006e4b0, 0x4006bcb0, 0x4006e4b0,
0x4006bc90, ...)
quick·Value+0xd7c /home/charles/go/src/pkg/testing/quick/quick.go:92
    quick·Value(0x400468c0, 0x809d520, 0x4010e138, 0x0, 0x0, ...)
quick·arbitraryValues+0xb1 /home/charles/go/src/pkg/testing/quick/quick.go:330
    quick·arbitraryValues(0x4010e130, 0x1, 0x1, 0x8099720, 0x80b90b0, ...)
quick·CheckEqual+0x219 /home/charles/go/src/pkg/testing/quick/quick.go:303
    quick·CheckEqual(0x8099718, 0x804ae04, 0x8099718, 0x804ae04, 0x80b90b0, ...)
quick·TestCheckEqual+0x673
/home/charles/go/src/pkg/testing/quick/quick_test.go:82
    quick·TestCheckEqual(0x4006b730, 0x0)
testing·tRunner+0x2c /home/charles/go/src/pkg/testing/testing.go:132
    testing·tRunner(0x4006b730, 0x80aab20, 0x0)
goexit /home/charles/go/src/pkg/runtime/proc.c:135
    goexit()
0x4006b730 unknown pc

goroutine 1 [4]:
gosched+0x48 /home/charles/go/src/pkg/runtime/proc.c:521
    gosched()
chanrecv+0x2e1 /home/charles/go/src/pkg/runtime/chan.c:319
    chanrecv(0x400465c0, 0x40070eb0, 0x0, 0x400720d8)
runtime·chanrecv1+0x4e /home/charles/go/src/pkg/runtime/chan.c:415
    runtime·chanrecv1(0x400465c0, 0x80aab20)
testing·Main+0x27b /home/charles/go/src/pkg/testing/testing.go:159
    testing·Main(0x80aab20, 0x3)
main·main+0x29 /home/charles/go/src/pkg/testing/quick/_testmain.go:16
    main·main()
mainstart+0xf /home/charles/go/src/pkg/runtime/386/asm.s:81
    mainstart()
goexit /home/charles/go/src/pkg/runtime/proc.c:135
    goexit()
eax     0x0
ebx     0x40110320
ecx     0x40112000
edx     0x40110320
edi     0x4
esi     0x40071494
ebp     0x40112000
esp     0x400714a4
eip     0x0
eflags  0x10212
cs      0x73
fs      0x0
gs      0x3f
/home/charles/bin/gotest: line 164: 13958 Trace/breakpoint trap   $E
./$O.out "$@"
make[1]: *** [test] Error 133
make[1]: Leaving directory `/home/charles/go/src/pkg/testing/quick'
make: *** [testing/quick.test] Error 2


What is your $GOOS?  $GOARCH?
linux, 386

Which revision are you using?  (hg identify)
bdfc3faa253a tip

Please provide any additional information below.
To be sure, deleted current go install, re-installed go, ran ./all.bash,
got expected output.  Then ran hg pull -u and ./all.bash to yield SIGSEGV
as above.  Linux version is: 2.6.31-16-generic #52-Ubuntu
@cldorian
Copy link
Contributor Author

cldorian commented Dec 6, 2009

Comment 1:

Fixed by revision c04006fe887b tip.  Thanks.

@rsc
Copy link
Contributor

rsc commented Dec 10, 2009

Comment 2:

Owner changed to [email protected].

Status changed to Fixed.

@cldorian cldorian added the fixed label Dec 10, 2009
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants