--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
56 if(gp == nil || gp == m->g0)
57 goto Throw;
if (gp->status == Gsyscall) {
runtime·exitsyscall();
goto Throw;
}
Alex
--
fatal error: runtime: stack split during syscall
runtime stack:
runtime.throw(0x22e5cc)
/home/graham/go/src/pkg/runtime/panic.c:464 +0x5c
runtime.newstack()
/home/graham/go/src/pkg/runtime/stack.c:261 +0x5bc
runtime.morestack()
/home/graham/go/src/pkg/runtime/asm_arm.s:212 +0x44
goroutine 1 [stack split]:
runtime: unexpected return pc for runtime.sigpanic called from
0x402ff320
runtime.sigpanic()
/home/graham/go/src/pkg/runtime/os_linux.c:219 fp=0xbeae2f48
goroutine 3 [syscall]:
runtime.goexit()
/home/graham/go/src/pkg/runtime/proc.c:1396
SIGSEGV: segmentation violation
PC=0x40247320
runtime.cgocall(0xf5f8, 0x40a8492c)
/home/graham/go/src/pkg/runtime/cgocall.c:148 +0x108
fp=0x40a8491c
_/home/graham/programs/ae/ae._Cfunc_al_load_bitmap(0x48f81468,
0x10500730)
_/home/graham/programs/ae/ae/_obj/_cgo_defun.c:799 +0x34
fp=0x40a84928
_/home/graham/programs/ae/ae.loadImage(0x105a2b60, 0x13, 0x0)
/home/graham/programs/ae/ae/images.go:43 +0x90 fp=0x40a84950
_/home/graham/programs/ae/ae.Image(0x105a2b60, 0x13, 0x2)
/home/graham/programs/ae/ae/images.go:71 +0xb4 fp=0x40a84970
main.NewSelect(0x1050a500)
/home/graham/programs/ae/test/select.go:23 +0xb0
fp=0x40a84d28
main.(*Test).Init(0x1050a500)
/home/graham/programs/ae/test/main.go:93 +0x350 fp=0x40a84d94
_/home/graham/programs/ae/ae.Change(0x4640fc78, 0x1050a500)
/home/graham/programs/ae/ae/loop.go:142 +0x254 fp=0x40a84dc8
main.func??005(0xc9da106b, 0xe)
/home/graham/programs/ae/test/wait.go:131 +0x298
fp=0x40a84e18
main.(*Wait).Tick(0x1059f0f0)
/home/graham/programs/ae/test/wait.go:183 +0x330
fp=0x40a84ec8
_/home/graham/programs/ae/ae.Loop(0x40942338, 0x105002e0)
/home/graham/programs/ae/ae/loop.go:250 +0x71c fp=0x40a84f24
main.main()
/home/graham/programs/ae/test/main.go:446 +0x714
fp=0x40a84f8c
runtime.main()
/home/graham/go/src/pkg/runtime/proc.c:222 +0x100
fp=0x40a84fc0
runtime.goexit()
/home/graham/go/src/pkg/runtime/proc.c:1396 fp=0x40a84fc0
goroutine 3 [syscall]:
runtime.goexit()
/home/graham/go/src/pkg/runtime/proc.c:1396
trap 0xe
error 0x817
oldmask 0x0
r0 0x0
r1 0x48fbf880
r2 0x160
r3 0xff000000
r4 0xff000000
r5 0xff000000
r6 0xff000000
r7 0xff000000
r8 0xff000000
r9 0x0
r10 0x48fbf860
fp 0x0
ip 0xff000000
sp 0xbec99f1c
lr 0xff000000
pc 0x40247320
cpsr 0x20000010
fault 0x0
I can't really tell what's going on, but the random behaviour reminds me of when I last encountered stack corruption. Why does this only happen on the ARM based hardware? The same code seems to be fine on my x86 machine!