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

jsc 236355.1.1 native crash

chufengma opened this issue · comments

Bug

reactnative:0.59..3.. jsc version: 236355.1.1

signal 11 (SIGSEGV), code -6 (SI_TKILL), fault addr --------
    r0 00003ef4  r1 00000007  r2 0000008f  r3 00000000
    r4 00000007  r5 a68e1f50  r6 00000030  r7 00000000
    r8 b98f54c0  r9 b7fff818  sl 00000001  fp 00000000
    ip fffffffb  sp b7fff7e8  lr bb9c83bb  pc bb9c8312  cpsr 60070030

backtrace:
    #00 pc 0042f312  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (JSC::JSBoundFunction::visitChildren(JSC::JSCell*, JSC::SlotVisitor&)+121)
    #01 pc 002b2503  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (_ZZN3JSC11SlotVisitor5drainEN3WTF13MonotonicTimeEENK3$_3clERNS_14MarkStackArrayE+218)
    #02 pc 002b0261  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (JSC::SlotVisitor::drain(WTF::MonotonicTime)+116)
    #03 pc 002b0947  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode, WTF::MonotonicTime)+818)
    #04 pc 002a338f  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (_ZN3WTF17SharedTaskFunctorIFvvEZN3JSC4Heap13runBeginPhaseENS2_11GCConductorEE4$_17E3runEv+134)
    #05 pc 0057af1b  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (WTF::ParallelHelperClient::runTask(WTF::RefPtr<WTF::SharedTask<void ()>, WTF::DumbPtrTraits<WTF::DumbPtrTraits>>)+22)
    #06 pc 0057b623  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (WTF::ParallelHelperPool::Thread::work()+42)
    #07 pc 00574621  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (_ZN3WTF8FunctionIFvvEE15CallableWrapperIZNS_15AutomaticThread5startERKNS_14AbstractLockerEE3$_0E4callEv+296)
    #08 pc 0057de7b  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)+182)
    #09 pc 00589d8b  /data/app/XXX-4iUzrxRVw6SCvcxXMOY98A==/lib/arm/libjsc.so (WTF::wtfThreadEntryPoint(void*)+2)
    #10 pc 00047a1f  /system/lib/libc.so (__pthread_start(void*)+22)
    #11 pc 0001b31d  /system/lib/libc.so (__start_thread+32)
commented

Please test with version 241213.2.0 and see if it still crashes

I have met the same problem, have you solved it?

In react-native 0.59.10, I use version 245459.0.0 and modify following android/app/build.grale

implementation 'org.webkit:android-jsc:r245459'

https://www.npmjs.com/package/jsc-android/v/245459.0.0