-
Notifications
You must be signed in to change notification settings - Fork 648
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
SIGSEGV in AlignedHeapSegment::segmentIndexFromStart #383
Comments
This encoding happens during This is a bit odd, because these pointers are constructed by the GC, from previously existing compressed pointers.
The former seems more likely, but we haven't seen anything from our tests. |
Note that we have seen a similar problem occur rarely in some FB internal apps, except it happens |
@dulinriley We are running into this crash on the latest React Native-0.63.4 with the Hermes-0.5.1 engine. 40% of our user base is getting this crash after we upgraded to the latest React Native. We couldn't reproduce this crash on both JSC and V8 engine. So this crash is definitely related to the Hermes engine. |
Hi @raghavyadavm thanks for reporting this. I'm surprised that this error is occurring so often for your app. This is a tricky bug that will require a lot of work in a debugger like gdb to figure out what's going wrong. Are you able to reproduce this issue consistently on your own device, using a debug build of your app? If so, is it possible that you could isolate the smallest amount of JS source code that causes the issue and put it in an open-source repo that I could clone and debug? |
Hello! We all have numerous failures, it is difficult to figure out whether they are connected without a trace stack, but it may be useful and it will turn out to fix everything. Because we have been facing problems for half a year, and we don't know what to do about it. facebook/react-native#29978 |
Hi @JerakRus that issue is a bit over-aggregated. For example, the original issue reported was a SIGABRT, but then later people commented with SIGSEGV issues. Also, the original issue was happening with Hermes enabled, but others that commented had JSC enabled. I don't think all of those comments have the same root cause. If you're seeing a SIGSEGV on null from Hermes, and the stack trace contains As far as this particular issue, it would be good to solve it, but I haven't gotten any response from @raghavyadavm yet about some minimal repro that is open source that I can try using. Without that (or someone else finding a way to reproduce this easily and reliably) I can't make progress on this bug. |
This issue should be fixed with the migration to the Hades GC in v0.8 and later (corresponding to React Native v0.65 and later). |
how can do this? |
Bug Description
Sometimes when Hermes is used in React Native apps, it might experience a segfault when
trying to encode a compressed pointer.
The specific stack trace is shown here:
gradle clean
and confirmed this bug does not occur with JSCThis bug is a crash in Hermes's GC, therefore it cannot happen with JSC.
Hermes version: v0.5.x (but likely exists in v0.7.0 as well)
Platform: Compressed pointers only exist on arm64-v8a
Steps to Reproduce
I haven't found a reliable way to reproduce the issue with a test app. Original reports came from
specific users.
The text was updated successfully, but these errors were encountered: