Open xcolwell opened 2 months ago
cc @hyangah
cc @golang/runtime @golang/android
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Does this commit mean now stacktrace will be emitted as expected? https://github.com/golang/go/commit/820329508aa55ccbb90996e8840acb5859f84557
Go version
go version go1.22.6 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Create a go module and build it with gomobile. For example, the build command below will produce an AAR file that can be bundled into an Android app.
The build AAR can be bundled into an Android app with the build.gradle lines:
What did you see happen?
Now if there is a crash from a goroutine inside the library, the following is printed to the Android logs. e.g. a nil pointer deference
What did you expect to see?
I would expect to see a full stack trace similar to what happens when a go binary crashes. This is much more useful for crash logging and debugging.