Skip to content
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

runtime: TestPanicSystemstack fails #26393

Closed
ysmolsky opened this issue Jul 15, 2018 · 6 comments

Comments

Projects
None yet
6 participants
@ysmolsky
Copy link
Member

commented Jul 15, 2018

Running the test on El Capitan.

go version devel +c2eba53e7f Sat Jul 14 06:48:21 2018 +0000 darwin/amd64

go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/thorn/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/thorn/go"
GOPROXY=""
GORACE=""
GOROOT="/Users/thorn/golang"
GOTMPDIR=""
GOTOOLDIR="/Users/thorn/golang/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/km/50gy6_q557v6_7vxbf9b29v00000gn/T/go-build856870210=/tmp/go-build -gno-record-gcc-switches -fno-common"

Failed test

go test runtime fails in the TestPanicSystemstack:

details

$ go test runtime
--- FAIL: TestPanicSystemstack (0.03s)
crash_unix_test.go:227: traceback missing system stack:
     SIGQUIT: quit
    PC=0x7fff8fb61db6 m=0 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x7fff5fbff2d8, fp:0x0} stack=[0x7fff5fb804c0,0x7fff5fbff530)
    00007fff5fbff1d8:  000000c000000002  0000000001009e68 <runtime.Caller+120>
    00007fff5fbff1e8:  0000000000000000  000000c0000bbf88
    00007fff5fbff1f8:  00007fff96969cdb  00007fff5fbff248
    00007fff5fbff208:  000000c00005e380  0000000000000100
    00007fff5fbff218:  0000000000000002  0000000000000301
    00007fff5fbff228:  0000030000000101  000000c00005e39c
    00007fff5fbff238:  0000000000000000  000000c00005e380
    00007fff5fbff248:  000000c00005e3a0  0000000000000200
    00007fff5fbff258:  0000020000000300  00007fff5fbff2e0
    00007fff5fbff268:  00007fff96967540  0000000000000000
    00007fff5fbff278:  0000020000000000  000000c00005e380
    00007fff5fbff288:  0106280000000000  00007fff5fbff364
    00007fff5fbff298:  00007fff5fbff360  00007fff5fbff350
    00007fff5fbff2a8:  0000000000000100  0000000000000200
    00007fff5fbff2b8:  000000000150d360  0000000000000101
    00007fff5fbff2c8:  000000000150d3a0  00007fff5fbff390
    00007fff5fbff2d8: <00007fff96969728  0000000000000000
    00007fff5fbff2e8:  0000000000000000  00007fff5fbff368
    00007fff5fbff2f8:  0000000000000000  0000000000000000
    00007fff5fbff308:  000000015fbff408  000000000150d360
    00007fff5fbff318:  000000000150d3a0  000000000150d3c0
    00007fff5fbff328:  00007fff9696be9a  000000000150d3a0
    00007fff5fbff338:  0000000000000000  00007fff5fbff360
    00007fff5fbff348:  00007fff8fb5c806  0000000000000000
    00007fff5fbff358:  0000006000000000  0000040000000400
    00007fff5fbff368:  00007fff5fbff460  0000000000000030
    00007fff5fbff378:  0000000000000011  000000000132ae10
    00007fff5fbff388:  0000000000000000  00007fff5fbff3a0
    00007fff5fbff398:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  00007fff5fbff418
    00007fff5fbff3a8:  00000000010602dd <runtime.asmcgocall+173>  0000000000000000
    00007fff5fbff3b8:  00000000000003e8  00007fff5fbff3d0
    00007fff5fbff3c8:  000000000106265b <runtime.usleep_trampoline+11>  00007fff5fbff450
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x7fff5fbff2d8, fp:0x0} stack=[0x7fff5fb804c0,0x7fff5fbff530)
    00007fff5fbff1d8:  000000c000000002  0000000001009e68 <runtime.Caller+120>
    00007fff5fbff1e8:  0000000000000000  000000c0000bbf88
    00007fff5fbff1f8:  00007fff96969cdb  00007fff5fbff248
    00007fff5fbff208:  000000c00005e380  0000000000000100
    00007fff5fbff218:  0000000000000002  0000000000000301
    00007fff5fbff228:  0000030000000101  000000c00005e39c
    00007fff5fbff238:  0000000000000000  000000c00005e380
    00007fff5fbff248:  000000c00005e3a0  0000000000000200
    00007fff5fbff258:  0000020000000300  00007fff5fbff2e0
    00007fff5fbff268:  00007fff96967540  0000000000000000
    00007fff5fbff278:  0000020000000000  000000c00005e380
    00007fff5fbff288:  0106280000000000  00007fff5fbff364
    00007fff5fbff298:  00007fff5fbff360  00007fff5fbff350
    00007fff5fbff2a8:  0000000000000100  0000000000000200
    00007fff5fbff2b8:  000000000150d360  0000000000000101
    00007fff5fbff2c8:  000000000150d3a0  00007fff5fbff390
    00007fff5fbff2d8: <00007fff96969728  0000000000000000
    00007fff5fbff2e8:  0000000000000000  00007fff5fbff368
    00007fff5fbff2f8:  0000000000000000  0000000000000000
    00007fff5fbff308:  000000015fbff408  000000000150d360
    00007fff5fbff318:  000000000150d3a0  000000000150d3c0
    00007fff5fbff328:  00007fff9696be9a  000000000150d3a0
    00007fff5fbff338:  0000000000000000  00007fff5fbff360
    00007fff5fbff348:  00007fff8fb5c806  0000000000000000
    00007fff5fbff358:  0000006000000000  0000040000000400
    00007fff5fbff368:  00007fff5fbff460  0000000000000030
    00007fff5fbff378:  0000000000000011  000000000132ae10
    00007fff5fbff388:  0000000000000000  00007fff5fbff3a0
    00007fff5fbff398:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  00007fff5fbff418
    00007fff5fbff3a8:  00000000010602dd <runtime.asmcgocall+173>  0000000000000000
    00007fff5fbff3b8:  00000000000003e8  00007fff5fbff3d0
    00007fff5fbff3c8:  000000000106265b <runtime.usleep_trampoline+11>  00007fff5fbff450

    goroutine 1 [running, locked to thread]:
    runtime.systemstack_switch()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:311 fp=0xc0000bbea8 sp=0xc0000bbea0 pc=0x105ea40
    runtime.BlockOnSystemStack()
    	/Users/thorn/golang/src/runtime/export_test.go:350 +0x2d fp=0xc0000bbec0 sp=0xc0000bbea8 pc=0x105af7d
    runtime_test.testPanicSystemstackInternal()
    	/Users/thorn/golang/src/runtime/crash_unix_test.go:242 +0x22 fp=0xc0000bbed8 sp=0xc0000bbec0 pc=0x11fdad2
    runtime_test.init.2()
    	/Users/thorn/golang/src/runtime/crash_unix_test.go:237 +0x98 fp=0xc0000bbf08 sp=0xc0000bbed8 pc=0x11fda98
    runtime_test.init()
    	<autogenerated>:1 +0x626 fp=0xc0000bbf88 sp=0xc0000bbf08 pc=0x124ccc6
    main.init()
    	<autogenerated>:1 +0x54 fp=0xc0000bbf98 sp=0xc0000bbf88 pc=0x124ffa4
    runtime.main()
    	/Users/thorn/golang/src/runtime/proc.go:189 +0x1bd fp=0xc0000bbfe0 sp=0xc0000bbf98 pc=0x102fc2d
    runtime.goexit()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0000bbfe8 sp=0xc0000bbfe0 pc=0x1060b01

    goroutine 2 [force gc (idle)]:
    runtime.gopark(0x12f7170, 0x150bf40, 0x1410, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:302 +0xeb fp=0xc000034f80 sp=0xc000034f60 pc=0x103006b
    runtime.goparkunlock(0x150bf40, 0x1410, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:308 +0x53 fp=0xc000034fb0 sp=0xc000034f80 pc=0x1030113
    runtime.forcegchelper()
    	/Users/thorn/golang/src/runtime/proc.go:251 +0xb3 fp=0xc000034fe0 sp=0xc000034fb0 pc=0x102fee3
    runtime.goexit()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc000034fe8 sp=0xc000034fe0 pc=0x1060b01
    created by runtime.init.4
    	/Users/thorn/golang/src/runtime/proc.go:240 +0x35

    goroutine 3 [GC sweep wait]:
    runtime.gopark(0x12f7170, 0x150c300, 0x102140c, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:302 +0xeb fp=0xc000035780 sp=0xc000035760 pc=0x103006b
    runtime.goparkunlock(0x150c300, 0x132140c, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:308 +0x53 fp=0xc0000357b0 sp=0xc000035780 pc=0x1030113
    runtime.bgsweep(0xc000020070)
    	/Users/thorn/golang/src/runtime/mgcsweep.go:52 +0x8f fp=0xc0000357d8 sp=0xc0000357b0 pc=0x1021f9f
    runtime.goexit()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0000357e0 sp=0xc0000357d8 pc=0x1060b01
    created by runtime.gcenable
    	/Users/thorn/golang/src/runtime/mgc.go:216 +0x58

    goroutine 18 [finalizer wait]:
    runtime.gopark(0x12f7170, 0x15294e0, 0x10e140f, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:302 +0xeb fp=0xc000034728 sp=0xc000034708 pc=0x103006b
    runtime.goparkunlock(0x15294e0, 0x100140f, 0x1)
    	/Users/thorn/golang/src/runtime/proc.go:308 +0x53 fp=0xc000034758 sp=0xc000034728 pc=0x1030113
    runtime.runfinq()
    	/Users/thorn/golang/src/runtime/mfinal.go:175 +0x99 fp=0xc0000347e0 sp=0xc000034758 pc=0x1019909
    runtime.goexit()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0000347e8 sp=0xc0000347e0 pc=0x1060b01
    created by runtime.createfing
    	/Users/thorn/golang/src/runtime/mfinal.go:156 +0x61

    goroutine 4 [running]:
    	goroutine running on other thread; stack unavailable
    created by runtime_test.init.2
    	/Users/thorn/golang/src/runtime/crash_unix_test.go:236 +0x93

    rax    0x104
    rbx    0x100
    rcx    0x7fff5fbff2d8
    rdx    0x100
    rdi    0x150d3a0
    rsi    0x10100000200
    rbp    0x7fff5fbff390
    rsp    0x7fff5fbff2d8
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0x150d360
    r14    0x10100000200
    r15    0x7fff74eb4000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=2 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000080b98, fp:0x0} stack=[0x700000001290,0x700000080e90)
    0000700000080a98:  0000000000000000  0000000000000000
    0000700000080aa8:  0000000000000000  0000000000000000
    0000700000080ab8:  0000000000000000  0000000000000000
    0000700000080ac8:  0000000000000000  0000000000000000
    0000700000080ad8:  0000000000000000  0000000000000000
    0000700000080ae8:  0000000000000000  0000000000000000
    0000700000080af8:  0000000000000000  0000000000000000
    0000700000080b08:  0000000000000000  0000000000000000
    0000700000080b18:  0000000000000000  0000000000000000
    0000700000080b28:  0000000000000000  0000000000000000
    0000700000080b38:  0000000000000000  0000000000000000
    0000700000080b48:  0000000000000000  0000700000080c24
    0000700000080b58:  0000700000080c20  0000700000080c10
    0000700000080b68:  0000000000000000  0000000000000100
    0000700000080b78:  000000c000038740  0000000000000001
    0000700000080b88:  000000c000038780  0000700000080c50
    0000700000080b98: <00007fff9696975e  000000000000003c
    0000700000080ba8:  0000000000000000  0000000000000000
    0000700000080bb8:  0000000000000000  000000000000003c
    0000700000080bc8:  0000000000000000  000000c000038740
    0000700000080bd8:  000000c000038780  000000c0000387a0
    0000700000080be8:  0000000000000000  0000000000000000
    0000700000080bf8:  0000000000000000  0000000000000000
    0000700000080c08:  0000000000000000  0000000000000000
    0000700000080c18:  0000006000000000  0000010000000100
    0000700000080c28:  0000700000080d20  00000000000008ff
    0000700000080c38:  0000000000000d03  0000000001032bb0 <runtime.mstart+0>
    0000700000080c48:  0000000001001370 <threadentry+0>  0000700000080c60
    0000700000080c58:  0000000001062884 <runtime.pthread_cond_timedwait_relative_np_trampoline+20>  0000700000080cd8
    0000700000080c68:  00000000010602dd <runtime.asmcgocall+173>  00007fff72fd8208
    0000700000080c78:  00007fff969677e8  0000000001062830 <runtime.pthread_cond_init_trampoline+0>
    0000700000080c88:  0000700000080d78  0000700000080ca0
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000080b98, fp:0x0} stack=[0x700000001290,0x700000080e90)
    0000700000080a98:  0000000000000000  0000000000000000
    0000700000080aa8:  0000000000000000  0000000000000000
    0000700000080ab8:  0000000000000000  0000000000000000
    0000700000080ac8:  0000000000000000  0000000000000000
    0000700000080ad8:  0000000000000000  0000000000000000
    0000700000080ae8:  0000000000000000  0000000000000000
    0000700000080af8:  0000000000000000  0000000000000000
    0000700000080b08:  0000000000000000  0000000000000000
    0000700000080b18:  0000000000000000  0000000000000000
    0000700000080b28:  0000000000000000  0000000000000000
    0000700000080b38:  0000000000000000  0000000000000000
    0000700000080b48:  0000000000000000  0000700000080c24
    0000700000080b58:  0000700000080c20  0000700000080c10
    0000700000080b68:  0000000000000000  0000000000000100
    0000700000080b78:  000000c000038740  0000000000000001
    0000700000080b88:  000000c000038780  0000700000080c50
    0000700000080b98: <00007fff9696975e  000000000000003c
    0000700000080ba8:  0000000000000000  0000000000000000
    0000700000080bb8:  0000000000000000  000000000000003c
    0000700000080bc8:  0000000000000000  000000c000038740
    0000700000080bd8:  000000c000038780  000000c0000387a0
    0000700000080be8:  0000000000000000  0000000000000000
    0000700000080bf8:  0000000000000000  0000000000000000
    0000700000080c08:  0000000000000000  0000000000000000
    0000700000080c18:  0000006000000000  0000010000000100
    0000700000080c28:  0000700000080d20  00000000000008ff
    0000700000080c38:  0000000000000d03  0000000001032bb0 <runtime.mstart+0>
    0000700000080c48:  0000000001001370 <threadentry+0>  0000700000080c60
    0000700000080c58:  0000000001062884 <runtime.pthread_cond_timedwait_relative_np_trampoline+20>  0000700000080cd8
    0000700000080c68:  00000000010602dd <runtime.asmcgocall+173>  00007fff72fd8208
    0000700000080c78:  00007fff969677e8  0000000001062830 <runtime.pthread_cond_init_trampoline+0>
    0000700000080c88:  0000700000080d78  0000700000080ca0
    rax    0x104
    rbx    0x0
    rcx    0x700000080b98
    rdx    0x0
    rdi    0xc000038780
    rsi    0x100000100
    rbp    0x700000080c50
    rsp    0x700000080b98
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x246
    r12    0x100
    r13    0xc000038740
    r14    0x100000100
    r15    0xc000038780
    rip    0x7fff8fb61db6
    rflags 0x247
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=3 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000103b28, fp:0x0} stack=[0x700000084290,0x700000103e90)
    0000700000103a28:  0000000001015aff <runtime.heapBits.forwardOrBoundary+111>  0000000004203900
    0000700000103a38:  0020300000000000  00000000043fffff
    0000700000103a48:  0000000000000400  0000000004203a00
    0000700000103a58:  0020300000000000  00000000043fffff
    0000700000103a68:  0000700000103ae8  0000000001016686 <runtime.heapBits.initSpan+406>
    0000700000103a78:  0000000004203900  0000000000000100
    0000700000103a88:  00000000043fffff  0000000000000400
    0000700000103a98:  0000000004203a00  0020300000000000
    0000700000103aa8:  00000000043fffff  0000000000000400
    0000700000103ab8:  0020300000000000  0000000000000100
    0000700000103ac8:  0000000000000400  0000000000000400
    0000700000103ad8:  00000000043fffff  0000700000103bb4
    0000700000103ae8:  0000700000103bb0  0000700000103ba0
    0000700000103af8:  0000000000000000  0000000000000100
    0000700000103b08:  000000c000038b40  0000000000000001
    0000700000103b18:  000000c000038b80  0000700000103be0
    0000700000103b28: <00007fff96969728  0000000000000000
    0000700000103b38:  00007fff00000000  00000000015f4a00
    0000700000103b48:  0000000000000000  0000000000000000
    0000700000103b58:  00000001015f5e00  000000c000038b40
    0000700000103b68:  000000c000038b80  000000c000038ba0
    0000700000103b78:  00007fff9696be9a  000000c000038b80
    0000700000103b88:  0000000000000000  0000700000103bd0
    0000700000103b98:  00007fff969692ff  0000000000000000
    0000700000103ba8:  0000006000103c68  0000010000000100
    0000700000103bb8:  0000700000103cb8  0000000000000030
    0000700000103bc8:  0000000000000011  000000000132ae10
    0000700000103bd8:  0000000000000000  0000700000103bf0
    0000700000103be8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000103c70
    0000700000103bf8:  00000000010602dd <runtime.asmcgocall+173>  0000700000103c10
    0000700000103c08:  00007fff9696775e  0000700000103c20
    0000700000103c18:  0000000001062840 <runtime.pthread_cond_init_trampoline+16>  0000700000103c98
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000103b28, fp:0x0} stack=[0x700000084290,0x700000103e90)
    0000700000103a28:  0000000001015aff <runtime.heapBits.forwardOrBoundary+111>  0000000004203900
    0000700000103a38:  0020300000000000  00000000043fffff
    0000700000103a48:  0000000000000400  0000000004203a00
    0000700000103a58:  0020300000000000  00000000043fffff
    0000700000103a68:  0000700000103ae8  0000000001016686 <runtime.heapBits.initSpan+406>
    0000700000103a78:  0000000004203900  0000000000000100
    0000700000103a88:  00000000043fffff  0000000000000400
    0000700000103a98:  0000000004203a00  0020300000000000
    0000700000103aa8:  00000000043fffff  0000000000000400
    0000700000103ab8:  0020300000000000  0000000000000100
    0000700000103ac8:  0000000000000400  0000000000000400
    0000700000103ad8:  00000000043fffff  0000700000103bb4
    0000700000103ae8:  0000700000103bb0  0000700000103ba0
    0000700000103af8:  0000000000000000  0000000000000100
    0000700000103b08:  000000c000038b40  0000000000000001
    0000700000103b18:  000000c000038b80  0000700000103be0
    0000700000103b28: <00007fff96969728  0000000000000000
    0000700000103b38:  00007fff00000000  00000000015f4a00
    0000700000103b48:  0000000000000000  0000000000000000
    0000700000103b58:  00000001015f5e00  000000c000038b40
    0000700000103b68:  000000c000038b80  000000c000038ba0
    0000700000103b78:  00007fff9696be9a  000000c000038b80
    0000700000103b88:  0000000000000000  0000700000103bd0
    0000700000103b98:  00007fff969692ff  0000000000000000
    0000700000103ba8:  0000006000103c68  0000010000000100
    0000700000103bb8:  0000700000103cb8  0000000000000030
    0000700000103bc8:  0000000000000011  000000000132ae10
    0000700000103bd8:  0000000000000000  0000700000103bf0
    0000700000103be8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000103c70
    0000700000103bf8:  00000000010602dd <runtime.asmcgocall+173>  0000700000103c10
    0000700000103c08:  00007fff9696775e  0000700000103c20
    0000700000103c18:  0000000001062840 <runtime.pthread_cond_init_trampoline+16>  0000700000103c98
    rax    0x104
    rbx    0x0
    rcx    0x700000103b28
    rdx    0x0
    rdi    0xc000038b80
    rsi    0x100000100
    rbp    0x700000103be0
    rsp    0x700000103b28
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0xc000038b40
    r14    0x100000100
    r15    0x700000104000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=4 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000186b38, fp:0x0} stack=[0x700000107290,0x700000186e90)
    0000700000186a38:  0000000000000000  0000000000000000
    0000700000186a48:  0000000000000000  0000000000000000
    0000700000186a58:  0000000000000000  0000000000000000
    0000700000186a68:  0000000000000000  0000000000000000
    0000700000186a78:  0000000000000000  0000000000000000
    0000700000186a88:  0000000000000000  0000000000000000
    0000700000186a98:  0000000000000000  0000000000000000
    0000700000186aa8:  0000000000000000  0000000000000000
    0000700000186ab8:  0000000000000000  0000000000000000
    0000700000186ac8:  0000000000000000  0000000000000000
    0000700000186ad8:  0000000000000000  0000000000000000
    0000700000186ae8:  0000000000000000  0000700000186bc4
    0000700000186af8:  0000700000186bc0  0000700000186bb0
    0000700000186b08:  0000000000000100  0000000000000200
    0000700000186b18:  000000c000038f40  0000000000000101
    0000700000186b28:  000000c000038f80  0000700000186bf0
    0000700000186b38: <00007fff96969728  0000000000000000
    0000700000186b48:  0000000000000000  0000000000000000
    0000700000186b58:  0000000000000000  0000000000000000
    0000700000186b68:  0000000100000000  000000c000038f40
    0000700000186b78:  000000c000038f80  000000c000038fa0
    0000700000186b88:  00007fff9696be9a  000000c000038f80
    0000700000186b98:  0000000000000000  0000000100000100
    0000700000186ba8:  0000700000187000  0000000000000000
    0000700000186bb8:  00000060969697ad  0000040000000400
    0000700000186bc8:  0000700000186cc8  00000000000008ff
    0000700000186bd8:  0000000000000f03  0000000001032bb0 <runtime.mstart+0>
    0000700000186be8:  0000000001001370 <threadentry+0>  0000700000186c00
    0000700000186bf8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000186c80
    0000700000186c08:  00000000010602dd <runtime.asmcgocall+173>  000000c000038f80
    0000700000186c18:  0000000000000000  0000000000000000
    0000700000186c28:  0000000000000000  0000000000000000
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000186b38, fp:0x0} stack=[0x700000107290,0x700000186e90)
    0000700000186a38:  0000000000000000  0000000000000000
    0000700000186a48:  0000000000000000  0000000000000000
    0000700000186a58:  0000000000000000  0000000000000000
    0000700000186a68:  0000000000000000  0000000000000000
    0000700000186a78:  0000000000000000  0000000000000000
    0000700000186a88:  0000000000000000  0000000000000000
    0000700000186a98:  0000000000000000  0000000000000000
    0000700000186aa8:  0000000000000000  0000000000000000
    0000700000186ab8:  0000000000000000  0000000000000000
    0000700000186ac8:  0000000000000000  0000000000000000
    0000700000186ad8:  0000000000000000  0000000000000000
    0000700000186ae8:  0000000000000000  0000700000186bc4
    0000700000186af8:  0000700000186bc0  0000700000186bb0
    0000700000186b08:  0000000000000100  0000000000000200
    0000700000186b18:  000000c000038f40  0000000000000101
    0000700000186b28:  000000c000038f80  0000700000186bf0
    0000700000186b38: <00007fff96969728  0000000000000000
    0000700000186b48:  0000000000000000  0000000000000000
    0000700000186b58:  0000000000000000  0000000000000000
    0000700000186b68:  0000000100000000  000000c000038f40
    0000700000186b78:  000000c000038f80  000000c000038fa0
    0000700000186b88:  00007fff9696be9a  000000c000038f80
    0000700000186b98:  0000000000000000  0000000100000100
    0000700000186ba8:  0000700000187000  0000000000000000
    0000700000186bb8:  00000060969697ad  0000040000000400
    0000700000186bc8:  0000700000186cc8  00000000000008ff
    0000700000186bd8:  0000000000000f03  0000000001032bb0 <runtime.mstart+0>
    0000700000186be8:  0000000001001370 <threadentry+0>  0000700000186c00
    0000700000186bf8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000186c80
    0000700000186c08:  00000000010602dd <runtime.asmcgocall+173>  000000c000038f80
    0000700000186c18:  0000000000000000  0000000000000000
    0000700000186c28:  0000000000000000  0000000000000000
    rax    0x104
    rbx    0x100
    rcx    0x700000186b38
    rdx    0x100
    rdi    0xc000038f80
    rsi    0x10100000200
    rbp    0x700000186bf0
    rsp    0x700000186b38
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0xc000038f40
    r14    0x10100000200
    r15    0x700000187000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=5 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000209c48, fp:0x0} stack=[0x70000018a290,0x700000209e90)
    0000700000209b48:  0000000000000000  0000000000000000
    0000700000209b58:  000000010002581d  000000c00005e340
    0000700000209b68:  000000c00005e380  000000c00005e3a0
    0000700000209b78:  00007fff9696be9a  000000c00005e380
    0000700000209b88:  0000000000000000  0000000100000100
    0000700000209b98:  000070000020a000  0000000000000000
    0000700000209ba8:  00000060969697ad  00007fff72fd8208
    0000700000209bb8:  000000000000003c  0000700000209be0
    0000700000209bc8:  00007fff8fb5c806  000000000000003c
    0000700000209bd8:  0000000000000000  0000700000209c20
    0000700000209be8:  00007fff8df36d18  0000700000209c70
    0000700000209bf8:  00000000010602dd <runtime.asmcgocall+173>  0000700000209cd4
    0000700000209c08:  0000700000209cd0  0000700000209cc0
    0000700000209c18:  0000000000000300  0000000000000400
    0000700000209c28:  000000c00005e340  0000000000000301
    0000700000209c38:  000000c00005e380  0000700000209d00
    0000700000209c48: <00007fff96969728  0000000000000000
    0000700000209c58:  0000000000000000  0000700000000000
    0000700000209c68:  0000000000000000  0000000000000000
    0000700000209c78:  000000010104e4a1  000000c00005e340
    0000700000209c88:  000000c00005e380  000000c00005e3a0
    0000700000209c98:  00007fff9696be9a  000000c00005e380
    0000700000209ca8:  0000000000000000  00007fff72fd8208
    0000700000209cb8:  000000000000003c  0000000000000000
    0000700000209cc8:  000000608fb5c806  00000a0000000a00
    0000700000209cd8:  0000700000209dd8  0000000000000030
    0000700000209ce8:  0000000000000011  000000000132ae10
    0000700000209cf8:  0000000000000000  0000700000209d10
    0000700000209d08:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000209d90
    0000700000209d18:  00000000010602dd <runtime.asmcgocall+173>  0000700000209d40
    0000700000209d28:  00007fff8df36c02  0000000000000000
    0000700000209d38:  00000000000003e8  0000700000209d50
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x700000209c48, fp:0x0} stack=[0x70000018a290,0x700000209e90)
    0000700000209b48:  0000000000000000  0000000000000000
    0000700000209b58:  000000010002581d  000000c00005e340
    0000700000209b68:  000000c00005e380  000000c00005e3a0
    0000700000209b78:  00007fff9696be9a  000000c00005e380
    0000700000209b88:  0000000000000000  0000000100000100
    0000700000209b98:  000070000020a000  0000000000000000
    0000700000209ba8:  00000060969697ad  00007fff72fd8208
    0000700000209bb8:  000000000000003c  0000700000209be0
    0000700000209bc8:  00007fff8fb5c806  000000000000003c
    0000700000209bd8:  0000000000000000  0000700000209c20
    0000700000209be8:  00007fff8df36d18  0000700000209c70
    0000700000209bf8:  00000000010602dd <runtime.asmcgocall+173>  0000700000209cd4
    0000700000209c08:  0000700000209cd0  0000700000209cc0
    0000700000209c18:  0000000000000300  0000000000000400
    0000700000209c28:  000000c00005e340  0000000000000301
    0000700000209c38:  000000c00005e380  0000700000209d00
    0000700000209c48: <00007fff96969728  0000000000000000
    0000700000209c58:  0000000000000000  0000700000000000
    0000700000209c68:  0000000000000000  0000000000000000
    0000700000209c78:  000000010104e4a1  000000c00005e340
    0000700000209c88:  000000c00005e380  000000c00005e3a0
    0000700000209c98:  00007fff9696be9a  000000c00005e380
    0000700000209ca8:  0000000000000000  00007fff72fd8208
    0000700000209cb8:  000000000000003c  0000000000000000
    0000700000209cc8:  000000608fb5c806  00000a0000000a00
    0000700000209cd8:  0000700000209dd8  0000000000000030
    0000700000209ce8:  0000000000000011  000000000132ae10
    0000700000209cf8:  0000000000000000  0000700000209d10
    0000700000209d08:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  0000700000209d90
    0000700000209d18:  00000000010602dd <runtime.asmcgocall+173>  0000700000209d40
    0000700000209d28:  00007fff8df36c02  0000000000000000
    0000700000209d38:  00000000000003e8  0000700000209d50
    goroutine 4 [running]:
    runtime.systemstack_switch()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:311 fp=0xc000035fb0 sp=0xc000035fa8 pc=0x105ea40
    runtime.BlockOnSystemStack()
    	/Users/thorn/golang/src/runtime/export_test.go:350 +0x2d fp=0xc000035fc8 sp=0xc000035fb0 pc=0x105af7d
    runtime_test.testPanicSystemstackInternal()
    	/Users/thorn/golang/src/runtime/crash_unix_test.go:242 +0x22 fp=0xc000035fe0 sp=0xc000035fc8 pc=0x11fdad2
    runtime.goexit()
    	/Users/thorn/golang/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc000035fe8 sp=0xc000035fe0 pc=0x1060b01
    created by runtime_test.init.2
    	/Users/thorn/golang/src/runtime/crash_unix_test.go:236 +0x93
    rax    0x104
    rbx    0x300
    rcx    0x700000209c48
    rdx    0x300
    rdi    0xc00005e380
    rsi    0x30100000400
    rbp    0x700000209d00
    rsp    0x700000209c48
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0xc00005e340
    r14    0x30100000400
    r15    0x70000020a000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=6 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x70000028cb28, fp:0x0} stack=[0x70000020d290,0x70000028ce90)
    000070000028ca28:  0000000000000000  0000000000000000
    000070000028ca38:  0000000000000000  0000000000000000
    000070000028ca48:  0000000000000000  0000000000000000
    000070000028ca58:  0000000000000000  0000000000000000
    000070000028ca68:  0000000000000000  0000000000000000
    000070000028ca78:  0000000000000000  0000000000000000
    000070000028ca88:  0000000000000000  0000000000000000
    000070000028ca98:  0000000000000000  0000000000000000
    000070000028caa8:  0000000000000000  0000000000000000
    000070000028cab8:  0000000000000000  0000000000000000
    000070000028cac8:  0000000000000000  0000000000000000
    000070000028cad8:  0000000000000000  000070000028cbb4
    000070000028cae8:  000070000028cbb0  000070000028cba0
    000070000028caf8:  0000000000000100  0000000000000200
    000070000028cb08:  000000c000076340  0000000000000101
    000070000028cb18:  000000c000076380  000070000028cbe0
    000070000028cb28: <00007fff96969728  0000000000000000
    000070000028cb38:  00007fff00000000  0000000000000000
    000070000028cb48:  0000000000000000  0000000000000000
    000070000028cb58:  0000000100000000  000000c000076340
    000070000028cb68:  000000c000076380  000000c0000763a0
    000070000028cb78:  00007fff9696be9a  000000c000076380
    000070000028cb88:  0000000000000000  000000c000076380
    000070000028cb98:  0000000000000000  0000000000000000
    000070000028cba8:  0000006096969cdb  0000040000000400
    000070000028cbb8:  000070000028ccb8  00000000000008ff
    000070000028cbc8:  0000000000001103  0000000001032bb0 <runtime.mstart+0>
    000070000028cbd8:  0000000001001370 <threadentry+0>  000070000028cbf0
    000070000028cbe8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  000070000028cc70
    000070000028cbf8:  00000000010602dd <runtime.asmcgocall+173>  0000000000000000
    000070000028cc08:  0000000000000100  000070000028cc90
    000070000028cc18:  00007fff96967540  0000000000000000
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x70000028cb28, fp:0x0} stack=[0x70000020d290,0x70000028ce90)
    000070000028ca28:  0000000000000000  0000000000000000
    000070000028ca38:  0000000000000000  0000000000000000
    000070000028ca48:  0000000000000000  0000000000000000
    000070000028ca58:  0000000000000000  0000000000000000
    000070000028ca68:  0000000000000000  0000000000000000
    000070000028ca78:  0000000000000000  0000000000000000
    000070000028ca88:  0000000000000000  0000000000000000
    000070000028ca98:  0000000000000000  0000000000000000
    000070000028caa8:  0000000000000000  0000000000000000
    000070000028cab8:  0000000000000000  0000000000000000
    000070000028cac8:  0000000000000000  0000000000000000
    000070000028cad8:  0000000000000000  000070000028cbb4
    000070000028cae8:  000070000028cbb0  000070000028cba0
    000070000028caf8:  0000000000000100  0000000000000200
    000070000028cb08:  000000c000076340  0000000000000101
    000070000028cb18:  000000c000076380  000070000028cbe0
    000070000028cb28: <00007fff96969728  0000000000000000
    000070000028cb38:  00007fff00000000  0000000000000000
    000070000028cb48:  0000000000000000  0000000000000000
    000070000028cb58:  0000000100000000  000000c000076340
    000070000028cb68:  000000c000076380  000000c0000763a0
    000070000028cb78:  00007fff9696be9a  000000c000076380
    000070000028cb88:  0000000000000000  000000c000076380
    000070000028cb98:  0000000000000000  0000000000000000
    000070000028cba8:  0000006096969cdb  0000040000000400
    000070000028cbb8:  000070000028ccb8  00000000000008ff
    000070000028cbc8:  0000000000001103  0000000001032bb0 <runtime.mstart+0>
    000070000028cbd8:  0000000001001370 <threadentry+0>  000070000028cbf0
    000070000028cbe8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  000070000028cc70
    000070000028cbf8:  00000000010602dd <runtime.asmcgocall+173>  0000000000000000
    000070000028cc08:  0000000000000100  000070000028cc90
    000070000028cc18:  00007fff96967540  0000000000000000
    rax    0x104
    rbx    0x100
    rcx    0x70000028cb28
    rdx    0x100
    rdi    0xc000076380
    rsi    0x10100000200
    rbp    0x70000028cbe0
    rsp    0x70000028cb28
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0xc000076340
    r14    0x10100000200
    r15    0x70000028d000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

    -----

    SIGQUIT: quit
    PC=0x7fff8fb61db6 m=7 sigcode=0

    goroutine 0 [idle]:
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x70000030fc28, fp:0x0} stack=[0x700000290290,0x70000030fe90)
    000070000030fb28:  0000000000000000  0000000000000000
    000070000030fb38:  0000000000000000  0000000000000000
    000070000030fb48:  0000000000000000  0000000000000000
    000070000030fb58:  0000000000000000  0000000000000000
    000070000030fb68:  0000000000000000  0000000000000000
    000070000030fb78:  0000000000000000  0000000000000000
    000070000030fb88:  0000000000000000  0000000000000000
    000070000030fb98:  0000000000000000  0000000000000000
    000070000030fba8:  0000000000000000  0000000000000000
    000070000030fbb8:  0000000000000000  0000000000000000
    000070000030fbc8:  0000000000000000  0000000000000000
    000070000030fbd8:  0000000000000000  000070000030fcb4
    000070000030fbe8:  000070000030fcb0  000070000030fca0
    000070000030fbf8:  0000000000000000  0000000000000100
    000070000030fc08:  000000c000076740  0000000000000001
    000070000030fc18:  000000c000076780  000070000030fce0
    000070000030fc28: <00007fff96969728  0000000000000000
    000070000030fc38:  0000000000000000  0000000000000000
    000070000030fc48:  0000000000000000  0000000000000000
    000070000030fc58:  0000000100000000  000000c000076740
    000070000030fc68:  000000c000076780  000000c0000767a0
    000070000030fc78:  00007fff9696be9a  000000c000076780
    000070000030fc88:  0000000000000000  0000000000000000
    000070000030fc98:  0000000000000000  0000000000000000
    000070000030fca8:  0000006000000000  0000010000000100
    000070000030fcb8:  000070000030fdb8  00000000000008ff
    000070000030fcc8:  0000000000001203  0000000001032bb0 <runtime.mstart+0>
    000070000030fcd8:  0000000001001370 <threadentry+0>  000070000030fcf0
    000070000030fce8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  000070000030fd70
    000070000030fcf8:  00000000010602dd <runtime.asmcgocall+173>  000070000030fd10
    000070000030fd08:  00007fff9696775e  000070000030fd20
    000070000030fd18:  0000000001062840 <runtime.pthread_cond_init_trampoline+16>  000070000030fd98
    runtime: unknown pc 0x7fff8fb61db6
    stack: frame={sp:0x70000030fc28, fp:0x0} stack=[0x700000290290,0x70000030fe90)
    000070000030fb28:  0000000000000000  0000000000000000
    000070000030fb38:  0000000000000000  0000000000000000
    000070000030fb48:  0000000000000000  0000000000000000
    000070000030fb58:  0000000000000000  0000000000000000
    000070000030fb68:  0000000000000000  0000000000000000
    000070000030fb78:  0000000000000000  0000000000000000
    000070000030fb88:  0000000000000000  0000000000000000
    000070000030fb98:  0000000000000000  0000000000000000
    000070000030fba8:  0000000000000000  0000000000000000
    000070000030fbb8:  0000000000000000  0000000000000000
    000070000030fbc8:  0000000000000000  0000000000000000
    000070000030fbd8:  0000000000000000  000070000030fcb4
    000070000030fbe8:  000070000030fcb0  000070000030fca0
    000070000030fbf8:  0000000000000000  0000000000000100
    000070000030fc08:  000000c000076740  0000000000000001
    000070000030fc18:  000000c000076780  000070000030fce0
    000070000030fc28: <00007fff96969728  0000000000000000
    000070000030fc38:  0000000000000000  0000000000000000
    000070000030fc48:  0000000000000000  0000000000000000
    000070000030fc58:  0000000100000000  000000c000076740
    000070000030fc68:  000000c000076780  000000c0000767a0
    000070000030fc78:  00007fff9696be9a  000000c000076780
    000070000030fc88:  0000000000000000  0000000000000000
    000070000030fc98:  0000000000000000  0000000000000000
    000070000030fca8:  0000006000000000  0000010000000100
    000070000030fcb8:  000070000030fdb8  00000000000008ff
    000070000030fcc8:  0000000000001203  0000000001032bb0 <runtime.mstart+0>
    000070000030fcd8:  0000000001001370 <threadentry+0>  000070000030fcf0
    000070000030fce8:  0000000001062860 <runtime.pthread_cond_wait_trampoline+16>  000070000030fd70
    000070000030fcf8:  00000000010602dd <runtime.asmcgocall+173>  000070000030fd10
    000070000030fd08:  00007fff9696775e  000070000030fd20
    000070000030fd18:  0000000001062840 <runtime.pthread_cond_init_trampoline+16>  000070000030fd98
    rax    0x104
    rbx    0x0
    rcx    0x70000030fc28
    rdx    0x0
    rdi    0xc000076780
    rsi    0x100000100
    rbp    0x70000030fce0
    rsp    0x70000030fc28
    r8     0x0
    r9     0x60
    r10    0x0
    r11    0x202
    r12    0x1
    r13    0xc000076740
    r14    0x100000100
    r15    0x700000310000
    rip    0x7fff8fb61db6
    rflags 0x203
    cs     0x7
    fs     0x0
    gs     0x0

@odeke-em

This comment has been minimized.

Copy link
Member

commented Jul 16, 2018

@ysmolsky does this fail on Go1.10 or before?

/cc @randall77 @mvdan @aclements @ianlancetaylor

@mvdan

This comment has been minimized.

Copy link
Member

commented Jul 16, 2018

Potentially an issue related to Mac, as I can't reproduce on Linux:

$ go1 version
go version go1.10.3 linux/amd64
$ go1 test -run TestPanicSystemstack -v runtime
=== RUN   TestPanicSystemstack
=== PAUSE TestPanicSystemstack
=== CONT  TestPanicSystemstack
--- PASS: TestPanicSystemstack (0.33s)
PASS
ok      runtime 0.329s
$ go version
go version devel +c2eba53e7f Sat Jul 14 06:48:21 2018 +0000 linux/amd64
$ go test -run TestPanicSystemstack -v runtime
=== RUN   TestPanicSystemstack
=== PAUSE TestPanicSystemstack
=== CONT  TestPanicSystemstack
--- PASS: TestPanicSystemstack (0.36s)
PASS
ok      runtime 0.364s

I presume we don't have a longtest Mac builder?

@ysmolsky

This comment has been minimized.

Copy link
Member Author

commented Jul 16, 2018

We should make longtest builders for Mac and Windows I guess.

Bisecting:

5b5473c is the first bad commit
Author: Keith Randall
Date: Wed Jun 13 14:39:36 2018 -0700

runtime: move semaphore ops from system calls to libc calls on Darwin

This CL removes the last of the direct system calls in the runtime package.
This is the last CL for 1.11.

Use libcCall instead of asmcgocall in a few places I accidentally used
the wrong one.

For 1.12, we need to think about whether/how the syscall package
should be moved over to libc.

Related issue: #17490

https://go-review.googlesource.com/118736
cc @randall77

@ysmolsky ysmolsky added this to the Go1.11 milestone Jul 16, 2018

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 16, 2018

Perhaps gentraceback needs to check m.libcallsp.

@mvdan mvdan added the OS-Darwin label Jul 16, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Jul 16, 2018

Change https://golang.org/cl/124195 mentions this issue: runtime: traceback from outermost libc call

@gopherbot

This comment has been minimized.

Copy link

commented Jul 20, 2018

Change https://golang.org/cl/125216 mentions this issue: runtime: add windows verion of TestPanicSystemstack

@gopherbot gopherbot closed this in fe68ab3 Jul 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.