[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: debugging a core dump generated from Java with JNI
From:       Daniel Jacobowitz <drow () false ! org>
Date:       2005-02-23 17:25:46
Message-ID: 20050223172545.GA8599 () nevyn ! them ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic