Skip to content

reflect: gc crash in tests #7502

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
bradfitz opened this issue Mar 10, 2014 · 4 comments
Closed

reflect: gc crash in tests #7502

bradfitz opened this issue Mar 10, 2014 · 4 comments
Milestone

Comments

@bradfitz
Copy link
Contributor

Probably a dup but couldn't find it just now.

reflect crash in tests, during GC: 
http://build.golang.org/log/ac63a0b543eae3e99c8eb2fa033d4e968041e997

ok      os/signal   1.328s
ok      os/user 0.116s
ok      path    0.005s
ok      path/filepath   0.400s
SIGSEGV: segmentation violation
PC=0x406da9

goroutine 0 [idle]:
scanblock(0x207544000, 0xc20806fd00)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/mgc0.c:949 +0x389
markroot(0xc208016480, 0x2b0000000b)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/mgc0.c:1342 +0xd9
runtime.parfordo(0xc208016480)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/parfor.c:88 +0xa3
gc(0x20f5cac18)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/mgc0.c:2324 +0x183
mgc(0xc208002fc0)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/mgc0.c:2274 +0x2e
runtime.mcall(0x42a3bb)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/asm_amd64.s:181 +0x4b

goroutine 93 [garbage collection]:
runtime.gc(0x200000000)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/mgc0.c:2243 +0x1b2 fp=0x20f5cac28
runtime.mallocgc(0x20, 0x5cf6a0, 0x0)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/malloc.goc:206 +0x1b7 fp=0x20f5cac90
runtime.new(0x5cf6a0, 0x0)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/malloc.goc:815 +0x32 fp=0x20f5cacb0
reflect.Value.SetMapIndex(0xc20802d3e0, 0xc208040c90, 0x0, 0x150, 0x569da0, ...)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/reflect/value.go:1606 +0x45 fp=0x20f5cad48
reflect_test.TestMapOfGCKeys(0xc208038990)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/reflect/all_test.go:3369 +0x304 fp=0x20f5caf68
testing.tRunner(0xc208038990, 0x834ba8)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/testing/testing.go:422 +0x9d fp=0x20f5caf98
runtime.goexit()
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/proc.c:1448 fp=0x20f5cafa0
created by testing.RunTests
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/testing/testing.go:503 +0x8d6

goroutine 16 [chan receive]:
testing.RunTests(0x78c4b0, 0x834500, 0x57, 0x57, 0x81ab01)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/testing/testing.go:504 +0x906
testing.Main(0x78c4b0, 0x834500, 0x57, 0x57, 0x82e680, ...)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/testing/testing.go:435 +0x9e
main.main()
    /tmp/go-build800335398/reflect/_test/_testmain.go:233 +0x9c

goroutine 51 [sleep]:
time.Sleep(0x3b9aca00)
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/runtime/time.goc:36 +0x31
reflect_test.selectWatcher()
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/reflect/all_test.go:1352 +0x40
created by reflect_test.func·003
    /home/gopher/gobuilder/openbsd-amd64-rootbsd-9a60a27637a4/go/src/pkg/reflect/all_test.go:1082 +0x22

rax     0x2
rbx     0x5923f8
rcx     0x0
rdx     0xc208400000
rdi     0x0
rsi     0xc2083fffd0
rbp     0x0
rsp     0xc20806fa40
r8      0xc207ffd388
r9      0xc20806fab8
r10     0xd
r11     0x212
r12     0xc20804e218
r13     0xc20804e180
r14     0x2
r15     0xc20800c880
rip     0x406da9
rflags  0x10246
cs      0x2b
fs      0x23
gs      0x23
FAIL    reflect 0.996s
ok      regexp  0.447s
ok      regexp/syntax   0.977s
@remyoudompheng
Copy link
Contributor

Comment 1:

Looks like a variant of issue #7159, although not happening exactly at the same point.

@4ad
Copy link
Member

4ad commented Mar 15, 2014

@4ad
Copy link
Member

4ad commented Mar 15, 2014

Comment 3:

Filed issue #7554 for the above crashes (separate issue because of runtime vs. reflect).

@rsc
Copy link
Contributor

rsc commented Apr 3, 2014

Comment 4:

I have fixed a bunch of gc bugs and have some CLs still pending. If the crash is still
present once those are in (let's say Monday April 7) then please file a new issue.

Status changed to TimedOut.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@rsc rsc removed the release-go1.3 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
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

5 participants