this crashes. maybe a bug in libui?

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-17 11:01:34 -07:00
parent 7dc4972a63
commit eb9ddc3d5b
2 changed files with 36 additions and 0 deletions

35
example-splash/crash1 Normal file
View File

@ -0,0 +1,35 @@
2019/05/17 10:59:15 name= Test 128
2019/05/17 10:59:15 sleep
2019/05/17 10:59:15 sleep
2019/05/17 10:59:15 name= Test 129
2019/05/17 10:59:16 sleep
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x7f8c000000b8 pc=0x7f8cbfb2f8e5]
runtime stack:
runtime.throw(0x50c4b8, 0x2a)
/usr/lib/go-1.11/src/runtime/panic.go:608 +0x72
runtime.sigpanic()
/usr/lib/go-1.11/src/runtime/signal_unix.go:374 +0x2f2
goroutine 19 [syscall]:
runtime.cgocall(0x4b5490, 0xc00004df78, 0xc0000ac048)
/usr/lib/go-1.11/src/runtime/cgocall.go:128 +0x5e fp=0xc00004df48 sp=0xc00004df10 pc=0x41688e
github.com/andlabs/ui._Cfunc_uiMain()
_cgo_gotypes.go:2518 +0x41 fp=0xc00004df78 sp=0xc00004df48 pc=0x4a9711
github.com/andlabs/ui.Main(0x50d890, 0xc00003a701, 0xc0000842c0)
/home/jcarr/go/src/github.com/andlabs/ui/main.go:41 +0xfd fp=0xc00004dfc8 sp=0xc00004df78 pc=0x4ad6cd
runtime.goexit()
/usr/lib/go-1.11/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc00004dfd0 sp=0xc00004dfc8 pc=0x466461
created by main.main
/home/jcarr/go/src/git.wit.com/wit/cloud-control-panel/example-splash/main.go:68 +0x53
goroutine 1 [sleep, locked to thread]:
time.Sleep(0x11e1a300)
/usr/lib/go-1.11/src/runtime/time.go:105 +0x14f
main.main()
/home/jcarr/go/src/git.wit.com/wit/cloud-control-panel/example-splash/main.go:74 +0x74
exit status 2
make: *** [Makefile:2: run] Error 1
jcarr@librem15:~/go/src/git.wit.com/wit/cloud-control-panel/example-splash$ git diff

View File

@ -67,6 +67,7 @@ func setupUI() {
func main() {
go ui.Main(setupUI)
// locks up GTK after a while (50 times)
time.Sleep(1000 * time.Millisecond)
count := 0
for {