go: x/mobile: Go Mobile Code Crashes LLDB in Simulator Environment.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.8 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH=“amd64” GOHOSTARCH=“amd64” GOHOSTOS=“darwin” GOOS=“darwin”
What did you do?
Built and used a go program into a go mobile dynamic framework. LLDB crashes on the Mac simulator but runs fine on device.
If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best.
What did you expect to see?
LLDB to not crash.
What did you see instead?
LLDB crashing. Crash log is attached. CrashLogs.zip
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
I’m currently working around this by disabling the goroutines plugin (which causes the crash) in lldb by adding
settings set plugin.os.goroutines.enable falseto my ~/.lldbinit
https://github.com/golang/go/issues/19846#issuecomment-292976426 worked for me ✨👍
The workaround is no longer necessary for me on Xcode 9.
It seems to work on Xcode 8.2.1 on OS X 10.11.6 but it doesn’t on Xcode 8.3.1 on macOS Sierra
We have the same issue by just following the wiki https://github.com/golang/go/wiki/Mobile#sdk-applications-and-generating-bindings with the HelloGreetings example