react-native-community / jsc-android-buildscripts

Script for building JavaScriptCore for Android (for React Native but not only)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help! Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48

wilav-dev opened this issue · comments

I'm sometimes (not always) getting the following error when installing the app from an apk (after first open, is not crashing anymore). It's not crashing when I run the app using npm run android. It's happening with a Samsung S22, Android 12

React native: 0.67.4
React: 18.0.1
Gradle 4.2.2

--------- beginning of crash
2022-05-05 16:56:58.978 16991-16991/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48 in tid 16991 (dev.wilav), pid 16991 (dev.wilav)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Build fingerprint: 'samsung/r0qxxx/r0q:12/SP1A.210812.016/S901EXXU1AVCJ:user/release-keys'
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Revision: '13'
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: ABI: 'arm64'
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Processor: '6'
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Timestamp: 2022-05-05 16:56:59.084868935-0300
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Process uptime: 8s
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Cmdline: dev.wilav
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: pid: 16991, tid: 16991, name: dev.wilav  >>> dev.wilav <<<
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: uid: 10903
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: tagged_addr_ctrl: 0000000000000001
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: Cause: null pointer dereference
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x0  000000000000000a  x1  0000007fcf680fe0  x2  0000007fcf681060  x3  0000000000000018
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x4  0000000000000000  x5  0000000000000008  x6  0000000070116410  x7  0000000070ccc6d8
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x8  000000706216ac10  x9  0000000000000000  x10 0000007190996000  x11 00000000000000e0
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x12 0000000000000019  x13 000000009a32c563  x14 00000000009cf6b0  x15 0000006cb167cf7c
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x16 00000073f6ee6d50  x17 00000073ef8bce24  x18 0000007401b18000  x19 b4000071a09a1990
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x20 0000000000000000  x21 0000000000000018  x22 0000000000000018  x23 b4000071a09a1990
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x24 000000007fffffff  x25 00000074015dd000  x26 00000000143c0000  x27 b4000071309dd280
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     x28 00000000701bfc68  x29 0000007fcf682230
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:     lr  000000740278589c  sp  0000007fcf680fc0  pc  0000007061f3f3bc  pst 0000000060001000
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG: backtrace:
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #00 pc 00000000006703bc  /data/app/~~81qHbrL6NIFm_hrL2ANlHA==/dev.wilav-n_RS6OAt3kt1XKRLNA-ssg==/lib/arm64/libjsc.so (BuildId: dad225e5c5aafb43e3fcbfcd576772a6a0f8c19a)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #01 pc 000000000000089c  [vdso]
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #02 pc 00000000000a30b8  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8) (BuildId: ea614e5d67d01effce7dc685388edeee)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #03 pc 0000000000017ea8  /system/lib64/libutils.so (android::Looper::pollInner(int)+184) (BuildId: 748948a5650ad93d18b12eb1d9a51a89)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #04 pc 0000000000017d84  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+116) (BuildId: 748948a5650ad93d18b12eb1d9a51a89)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #05 pc 000000000015917c  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48) (BuildId: 84bf0c41679a7cdc7963b099e071b348)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #06 pc 000000000028544c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (art_jni_trampoline+108)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #07 pc 00000000007ecd28  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #08 pc 00000000007e9f14  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #09 pc 00000000007e9e14  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loop+516)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #10 pc 0000000000565d70  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.app.ActivityThread.main+800)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #11 pc 00000000002ca9e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #12 pc 000000000035b5d0  /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #13 pc 000000000035b348  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #14 pc 00000000000b2f74  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: ad9ee401645a5135206a62ff86fc2ef5cdc29120)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #15 pc 0000000000b3e04c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #16 pc 0000000000b474a8  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2376)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #17 pc 00000000002ca9e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #18 pc 000000000044ca04  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #19 pc 000000000062cf30  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #20 pc 00000000000b3bf8  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: 84bf0c41679a7cdc7963b099e071b348)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #21 pc 00000000000c01e4  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+852) (BuildId: 84bf0c41679a7cdc7963b099e071b348)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #22 pc 00000000000025d0  /system/bin/app_process64 (main+1400) (BuildId: bce2def038894c7d698a2968af787809)
2022-05-05 16:56:59.422 17693-17693/? A/DEBUG:       #23 pc 000000000004a068  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+100) (BuildId: ea614e5d67d01effce7dc685388edeee)
2022-05-05 16:56:59.441 1071-1071/? E/tombstoned: Tombstone written to: tombstone_13
2022-05-05 16:56:59.469 2921-3595/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:585 android.os.Binder.execTransactInternal:1220 android.os.Binder.execTransact:1179 <bottom of call stack> 
2022-05-05 16:56:59.472 2921-3958/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:585 android.os.Binder.execTransactInternal:1220 android.os.Binder.execTransact:1179 <bottom of call stack> 
2022-05-05 16:56:59.473 6308-5660/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:585 android.os.Binder.execTransactInternal:1220 android.os.Binder.execTransact:1179 <bottom of call stack> 
2022-05-05 16:56:59.474 6289-10557/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:585 android.os.Binder.execTransactInternal:1220 android.os.Binder.execTransact:1179 <bottom of call stack> 
2022-05-05 16:56:59.475 8308-10233/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:585 android.os.Binder.execTransactInternal:1220 android.os.Binder.execTransact:1179 <bottom of call stack> 
2022-05-05 16:56:59.505 1433-1433/? E/BpTransactionCompletedListener: Failed to transact (-32)
2022-05-05 16:56:59.617 17715-17715/? E/android.dqagen: Not starting debugger since process cannot load the jdwp agent.
2022-05-05 16:56:59.619 17715-17715/? E/USNET: USNET: appName: com.samsung.android.dqagent
2022-05-05 16:56:59.665 2036-3065/? E/WindowManager: win=Window{b20f0ac u0 InputMethod} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2947 com.android.server.wm.WindowManagerService.relayoutWindow:2671 com.android.server.wm.Session.relayout:242 android.view.IWindowSession$Stub.onTransact:790 com.android.server.wm.Session.onTransact:176 android.os.Binder.execTransactInternal:1215 android.os.Binder.execTransact:1179 
2022-05-05 16:56:59.705 1296-2290/? E/AHAL: AudioDevice: SetParameters: 1532: Error in VoiceSetParameters -2
2022-05-05 16:56:59.705 1296-2290/? E/AHAL: AudioDevice: SetParameters: 1538: Error in SecSetParameters -2
2022-05-05 16:56:59.727 2036-2235/? E/Native_CFMS: nativePerfMgrRemoveTask    Fail    tid : 11545    return : -1

Old react navigation tabs library was causing this issue.