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: Go Mobile Code Crashes LLDB in Simulator Environment. #19846
Comments
/cc @eliasnaur |
I've never used LLDB on macOS, so could you please give me a step-by-step guide to how to reproduce the problem. Please include any source code I'll need as well. Also, what macOS and Xcode version are you using? |
All you have to do is build the project, let it run for a few seconds and watch the crash occur on the console in Xcode. The project is rather large because of the framework. I've uploaded to this link - Thanks! |
We have the same issue by just following the wiki |
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 |
I'm currently working around this by disabling the goroutines plugin (which causes the crash) in lldb by adding
to my ~/.lldbinit |
I've just now tried the golang.org/x/mobile/example/bind/ios example using Xcode 8.3.2 with both Go tip and Go 1.8.1. Both versions worked for me with no crashes even after several minutes of running the project through Xcode. Could you retry with Go 1.8.1 and see if your error persists? |
I'm able to reproduce with go 1.8.1 and xcode 8.3.2. The error occurs when the debugger hits a breakpoint in xcode. |
Ok, setting a breakpoint provokes the debugger crash for me as well, thanks. However, I don't have time to dig deeper into this hairy issue, so any help fixing or pinpointing the problem will be appreciated a lot. |
Sorry, I'm not very familiar with this system. The error in xcode console directs you to the crash logs at |
Same problem with xcode 8.3.3. But 8.2.x and before is ok. |
Any update on fixing this? |
Same problem with xcode 8.3.3. |
I don't think we can do much on our side other than using the workaround from #19846 (comment) . FWIW, I've reported the crash to Apple, and they marked my bug as a duplicate. |
#19846 (comment) worked for me ✨👍 |
The workaround is no longer necessary for me on Xcode 9. |
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
The text was updated successfully, but these errors were encountered: