RE: Possibly a luajit related bug in android

  • From: lingcong <congling@xxxxxxxxxxx>
  • To: "luajit@xxxxxxxxxxxxx" <luajit@xxxxxxxxxxxxx>
  • Date: Fri, 15 Mar 2013 13:45:03 +0800

BTW, I've already integrated with LuaJit 2.0.1+v2.0.1_hotfix1.patch

Regard,
congling

From: congling@xxxxxxxxxxx
To: luajit@xxxxxxxxxxxxx
Subject: Possibly a luajit related bug in android
Date: Fri, 15 Mar 2013 13:28:29 +0800




Hi,    I've integrate LuaJit into our game engine for android. However  we met 
some crash on some machine (Galaxy I9300) sometimes, but if we turn jit.off, 
the issue can be solved.   When the crash occurs, the call stack is ruined. 
I've print all every line for output, but It can be in every lua calls in the 
same thread. It's very hard to trace.    Any ideas for further diagnose?    
Thank a lot

Stack trace output in gdb#0  0x59f32828 in ?? ()
stack dump in adb logcatW/AlarmManager( 2096): FACTORY_ON= 0F/libc    (14048): 
Fatal signal 11 (SIGSEGV) at 0x59f32828 (code=2)I/DEBUG   ( 8943): *** *** *** 
*** *** *** *** *** *** *** *** *** *** *** *** ***I/DEBUG   ( 8943): Build 
fingerprint: 
'samsung/m0zs/m0:4.0.4/IMM76D/I9300ZSBLI2:user/release-keys'I/DEBUG   ( 8943): 
pid: 14048, tid: 14062  >>> com.happyelements.androidbubble <<<I/DEBUG   ( 
8943): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 59f32828I/DEBUG   
( 8943):  r0 fb3ee249  r1 5db62e00  r2 5f4d3c38  r3 5db61000I/DEBUG   ( 8943):  
r4 5db62e00  r5 fffffffb  r6 5e84baf8  r7 5e7fe6d8I/DEBUG   ( 8943):  r8 
5dc55cc0  r9 5e8b8380  10 0000000f  fp 5e8464f8I/DEBUG   ( 8943):  ip 5f33c4f8  
sp 5c8f0950  lr fffffff4  pc 59f32828  cpsr 20000010I/DEBUG   ( 8943):  d0  
41b0000043088000  d1  0000000000000000I/DEBUG   ( 8943):  d2  44a0000044a00000  
d3  00000500c4200000I/DEBUG   ( 8943):  d4  3f8000004b7fffff  d5  
0000000144340000I/DEBUG   ( 8943):  d6  3ff0000000000000  d7  
3ff0000000000000I/DEBUG   ( 8943):  d8  0000000000000000  d9  
0000000000000000I/DEBUG   ( 8943):  d10 0000000000000000  d11 
0000000000000000I/DEBUG   ( 8943):  d12 0000000000000000  d13 
0000000000000000I/DEBUG   ( 8943):  d14 0000000000000000  d15 
4008000000000000I/DEBUG   ( 8943):  d16 5000000000000000  d17 
0000000000000000I/DEBUG   ( 8943):  d18 0000000000000000  d19 
0000000000000000I/DEBUG   ( 8943):  d20 0000000000000000  d21 
0000000000000000I/DEBUG   ( 8943):  d22 0000000000000000  d23 
0000000000000000I/DEBUG   ( 8943):  d24 0000000000000000  d25 
0000000000000000I/DEBUG   ( 8943):  d26 0000000000000000  d27 
0000000000000000I/DEBUG   ( 8943):  d28 0000000000000000  d29 
0000000000000000I/DEBUG   ( 8943):  d30 0000000000000000  d31 
0000000000000000I/DEBUG   ( 8943):  scr 60000013I/DEBUG   ( 
8943):I/SurfaceFlinger( 1901): id=3672 Removed idx=7 Map 
Size=5I/SurfaceFlinger( 1901): id=3672 Removed idx=-2 Map 
Size=5D/PowerManagerService( 2096): releaseWakeLockLocked flags=0x0 
tag=KEEP_SCREEN_ON_FLAG myUID=1000 myPID=2096 myTID=2154I/DEBUG   ( 8943):      
    #00  pc 59f32828  /system/framework/framework-res.apkI/DEBUG   ( 8943):     
     #01  lr fffffff4  <unknown>I/DEBUG   ( 8943):I/DEBUG   ( 8943): code 
around pc:I/DEBUG   ( 8943): 59f32808 00000088 00000024 00000000 00007673  
....$.......sv..I/DEBUG   ( 8943): 59f32818 00000000 00000000 00000000 00000000 
 ................I/DEBUG   ( 8943): 59f32828 00000000 00000000 00000000 
00000028  ............(...I/DEBUG   ( 8943): 59f32838 00000050 00000078 
00000094 000000bc  P...x...........I/DEBUG   ( 8943): 59f32848 000000e4 
0000010c 00000134 0000015c  ........4...\...I/DEBUG   ( 8943):I/DEBUG   ( 
8943): code around lr:I/DEBUG   ( 8943): ffffffd4 ffffffff ffffffff ffffffff 
ffffffff  ................I/DEBUG   ( 8943): ffffffe4 ffffffff ffffffff 
ffffffff ffffffff  ................I/DEBUG   ( 8943):I/DEBUG   ( 8943): memory 
map around addr 59f32828:I/DEBUG   ( 8943): 59701000-59800000I/DEBUG   ( 8943): 
59800000-59f37000 /system/framework/framework-res.apkI/DEBUG   ( 8943): 
59f37000-59f6a000 /system/framework/twframework-res.apkI/DEBUG   ( 
8943):I/DEBUG   ( 8943): stack:I/DEBUG   ( 8943):     5c8f0910  00000000I/DEBUG 
  ( 8943):     5c8f0914  00000000I/DEBUG   ( 8943):     5c8f0918  
5e8b84e8I/DEBUG   ( 8943):     5c8f091c  5db61248I/DEBUG   ( 8943):     
5c8f0920  5db611c0I/DEBUG   ( 8943):     5c8f0924  5db612c4I/DEBUG   ( 8943):   
  5c8f0928  5db61d00I/DEBUG   ( 8943):     5c8f092c  00000001I/DEBUG   ( 8943): 
    5c8f0930  5e8b84c0I/DEBUG   ( 8943):     5c8f0934  5e8b8560I/DEBUG   ( 
8943):     5c8f0938  5db611c0I/DEBUG   ( 8943):     5c8f093c  5c8f0970I/DEBUG   
( 8943):     5c8f0940  5e8613f8I/DEBUG   ( 8943):     5c8f0944  5c5cca34  
/data/data/com.happyelements.androidbubble/external_lib/libhellolua.soI/DEBUG   
( 8943):     5c8f0948  df0027adI/DEBUG   ( 8943):     5c8f094c  00000000I/DEBUG 
  ( 8943): #00 5c8f0950  fffffffbI/DEBUG   ( 8943):     5c8f0954  
000007f8I/DEBUG   ( 8943):     5c8f0958  5e8476b8I/DEBUG   ( 8943):     
5c8f095c  5e847618I/DEBUG   ( 8943):     5c8f0960  5f4d3b68I/DEBUG   ( 8943):   
  5c8f0964  5f33c4f8I/DEBUG   ( 8943):     5c8f0968  5db611c0I/DEBUG   ( 8943): 
    5c8f096c  5e8b8380I/DEBUG   ( 8943):     5c8f0970  5e82af48I/DEBUG   ( 
8943):     5c8f0974  5e84baf8I/DEBUG   ( 8943):     5c8f0978  5e847618I/DEBUG   
( 8943):     5c8f097c  5db611c0I/DEBUG   ( 8943):     5c8f0980  00000000I/DEBUG 
  ( 8943):     5c8f0984  00000002I/DEBUG   ( 8943):     5c8f0988  
00000000I/DEBUG   ( 8943):     5c8f098c  5db611f0I/DEBUG   ( 8943):     
5c8f0990  00000000I/DEBUG   ( 8943):     5c8f0994  
00000000W/PowerManagerService( 2096): Timer 0x3->0x3|0x0I/DEBUG   ( 8943): 
!@dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_native -m 
14048I/BootReceiver( 2096): Copying /data/tombstones/tombstone_08 to DropBox 
(SYSTEM_TOMBSTONE)

Regard,
congling                                                                        
          

Other related posts: