jetma / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

jav8 crashes on Android with latest v8 #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile svn trunk v8 with make android_arm.release i18nsupport=off 
component=static_library -j8
2. Copy the libraries to jni/armeabi
3. Compile jav8
4. Add as apklib dependency to an android app
5. Try to get ScriptEngine:
        ScriptEngineManager factory = new ScriptEngineManager();
        // workaround for META-INF not included in APK, added convenience method 
        factory.addSpi("lu.flier.script.V8ScriptEngineFactory");
        js = factory.getEngineByName("jav8");

What is the expected output? What do you see instead?

Expected to get an instance of jav8 ScriptEngine but app crashes as shown below.

What version of the product are you using? On what operating system?
Android 4.4.2, latest checkouts of both jav8 and v8

Please provide any additional information below.

I/System.out(13150): Trying to load resource: 
META-INF/services/javax.script.ScriptEngineFactory
I/System.out(13150): Iterating thru resources
I/System.out(13150): Adding SPI: lu.flier.script.V8ScriptEngineFactory
D/dalvikvm(13150): Trying to load lib /data/app-lib/test-2/libjav8.so 0x41e3f800
D/dalvikvm(13150): Added shared lib /data/app-lib/test-2/libjav8.so 0x41e3f800
F/libc    (13150): Fatal signal 11 (SIGSEGV) at 0x00001b88 (code=1), thread 
13150 (.test)
I/DEBUG   (  351): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
***
I/DEBUG   (  351): Build fingerprint: 
'lge/w5_global_com/w5:4.4.2/KOT49I.A1394126896/1394126896:user/release-keys'
I/DEBUG   (  351): Revision: '6'
I/DEBUG   (  351): pid: 13150, tid: 13150, name: .test  >>> test <<<
I/DEBUG   (  351): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
00001b88
I/DEBUG   (  351):     r0 00000000  r1 00000000  r2 00001b88  r3 00001b80
I/DEBUG   (  351):     r4 00000000  r5 bec24350  r6 00000003  r7 56900019
I/DEBUG   (  351):     r8 bec243b0  r9 5772ab84  sl 416dfa80  fp bec243c4
I/DEBUG   (  351):     ip 60fa5f10  sp bec24338  lr 60b659b4  pc 60b659c4  cpsr 
600b0010
I/DEBUG   (  351):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   (  351):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  351):     d4  0000000500000000  d5  ffffffff00000000
I/DEBUG   (  351):     d6  ffffffff12000008  d7  4000000000000003
I/DEBUG   (  351):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  351):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  351):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  351):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  351):     d16 7265696c662f756c  d17 2f7470697263732f
I/DEBUG   (  351):     d18 5773119857731160  d19 57731208577311d0
I/DEBUG   (  351):     d20 5773127857731240  d21 57ab6700577312b0
I/DEBUG   (  351):     d22 57ab677057ab6738  d23 57ab67e057ab67a8
I/DEBUG   (  351):     d24 3fc74721cad6b0ed  d25 3fc2f112df3e5244
I/DEBUG   (  351):     d26 40026bb1bbb55516  d27 4000000000000000
I/DEBUG   (  351):     d28 40008df2d49d41f1  d29 3fb0f4a31edab38b
I/DEBUG   (  351):     d30 3ff0000000000000  d31 3f4de16b9c24a98f
I/DEBUG   (  351):     scr 80000010
I/DEBUG   (  351): 
I/DEBUG   (  351): backtrace:
I/DEBUG   (  351):     #00  pc 001d09c4  /data/app-lib/test-2/libjav8.so 
(v8::HandleScope::Initialize(v8::Isolate*)+32)
I/DEBUG   (  351):     #01  pc 001d0a24  /data/app-lib/test-2/libjav8.so 
(v8::HandleScope::HandleScope(v8::Isolate*)+8)
I/DEBUG   (  351):     #02  pc 001c278d  /data/app-lib/test-2/libjav8.so 
(Java_lu_flier_script_V8Context_internalCreate+20)
I/DEBUG   (  351): 

Original issue reported on code.google.com by harri.ho...@gmail.com on 22 May 2014 at 8:38