jsc-android-buildscripts: Crash in arm x64
Running on a custom compiled react-native based on 0.51.0 version for x64 Android.
Once the bundle is loaded about 50% of times crashes with:
libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x100000008 in tid 2215 (mqt_js), pid 2168 (wix.android.dev)
DEBUG F *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F Build fingerprint:
F Revision: '0'
F ABI: 'arm64'
F pid: 2168, tid: 2215, name: mqt_js >>> com.wix.android.dev <<<
F signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x100000008
F x0 0000007c6789c0a0 x1 0000007c68000000 x2 0000007c678cb258 x3 0000007c6caf7ee8
F x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000000
F x8 0000000000000530 x9 0000000000000006 x10 0000000100000000 x11 0000000000000001
F x12 00000000cf1841c8 x13 0000000000000005 x14 000000000000007c x15 0000000000000001
F x16 0000000003010069 x17 0000000000000000 x18 0000000000000002 x19 0000007c6caf7ee8
F x20 0000007c68000000 x21 0000000000000000 x22 0000007c6789c0a0 x23 000000000301006a
F x24 000000000000007c x25 00000000cf1841c9 x26 0000000300000000 x27 0000007c61c27008
F x28 0000000000000002 x29 0000007c6caf8480 x30 0000007c6db57938
F sp 0000007c6caf7d80 pc 0000007c6db83294 pstate 0000000020000000
F backtrace:
F #00 pc 0000000000102294 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #01 pc 00000000000d6934 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #02 pc 00000000004e4474 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #03 pc 00000000004e4890 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #04 pc 00000000001d2fe4 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #05 pc 00000000003ac8bc /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so
F #06 pc 000000000006601c /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libjsc.so (JSEvaluateScript+480)
F #07 pc 0000000000071f84 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so (facebook::react::evaluateScript(OpaqueJSContext const*, OpaqueJS
String*, OpaqueJSString*)+56)
F #08 pc 0000000000063a58 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so (facebook::react::JSCExecutor::loadApplicationScript(std::__ndk1:
:unique_ptr<facebook::react::JSBigString const, std::__ndk1::default_delete<facebook::react::JSBigString const>>, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>
, std::__ndk1::allocator<char>>)+632)
F #09 pc 000000000006dd00 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so
F #10 pc 000000000006eea0 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so
F #11 pc 0000000000034368 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so
F #12 pc 00000000000216cc /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so
F #13 pc 0000000000021648 /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/lib/arm64/libreactnativejni.so
F #14 pc 000000000003fa9c /data/app/com.wix.android.dev-mImsHlIhdjuBhFAgfqjh4g==/oat/arm64/base.odex (offset 0x39000)
I can’t seem to reproduce it in our measure app, just in the Wix app (which is very big)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 40 (12 by maintainers)
@DanielZlotin I was building JSC with debug symbols using this patch https://gist.github.com/Kmakinator/9c6d23ab6c07b200ba9cf133fe5cbbba It’s month old now so it may not work on current master, it is also required to add doNotStrip not only to air building gradle but apk script. This allowed me to attach and set breakpoint using LLDB in android studio.
We’re running measure app without ‘Profile Javascript’ and it usually crashes within 200 runs.