From: Daniel Jacobowitz <drow@false.org>
To: John Que <qwejohn@hotmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: debugging a core dump generated from Java with JNI
Date: Wed, 23 Feb 2005 18:37:00 -0000 [thread overview]
Message-ID: <20050223172545.GA8599@nevyn.them.org> (raw)
In-Reply-To: <BAY14-F85467C4B93A07D4C1D727AF630@phx.gbl>
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 parent reply other threads:[~2005-02-23 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 17:25 John Que
2005-02-23 18:37 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050223172545.GA8599@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=qwejohn@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox