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

SIGTRAP: trace trap (signal arrived during cgo execution) panic #139

Open
johanbrandhorst opened this issue Nov 22, 2023 · 0 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@johanbrandhorst
Copy link

Running latest build from master with the attached trace, it just died while running in the background.

OS: MacOS Ventura 13.6

trace2.txt

Backtrace

SIGTRAP: trace trap
PC=0x1a385c728 m=0 sigcode=0
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x10480ab98, 0x14000707258)
	/usr/local/go/src/runtime/cgocall.go:157 +0x44 fp=0x14000707220 sp=0x140007071e0 pc=0x1044df1f4
gioui.org/app._Cfunc_gio_main()
	_cgo_gotypes.go:391 +0x30 fp=0x14000707250 sp=0x14000707220 pc=0x10470ba90
gioui.org/app.osMain(...)
	/Users/johan/go/pkg/mod/[email protected]/app/os_macos.go:907
gioui.org/app.Main(...)
	/Users/johan/go/pkg/mod/[email protected]/app/app.go:64
main.main()
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:1443 +0x79c fp=0x14000707f30 sp=0x14000707250 pc=0x1047cb9ec
runtime.main()
	/usr/local/go/src/runtime/proc.go:267 +0x2bc fp=0x14000707fd0 sp=0x14000707f30 pc=0x104511c2c
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000707fd0 sp=0x14000707fd0 pc=0x1045433a4

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000068fe0 sp=0x14000068fe0 pc=0x1045433a4

goroutine 2 [force gc (idle), 4 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000054f90 sp=0x14000054f70 pc=0x104512058
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.forcegchelper()
	/usr/local/go/src/runtime/proc.go:322 +0xb8 fp=0x14000054fd0 sp=0x14000054f90 pc=0x104511ee8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000054fd0 sp=0x14000054fd0 pc=0x1045433a4
created by runtime.init.6 in goroutine 1
	/usr/local/go/src/runtime/proc.go:310 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000055760 sp=0x14000055740 pc=0x104512058
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.bgsweep(0x0?)
	/usr/local/go/src/runtime/mgcsweep.go:321 +0x108 fp=0x140000557b0 sp=0x14000055760 pc=0x1044fe118
runtime.gcenable.func1()
	/usr/local/go/src/runtime/mgc.go:200 +0x28 fp=0x140000557d0 sp=0x140000557b0 pc=0x1044f2bb8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000557d0 sp=0x140000557d0 pc=0x1045433a4
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:200 +0x6c

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x1049aaf10?, 0x104e10040?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000055f50 sp=0x14000055f30 pc=0x104512058
runtime.goparkunlock(...)
	/usr/local/go/src/runtime/proc.go:404
runtime.(*scavengerState).park(0x104e10040)
	/usr/local/go/src/runtime/mgcscavenge.go:425 +0x5c fp=0x14000055f80 sp=0x14000055f50 pc=0x1044fb95c
runtime.bgscavenge(0x0?)
	/usr/local/go/src/runtime/mgcscavenge.go:658 +0xac fp=0x14000055fb0 sp=0x14000055f80 pc=0x1044fbf1c
runtime.gcenable.func2()
	/usr/local/go/src/runtime/mgc.go:201 +0x28 fp=0x14000055fd0 sp=0x14000055fb0 pc=0x1044f2b58
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000055fd0 sp=0x14000055fd0 pc=0x1045433a4
created by runtime.gcenable in goroutine 1
	/usr/local/go/src/runtime/mgc.go:201 +0xac

goroutine 18 [finalizer wait, 4 minutes]:
runtime.gopark(0x1400019a000?, 0x0?, 0xc8?, 0x45?, 0x104623244?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000054580 sp=0x14000054560 pc=0x104512058
runtime.runfinq()
	/usr/local/go/src/runtime/mfinal.go:193 +0x108 fp=0x140000547d0 sp=0x14000054580 pc=0x1044f1ca8
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000547d0 sp=0x140000547d0 pc=0x1045433a4
created by runtime.createfing in goroutine 1
	/usr/local/go/src/runtime/mfinal.go:163 +0x80

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x4b5744eb6d4f?, 0x3?, 0x3d?, 0xd4?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000050730 sp=0x14000050710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000507d0 sp=0x14000050730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000507d0 sp=0x140000507d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 20 [select, 2 minutes]:
runtime.gopark(0x14000304f48?, 0x5?, 0xd8?, 0x4d?, 0x14000304ee6?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000304d80 sp=0x14000304d60 pc=0x104512058
runtime.selectgo(0x14000304f48, 0x14000304edc, 0x5?, 0x0, 0x0?, 0x1)
	/usr/local/go/src/runtime/select.go:327 +0x608 fp=0x14000304e90 sp=0x14000304d80 pc=0x104522f88
gioui.org/app.(*Window).run(0x14000248600, {0x140001d8580?, 0x0?, 0x0?})
	/Users/johan/go/pkg/mod/[email protected]/app/window.go:961 +0x14c fp=0x14000304fa0 sp=0x14000304e90 pc=0x10470a3bc
gioui.org/app.NewWindow.func7()
	/Users/johan/go/pkg/mod/[email protected]/app/window.go:188 +0x34 fp=0x14000304fd0 sp=0x14000304fa0 pc=0x104707124
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000304fd0 sp=0x14000304fd0 pc=0x1045433a4
created by gioui.org/app.NewWindow in goroutine 1
	/Users/johan/go/pkg/mod/[email protected]/app/window.go:188 +0x678

goroutine 21 [GC worker (idle)]:
runtime.gopark(0x104e45480?, 0x1?, 0xe2?, 0x8f?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000051730 sp=0x14000051710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000517d0 sp=0x14000051730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000517d0 sp=0x140000517d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x4b5744eca0ed?, 0x3?, 0xcd?, 0x3f?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000094730 sp=0x14000094710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000947d0 sp=0x14000094730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000947d0 sp=0x140000947d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 50 [GC worker (idle)]:
runtime.gopark(0x4b5744eaa764?, 0x1?, 0x56?, 0x3f?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000050f30 sp=0x14000050f10 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x14000050fd0 sp=0x14000050f30 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000050fd0 sp=0x14000050fd0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 22 [GC worker (idle), 1 minutes]:
runtime.gopark(0x104e45480?, 0x3?, 0x41?, 0x44?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000051f30 sp=0x14000051f10 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x14000051fd0 sp=0x14000051f30 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000051fd0 sp=0x14000051fd0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 36 [GC worker (idle)]:
runtime.gopark(0x104e45480?, 0x1?, 0xb8?, 0x5?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000094f30 sp=0x14000094f10 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x14000094fd0 sp=0x14000094f30 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000094fd0 sp=0x14000094fd0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 23 [GC worker (idle)]:
runtime.gopark(0x104e45480?, 0x1?, 0xc8?, 0x40?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000052730 sp=0x14000052710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000527d0 sp=0x14000052730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000527d0 sp=0x140000527d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 37 [GC worker (idle)]:
runtime.gopark(0x4b5744eaa2ac?, 0x3?, 0x87?, 0x10?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000095730 sp=0x14000095710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000957d0 sp=0x14000095730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000957d0 sp=0x140000957d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 51 [GC worker (idle)]:
runtime.gopark(0x4b5744eb5974?, 0x3?, 0xc2?, 0xbe?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000090730 sp=0x14000090710 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x140000907d0 sp=0x14000090730 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000907d0 sp=0x140000907d0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 24 [GC worker (idle)]:
runtime.gopark(0x4b5744ec4286?, 0x1?, 0x10?, 0x78?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000052f30 sp=0x14000052f10 pc=0x104512058
runtime.gcBgMarkWorker()
	/usr/local/go/src/runtime/mgc.go:1293 +0xd8 fp=0x14000052fd0 sp=0x14000052f30 pc=0x1044f4808
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000052fd0 sp=0x14000052fd0 pc=0x1045433a4
created by runtime.gcBgMarkStartWorkers in goroutine 1
	/usr/local/go/src/runtime/mgc.go:1217 +0x28

goroutine 82 [select]:
runtime.gopark(0x14000a2ef58?, 0x4?, 0xe8?, 0xed?, 0x14000a2ef10?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x14000a2eda0 sp=0x14000a2ed80 pc=0x104512058
runtime.selectgo(0x14000a2ef58, 0x14000a2ef08, 0x14000c0e6b0?, 0x0, 0x14000f7a1e0?, 0x1)
	/usr/local/go/src/runtime/select.go:327 +0x608 fp=0x14000a2eeb0 sp=0x14000a2eda0 pc=0x104522f88
gioui.org/app.(*displayLink).run(0x14000f7a1e0, 0x15883ae00)
	/Users/johan/go/pkg/mod/[email protected]/app/os_darwin.go:150 +0x158 fp=0x14000a2efb0 sp=0x14000a2eeb0 pc=0x10470db08
gioui.org/app.NewDisplayLink.func1()
	/Users/johan/go/pkg/mod/[email protected]/app/os_darwin.go:138 +0x2c fp=0x14000a2efd0 sp=0x14000a2efb0 pc=0x10470d97c
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x14000a2efd0 sp=0x14000a2efd0 pc=0x1045433a4
created by gioui.org/app.NewDisplayLink in goroutine 1
	/Users/johan/go/pkg/mod/[email protected]/app/os_darwin.go:138 +0x114

goroutine 39 [chan receive]:
runtime.gopark(0x140040f95c0?, 0x1400346efc0?, 0x0?, 0x0?, 0x1400016e708?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x1400016e6a0 sp=0x1400016e680 pc=0x104512058
runtime.chanrecv(0x14000191a40, 0x1400016fe98, 0x1)
	/usr/local/go/src/runtime/chan.go:583 +0x414 fp=0x1400016e720 sp=0x1400016e6a0 pc=0x1044e15b4
runtime.chanrecv2(0x14000208500?, 0x140002040a0?)
	/usr/local/go/src/runtime/chan.go:447 +0x14 fp=0x1400016e750 sp=0x1400016e720 pc=0x1044e1184
main.(*MainWindow).Run(0x14000234000)
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:487 +0xd4 fp=0x1400016ff90 sp=0x1400016e750 pc=0x1047c2d04
main.main.func3()
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:1423 +0x24 fp=0x1400016ffd0 sp=0x1400016ff90 pc=0x1047cbbc4
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x1400016ffd0 sp=0x1400016ffd0 pc=0x1045433a4
created by main.main in goroutine 1
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:1422 +0x750

goroutine 40 [chan receive, 4 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/usr/local/go/src/runtime/proc.go:398 +0xc8 fp=0x140000916b0 sp=0x14000091690 pc=0x104512058
runtime.chanrecv(0x14000190120, 0x14000091798, 0x1)
	/usr/local/go/src/runtime/chan.go:583 +0x414 fp=0x14000091730 sp=0x140000916b0 pc=0x1044e15b4
runtime.chanrecv1(0x0?, 0x0?)
	/usr/local/go/src/runtime/chan.go:442 +0x14 fp=0x14000091760 sp=0x14000091730 pc=0x1044e1164
main.main.func4()
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:1427 +0x2c fp=0x140000917d0 sp=0x14000091760 pc=0x1047cba7c
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x140000917d0 sp=0x140000917d0 pc=0x1045433a4
created by main.main in goroutine 1
	/Users/johan/go/pkg/mod/honnef.co/go/[email protected]/cmd/gotraceui/main.go:1426 +0x790

r0      0x1590ee000
r1      0x1590d55f2
r2      0xfffffffffffffff1
r3      0x1590ee9d1
r4      0xfffffffffffe6c01
r5      0x20
r6      0x1590ee000
r7      0xa11
r8      0x1f8aad000
r9      0x1132fd94dabf0022
r10     0x1132fd94dabf0022
r11     0x7f
r12     0x34
r13     0x15885d930
r14     0x1000001fb31c5b1
r15     0x1fb31c5b0
r16     0x1a02a6640
r17     0x1fc2a9b90
r18     0x0
r19     0x600000da66a0
r20     0x6000016ed440
r21     0x1cee8d61214
r22     0x15880e1a0
r23     0x16b926040
r24     0x15880e198
r25     0x0
r26     0x6000032ddf40
r27     0x600000dbc9f0
r28     0x1a0355ef0
r29     0x16b925eb0
lr      0x6f6a0001a385c720
sp      0x16b925e80
pc      0x1a385c728
fault   0x1a385c728
exit status 2
@johanbrandhorst johanbrandhorst changed the title SIGTRAP: trace trap (signal arrived during cho execution) panic SIGTRAP: trace trap (signal arrived during cgo execution) panic Nov 22, 2023
@dominikh dominikh added bug Something isn't working help wanted Extra attention is needed labels Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants