occasionally SIGBUS crash in JNI

by allstars » Wed, 14 Oct 2009 16:37:00 GMT


Sponsored Links
 hello
my apps contains JNI library
but sometimes when i launch it
it will have SIGBUS error

i use addr2line to check the stack trace

the last stack in my native lib is to invoke a JNI call
then it goes to libdvm

my app doesnt register the native method tables on JNI_Onload
it uses traditional JNI native method , i.e.
Java_com_XXXXXX

i would like to know why SIGBUS occurs occasionally

thanks
--~--~---------~--~----~------------~-------~--~----~



occasionally SIGBUS crash in JNI

by allstars » Wed, 14 Oct 2009 17:38:19 GMT


 nd sometimes i met SIGBUS from other lib
below is the log

Build fingerprint: 'generic/generic/generic/:1.6/Donut/eng.allstars.
20090923.152135:eng/test-keys'
10-14 17:33:35.638: INFO/DEBUG(551): pid: 742, tid: 742 >>>
jp.aplix.midp.p1 <<<
10-14 17:33:35.638: INFO/DEBUG(551): signal 7 (SIGBUS), fault addr
00000000
10-14 17:33:35.638: INFO/DEBUG(551): r0 00000001 r1 00000003 r2
00000003 r3 ffff0fff
10-14 17:33:35.638: INFO/DEBUG(551): r4 00000001 r5 ffffffff r6
00000003 r7 0000bc60
10-14 17:33:35.638: INFO/DEBUG(551): r8 00000160 r9 41049200 10
4104be80 fp 00000000
10-14 17:33:35.648: INFO/DEBUG(551): ip ad084fa4 sp bea27708 lr
afb04764 pc ffff0fc0 cpsr 00000010
10-14 17:33:35.737: INFO/DEBUG(551): #00 pc ffff0fc0
10-14 17:33:35.747: INFO/DEBUG(551): #01 pc 00004760 /
system/lib/libcutils.so
10-14 17:33:35.747: INFO/DEBUG(551): stack:
10-14 17:33:35.747: INFO/DEBUG(551): bea276c8 00000002
10-14 17:33:35.747: INFO/DEBUG(551): bea276cc bea27700 [stack]
10-14 17:33:35.747: INFO/DEBUG(551): bea276d0 00000000
10-14 17:33:35.747: INFO/DEBUG(551): bea276d4 ad337785 /system/
lib/libandroid_runtime.so
10-14 17:33:35.747: INFO/DEBUG(551): bea276d8 4104bc90
10-14 17:33:35.757: INFO/DEBUG(551): bea276dc ad00e4b8 /system/
lib/libdvm.so
10-14 17:33:35.757: INFO/DEBUG(551): bea276e0 0000bc60 [heap]
10-14 17:33:35.757: INFO/DEBUG(551): bea276e4 00000001
10-14 17:33:35.757: INFO/DEBUG(551): bea276e8 00000007
10-14 17:33:35.757: INFO/DEBUG(551): bea276ec ad047511 /system/
lib/libdvm.so
10-14 17:33:35.757: INFO/DEBUG(551): bea276f0 4109ced8
10-14 17:33:35.757: INFO/DEBUG(551): bea276f4 0000bc60 [heap]
10-14 17:33:35.767: INFO/DEBUG(551): bea276f8 ad337785 /system/
lib/libandroid_runtime.so
10-14 17:33:35.767: INFO/DEBUG(551): bea276fc ad040cc1 /system/
lib/libdvm.so
10-14 17:33:35.767: INFO/DEBUG(551): bea27700 df002777
10-14 17:33:35.767: INFO/DEBUG(551): bea27704 e3a070ad
10-14 17:33:35.767: INFO/DEBUG(551): #01 bea27708 41ed7072
10-14 17:33:35.767: INFO/DEBUG(551): bea2770c ad045c55 /system/
lib/libdvm.so
10-14 17:33:35.767: INFO/DEBUG(551): bea27710 00000003
10-14 17:33:35.767: INFO/DEBUG(551): bea27714 00000001
10-14 17:33:35.767: INFO/DEBUG(551): bea27718 00000001
10-14 17:33:35.767: INFO/DEBUG(551): bea2771c 41ed7072
10-14 17:33:35.767: INFO/DEBUG(551): bea27720 4104be90
10-14 17:33:35.767: INFO/DEBUG(551): bea27724 bea27770 [stack]
10-14 17:33:35.767: INFO/DEBUG(551): bea27728 ad00e640 /system/
lib/libdvm.so
10-14 17:33:35.767: INFO/DEBUG(551): bea2772c ad00ed9c /system/
lib/libdvm.so
10-14 17:33:35.767: INFO/DEBUG(551): bea27730 ad084e1c
10-14 17:33:35.777: INFO/DEBUG(551): bea27734 41049200
10-14 17:33:35.777: INFO/DEBUG(551): bea27738 bea27770 [stack]
10-14 17:33:35.777: INFO/DEBUG(551): bea2773c ad017d38 /system/
lib/libdvm.so
10-14 17:33:35.777: INFO/DEBUG(551): bea27740 00000330
10-14 17:33:35.777: INFO/DEBUG(551): bea27744 bea277f8 [stack]
10-14 17:33:35.777: INFO/DEBUG(551): bea27748 0000bc60 [heap]
10-14 17:33:35.777: INFO/DEBUG(551): bea2774c 4104bf04



On Oct 14, 4:36pm, allstars <allstars....@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


occasionally SIGBUS crash in JNI

by Marco Nelissen » Thu, 15 Oct 2009 00:00:39 GMT


 ou're probably passing a NULL pointer to your native code, which is
rarely a good idea.


On Wed, Oct 14, 2009 at 2:37 AM, allstars <allstars....@gmail.com> wrote:

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Closed: WTA: setting apn telkomsel

Ok thanks boss. Langsung dicoba

Regards,
Enya
~sent from ma NexusDream~




Kalo Pake telkomselflash : kosong kan saja. Sol






Thanks boss.
Username n p...







Menu - setting - wireless netw...






> 

2. NoClassDefFoundError for gdata CalendarService class



As a peer to assets/, bin/, gen/, res/, and src/.

Now, it is conceivable that Eclipse handles things differently. I don't
use Eclipse, and from the command line, just dropping the dependent JARs
in libs/ is all you need. My recommendation to my students is that they
put their dependent JARs in libs/ plus add them to the Eclipse build path.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 

3. NoClassDefFoundError for gdata CalendarService class

4. Ask s/w backup app

5. AppWidgetProvider and setTypeface

6. Application losing SharedPreferences and Sqlite database on Droid

7. Issues with Listener, "back" button, and onDestroy().