Repository navigation
Conversation
jpnurmi
force-pushed
the
jpnurmi/fix/native-android-stacktrace
branch
from
November 30, 2026 14:57
c90edf8 to
9559965
Compare
Draft
5 of 11 tasks
jpnurmi
force-pushed
the
jpnurmi/fix/native-android-stacktrace
branch
3 times, most recently
from
December 1, 2026 12:27
3b07568 to
1d60a99
Compare
The signal handler records a frame-pointer walk of the crashed thread because libunwindstack allocates. The walk stops at frames without records, such as ART's, so a JNI crash in a React Native app kept only the JNI function and an unknown address. Replace the walk with a libunwindstack unwind of the saved fault context unless `on_crash` or `before_send` replaced the stacktrace, which the daemon detects by comparing frame addresses with the walk. `on_crash` still sees the walk. Fall back to the walk if the unwind fails.
jpnurmi
force-pushed
the
jpnurmi/fix/native-android-stacktrace
branch
from
December 1, 2026 16:04
1d60a99 to
833fcae
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required for:
The signal handler's frame-pointer capture (#2174) stops at frames without records, such as ART's, so a JNI crash in a React Native app showed only the JNI function and an unknown address. The daemon now unwinds the crashed thread with libunwindstack (#1725) instead, unless
on_crashorbefore_sendreplaced the stacktrace or the unwind fails.