Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Core Dump Debug

 
Satish Kota
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

One of my Java Processes on Solaris Core Dumped due to SIGNAL 11 (SIGENV) and SIGNAL 10 (SIGBUS). SIgnal 11 is caused due to a Segmentation fault and Signal 10 is caused due to a 'Bus error' (hardware error).

I would like to know, which is the best debugger to debug this core dump (java) and know the root cause. I tried 'gdb' but I am not sure if 'gdb' works for java. I would like to get a neat stack trace of the error.

Any help is appreciated.

Thanks.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use gdb, but be aware that trying to debug a crashed Java process is only really worthwhile if there is a chance that the crash is in your own native code.

If your application does contain your own native code, and you can compile it with debugging symbols, then gdb will be of great help in diagnosing the problem. A good way to use gdb in this situation is to attach gdb to the already-running JVM.

If your application does not contain any native code, or at least none over which you have control, trying to debug it using gdb is likely to give you little benefit. The JVM itself will not have full debugging information in it, and even if it did, you probably won't be able to work out what's wrong unless you are a genius C/C++ programmer. You'd be better off trying to identify what Java code provokes the problem, then search the Sun bug database for similar bug reports. This may reveal a work-around or a version of Java in which it is fixed.
[ December 13, 2006: Message edited by: Peter Chase ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic