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

x/mobile: apps crash on darwin/arm64 at draw_arrays(__GLIContextRec*, unsigned int, int, int) #11086

rakyll opened this issue Jun 5, 2015 · 2 comments
mobile Android, iOS, and x/mobile


Copy link

rakyll commented Jun 5, 2015

Apps crash on darwin/arm at draw_arrays(__GLIContextRec*, unsigned int, int, int) slightly after the launch. It usually takes 3-4 seconds for me to see the EXC_BAD_ACCESS.

I am packing the arm64 binary in a lipo file, my build steps are available for inspection at

#0  0x00000001829ef064 in ___lldb_unnamed_function235$$AGXGLDriver ()
#1  0x00000001829eecf0 in agxuBeginRenderCommand(AGXContextRec*, unsigned int, bool, bool) ()
#2  0x00000001829e5bbc in glrAGXRenderVertexArray(GLDContextRec*, unsigned int, unsigned int, int, int, unsigned int, void const*, int, void const*) ()
#3  0x0000000187f90e58 in glDrawArrays_ACC_ES2Exec ()
#4  0x0000000004509b64 in draw_arrays(__GLIContextRec*, unsigned int, int, int) ()
#5  0x00000000040dce9c in _cgo_80207b16a855_Cfunc_process ()
#6  0x0000000004138dd0 in asmcgocall ()
#7  0x00000000040de178 in threadentry ()
#8  0x0000000196317dc8 in _pthread_body ()
#9  0x0000000196317d24 in _pthread_start ()

/cc @crawshaw @hyangah @nigeltao @minux

@rakyll rakyll added this to the Go1.5 milestone Jun 5, 2015
Copy link

crawshaw commented Jun 5, 2015

go install -tags lldb runtime/cgo
then go build -tags lldb
that should let you see a panic when running under lldb

Copy link
Contributor Author

rakyll commented Jun 5, 2015


fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x0 pc=0x182a227a4]

runtime stack:
runtime.throw(0x421a470, 0x2a)
    /Users/jbd/go/src/runtime/panic.go:527 +0x80
    /Users/jbd/go/src/runtime/sigpanic_unix.go:12 +0x50

goroutine 5 [syscall, locked to thread]:
runtime.cgocall_errno(0x404487c, 0xe5bbe18, 0x0)
    /Users/jbd/go/src/runtime/cgocall.go:125 +0x150 fp=0xe5bbdf0 sp=0xe5bbdc0
    ??:0 +0x30 fp=0xe5bbe10 sp=0xe5bbdf0
    /Users/jbd/src/ +0x4d4 fp=0xe5bbfb0 sp=0xe5bbe10
    /Users/jbd/go/src/runtime/asm_arm64.s:1021 +0x4 fp=0xe5bbfb0 sp=0xe5bbfb0
created by
    /Users/jbd/src/ +0x84

goroutine 1 [syscall, locked to thread]:
    ??:0 +0x30, 0x2, 0x3)
    /Users/jbd/src/ +0x1b8, 0x422c6b8, 0x422c6a8, 0x422c6c0, 0x0)
    /Users/jbd/src/ +0x114
    /Users/jbd/src/ +0x64

goroutine 17 [syscall, locked to thread]:
    /Users/jbd/go/src/runtime/asm_arm64.s:1021 +0x4

@rsc rsc modified the milestones: Unreleased, Go1.5 Jul 21, 2015
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
mobile Android, iOS, and x/mobile
None yet

No branches or pull requests

4 participants