debugging a core dump generated from Java with JNI
Daniel Jacobowitz
drow@false.org
Wed Feb 23 18:37:00 GMT 2005
On Wed, Feb 23, 2005 at 06:55:15PM +0200, John Que wrote:
> Hello,
> I am developing a java application which calls a procedure in "C"
> using JNI.
>
> It is developed on a Linux RedHat 9 x86 intel box.
> Sometimes this procedure crashes and a coredeump (core.pid) file is created.
> So I wanted to know how to debug it; So i changed that "c" method so the
> only thing
> it does now is call abort() so it will make a core dump.
>
> I had build my c code with -g flag.
>
> When I opened gdb like thus:
>
> gdb /usr/java/usr/java/j2sdk1.4.2_06/bin/java core.pid
Sorry, but it looks like the JDK loads objects in a way that GDB
doesn't understand. You'd have to use a debugger that supported the
Sun JDK to debug this.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list