You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upstream Hermes patches for Android SIGABRT crash fix #85860
PR #84708 fixes an Android SIGABRT crash (pthread_kill on invalid pthread_t in hermes-sampling thread) that occurs when Sentry Hermes profiling is enabled. Two patches were applied locally to React Native's Hermes source:
Patch 030 — JNI copy-paste bug: HermesSamplingProfiler.cpp maps the JNI disable method to enable instead of disable, corrupting sampling thread state when Sentry stops profiling.
Patch 031 — pthread_kill → tgkill on Android: Bionic libc's pthread_kill calls abort() on invalid pthread_t (unlike glibc which returns ESRCH). The Hermes sampling profiler sends SIGPROF at ~100Hz, so if a runtime thread exits during profiling the stale handle triggers SIGABRT. The patch uses the tgkill syscall which safely returns ESRCH.
Both are applied via a doLast Gradle hook on unzipHermes since that task overwrites source patches.
Activity
elirangoshen commentedon Mar 20, 2026
Update: opened pr react/react-native#56174
elirangoshen commentedon Mar 20, 2026
And they merged it already
react/react-native@7f2a58e
Julesssss commentedon Mar 23, 2026
Nice! So we just have to await that RN release I guess.
Julesssss commentedon Mar 27, 2026
The fix has been made, this is now just a cleanup issue.
I'm going to close this and created a follow up issue here to await the ReactNative release.