V8 on android SIGSEGV fault

61 views
Skip to first unread message

Shailesh Soliwal

unread,
Apr 10, 2015, 3:53:26 PM4/10/15
to v8-u...@googlegroups.com
I was successful in building v8 using following command:

make android_arm.release i18nsupport=off 

And integrated with JNI code:

        v8::V8::InitializeICU();

        myplatform = v8::platform::CreateDefaultPlatform();

        v8::V8::InitializePlatform(myplatform);

        v8::V8::Initialize();

        v8Isolates[handle] = new V8Runtime();

        v8Isolates[handle]->isolate = Isolate::New();

        v8Isolates[handle]->isolate_scope = new Isolate::Scope(v8Isolates[handle]->isolate);


I get the following error in my app when i run it in my android emulator:

Fatal signal 11 (SIGSEGV) at 0xb226b100 (code=2), thread 15083 (8.v8testproject)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Build fingerprint: 'generic/google_sdk/generic:4.4.2/KK/1246540:eng/test-keys'

Revision: '0'

pid: 15083, tid: 15083, name: 8.v8testproject  >>> v8.v8testproject <<<

signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr b226b100

    r0 ab7428f4  r1 ffffffff  r2 ab7428f4  r3 b226b100

    r4 b7337c84  r5 b7337708  r6 00100000  r7 00100000

    r8 ab755ca8  r9 ab755c8c  sl ab755c78  fp ab755c60

    ip b6f871d7  sp be8162c0  lr ab388934  pc b226b100  cpsr a0000010

    d0  4140000041a80000  d1  3ff0000041ac0000

    d2  0000009600000000  d3  4316000043160000

    d4  430800003f169697  d5  3f08888943080000

    d6  0000000000000088  d7  3f8000003f800000

    d8  0000000000000000  d9  0000000000000000

    d10 0000000000000000  d11 0000000000000000

    d12 0000000000000000  d13 0000000000000000

    d14 0000000000000000  d15 0000000000000000

    scr 60000010


backtrace:

    #00  pc 0001f100  /dev/ashmem/dalvik-LinearAlloc (deleted)

    #01  pc 00295930  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::StatsCounter::FindLocationInStatsTable() const+36)

    #02  pc 00341058  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::MemoryAllocator::CommitBlock(unsigned char*, unsigned int, v8::internal::Executabili

    #03  pc 00341e60  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::SemiSpace::Commit()+36)

    #04  pc 00344efc  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::NewSpace::SetUp(int, int)+2756)

    #05  pc 00307fd4  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::Heap::SetUp()+228)

    #06  pc 003bb2c0  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::internal::Isolate::Init(v8::internal::Deserializer*)+1280)

    #07  pc 002428d8  /data/app-lib/v8.v8testproject-1/libv8_android_armv7l.so (v8::Isolate::New(v8::Isolate::CreateParams const&)+224)


Shailesh Soliwal

unread,
Apr 15, 2015, 2:49:51 PM4/15/15
to v8-u...@googlegroups.com
Checked out stable release version and the problem was resolved:

git checkout tags/4.1.0.21

Still no idea what the issue is though...
Reply all
Reply to author
Forward
0 new messages