On Sep 10, 11:30 am, fadden <fad...@android.com> wrote:
> An invalid DeleteLocalRef should cause the CheckJNI code to scream.
> And probably not cause a failure due to the way local refs are
> currently implemented.

Ok; no wonder I couldn't find any DeleteLocalRef problems.

> In my experience, crashes during GC are often the result of something
> scribbling on the virtual heap.  The "forcecopy" mode of CheckJNI can
> find some of these (instead of returning a raw pointer to primitive
> arrays on the virtual heap, it makes a copy wrapped in guard pages, so
> anything that runs off the start/end gets spotted early).

With forcecopy enabled, I now get the crash in a different location:

I/DEBUG   (  547): Build fingerprint: 'generic/sdk/generic/:1.5/
CUPCAKE/148875:eng/test-keys'
I/DEBUG   (  547): pid: 713, tid: 738  >>> com.flexilis <<<
I/DEBUG   (  547): signal 11 (SIGSEGV), fault addr 00000002
I/DEBUG   (  547):  r0 00000002  r1 afe3cd28  r2 00000002  r3 00000002
I/DEBUG   (  547):  r4 afe3cd28  r5 00194c2c  r6 8044f2d4  r7 00000078
I/DEBUG   (  547):  r8 45d28cb8  r9 afe39dd0  10 8044f2d4  fp 46628e6c
I/DEBUG   (  547):  ip 804d13c4  sp 46628e18  lr afe1355d  pc
afe0e14c  cpsr 00000010
I/DEBUG   (  547):          #00  pc 0000e14c  /system/lib/libc.so
I/DEBUG   (  547):          #01  pc 0001355a  /system/lib/libc.so

Which corresponds to the strlen() call within fputs(), but which
unfortunately
doesn't clarify the situation at all, since we don't have any calls to
fputs().
We also don't have any calls to fwrite() or fprint() nearby that might
be using
fputs().

I can't prove this is the same crash as the other one, but since I
haven't
seen any other crashes recently I think it's the same bug.
Unfortunately
the bug is not easily reproducible so I can't build a simple testcase.

Thanks,
Dave Golombek
Flexilis, Inc
www.flexilis.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to