SIGSEGV in production for all instances invoking setReachabilityStatus
See original GitHub issue- [ x] I have reviewed the documentation
- [x ] I have searched existing issues
- [x ] I am using the latest React Native version
We’re seeing elevated crash reports relating to a member invocation setReachabilityStatus
on several instance types, resulting in a SIGSEG triggered by unrecognized selector sent to instance
.
Here’s info from a crash report:


Environment
Environment: OS: macOS High Sierra 10.13.4 Node: 9.4.0 Yarn: 1.3.2 npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.3 Build version 9E145 Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed) react: 16.3.0 => 16.3.0 react-native: 0.55.0 => 0.55.0
Steps to Reproduce
- Open app that uses the
setReachabilityStatus
method in native code somewhere. - Go home, then change your network (disable cellular service)
- Open the app back up
- The app will crash
Expected Behavior
No crashes 😃
Actual Behavior
Lots of crashes
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:18 (9 by maintainers)
Top Results From Across the Web
segmentation fault - What is the simplest standard conform ...
A segfault only happens when memory is accessed that the process isn't allowed to access. No such invalid memory access is happening by...
Read more >SIGSEGV: Linux Segmentation Fault | Signal 11, Exit code 139
A SIGSEGV signal or segmentation error occurs when a process attempts to use a memory address that was not assigned to it by...
Read more >SIGSEGV crash in standalone pyqgis app - GIS Stack Exchange
I'm trying to get to a piece of code that lets me print PDF maps with the PYQGIS API using a workspace and...
Read more >Who's at Fault: Tracking Down Segfaults in Production - Blog
In some cases, subtle bugs causing a program to crash due to a ... a segfault - or Segmentation Fault - is a...
Read more >Determining Root Cause of Segmentation Faults SIGSEGV or ...
SIGSEGV on Linux and SIGBUS on MacOS Root Causes. ... A segmention fault (bus error MacOS) is a general fault that can have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
are you able to repro this on master? my understanding is that https://github.com/facebook/react-native/commit/9d45de60accda028d11b715a3407119353a81d2c#diff-82c5d95c19a17c3f2375f0b1e09f6da4 solves this
@mmmulani sorry for the delay. I tried with
0.55.4
and works smoothly; it would be great to cheery into0.55.3
.Thanks.