Skip to content

Crash : null pointer dereference SIGSEGV #50540

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

Closed
lvothnrv opened this issue Apr 8, 2025 · 2 comments
Closed

Crash : null pointer dereference SIGSEGV #50540

lvothnrv opened this issue Apr 8, 2025 · 2 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.

Comments

@lvothnrv
Copy link

lvothnrv commented Apr 8, 2025

Description

Hello,
I'm experiencing a crash on Android that seems to only affect the Redmi A3 model. When the user opens the app, it immediately shows "the app has stopped working."
In Firebase Crashlytics, I see the following error:
null pointer dereference: SIGSEGV 0x0000000000000004

I was initially using React Native 0.78.1, and I tried upgrading to 0.78.2, but the issue still persists.

I can't reproduce the bug on my side using Android Studio; everything works fine in my tests.
Other users on Samsung, OnePlus, and even other Xiaomi devices are not experiencing this issue — it seems specific to the Redmi A3.

Additionally, in Google Play Console, I received the following crash report:
[split_config.armeabi_v7a.apk!libreactnative.so] _JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)

Steps to reproduce

Install the app from the Play Store.
Open the app on a Redmi A3 device.

React Native Version

0.78.2

Affected Platforms

Build - MacOS, Runtime - iOS, Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.2
  CPU: (10) arm64 Apple M1 Pro
  Memory: 121.03 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.12.1
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.5.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2024.11.25.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11567975
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.2
    wanted: 0.78.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

null pointer dereference: SIGSEGV  0x0000000000000004
#00 pc 0x4def50 libart.so
#01 pc 0x4df9d5 libart.so
#02 pc 0x812e1 libart.so
#03 pc 0x55a6c libart.so
#04 pc 0x5ee6ee libart.so
#05 pc 0x38e5c3 libart.so
#06 pc 0x55a6c libart.so
#07 pc 0x812e1 libart.so
#08 pc 0x5ee6ee libart.so
#09 pc 0x875a3 libart.so
#10 pc 0x5e947a libart.so
#11 pc 0x463cca libreactnative.so
#12 pc 0x463bb2 libreactnative.so
#13 pc 0x24bfe9 libreactnative.so
#14 pc 0x319855 libreactnative.so
#15 pc 0x4561ca libreactnative.so
#16 pc 0x1b5bce libappmodules.so
#17 pc 0x23c643 libappmodules.so
#18 pc 0x23df6b libappmodules.so
#19 pc 0x26f67b libappmodules.so
#20 pc 0x587c5 libc.so
#21 pc 0x3159b libc.so
#22 pc 0x2d7f1 libc.so
#23 pc 0x2abee3 libappmodules.so
#24 pc 0x2ac2a1 libappmodules.so
#25 pc 0x2ac2af libappmodules.so
#26 pc 0x3270e7 libreactnative.so
#27 pc 0x2c282e libappmodules.so
#28 pc 0x2abe5f libappmodules.so
#29 pc 0x7d369 libc++_shared.so
#30 pc 0x327087 libreactnative.so
#31 pc 0x400abd libreactnative.so
#32 pc 0x5ee6ee libart.so
#33 pc 0x875a3 libart.so
#34 pc 0x5e947a libart.so
#35 pc 0x466b2a libreactnative.so
#36 pc 0x466b2a libreactnative.so
#37 pc 0x45d90a libreactnative.so
#38 pc 0x402f03 libreactnative.so
#39 pc 0x402e9b libreactnative.so
#40 pc 0x313bc3 libreactnative.so
#41 pc 0x31434f libreactnative.so
#42 pc 0x3142f3 libreactnative.so
#43 pc 0x5e7a1 libhermes.so
#44 pc 0x809cf libhermes.so
#45 pc 0xec0a1 libhermes.so
#46 pc 0x27dc6 libhermes.so
#47 pc 0x6c8e7 libhermes.so
#48 pc 0x7de33 libhermes.so
#49 pc 0x6e9fe libhermes.so
#50 pc 0x9853b libhermes.so
#51 pc 0x7e29b libhermes.so
#52 pc 0x6c8e7 libhermes.so
#53 pc 0x7e7e3 libhermes.so
#54 pc 0x725af libhermes.so
#55 pc 0x170ff6 libhermes.so

Reproducer

https://github.com/lvothnrv/SIGSEGV

Screenshots and Videos

No response

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Apr 8, 2025
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@cortinico
Copy link
Contributor

Duplicate of #49510

Will be fixed by #50592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue.
Projects
None yet
Development

No branches or pull requests

3 participants