This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/11943] New: Not able to debug my application that has native Java calls. (GDB 7.1, Solaris10)


Hello,

I am using gdb 7.1. I tried to debug my application which is written in C and
has few JNI (Java Native Interface) calls. When the debugger tries to debug that
piece of code that has JNI code, it causes the application (or gdb) to crash. It
prints out stack trace and crashes. 

===================================================
Crash detail:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xf860a183 in ?? ()
(gdb) c
Continuing.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xf860a183, pid=15495, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# j  org.apache.xerces.utils.UTF8DataChunk.toString(II)Ljava/lang/String;+126
#
# An error report file with more information is saved as hs_err_pid15495.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
JVM abort hook called
Exception occurred after closeSolution

Exception in thread "main" java.lang.NullPointerException
        at SynapseAPI.closeSolution(SynapseAPI.java:106)

Program exited with code 01.
========================================


Backtrace:
===========================================
#0  0xf860a183 in ?? ()
#1  0xf8602a7b in ?? ()
#2  0xf86029a4 in ?? ()
#3  0xf86029a4 in ?? ()
#4  0xf86029a4 in ?? ()
#5  0xf86029a4 in ?? ()
#6  0xf86029a4 in ?? ()
#7  0xf8602a7b in ?? ()
#8  0xf8600152 in ?? ()
#9  0xfdca86d7 in
__1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#10 0xfdca8544 in
__1cCosUos_exception_wrapper6FpFpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v2468_v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#11 0xfdca8528 in
__1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_
() from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#12 0xfdcb5ede in
__1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#13 0xfdcb5e0d in
__1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#14 0xfdde7670 in jni_ExceptionDescribe () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#15 0x080efafc in ?? ()
#16 0x080f1f64 in ?? ()
#17 0x0806ac0b in ?? ()
#18 0x080f05f1 in ?? ()
#19 0xfdec07a8 in __1cCosIshutdown6F_v_ () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#20 0xfdec07c5 in __1cCosFabort6Fi_v_ () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#21 0xfdf1f27a in __1cHVMErrorOreport_and_die6M_v_ () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#22 0xfdd6ebc9 in JVM_handle_solaris_signal () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#23 0xfdd6e390 in signalHandler () from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#24 0xfe17fd3f in __sighndlr () from /lib/libc.so.1
#25 0xfe1762e5 in call_user_handler () from /lib/libc.so.1
#26 <signal handler called>
#27 0xf860a183 in ?? ()
#28 0xf8602caa in ?? ()
#29 0xf86029a4 in ?? ()
#30 0xf8602a7b in ?? ()
#31 0xf8602c29 in ?? ()
#32 0xf8602923 in ?? ()
#33 0xf8602a7b in ?? ()
#34 0xf8602a7b in ?? ()
#35 0xf8602a7b in ?? ()
#36 0xf86029a4 in ?? ()
#37 0xf86029a4 in ?? ()
#38 0xf8600152 in ?? ()
#39 0xfdca86d7 in
__1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#40 0xfdca8544 in
__1cCosUos_exception_wrapper6FpFpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v2468_v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#41 0xfdca8528 in
__1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_
() from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#42 0xfdcb8503 in
__1cUjni_invoke_nonstatic6FpnHJNIEnv__pnJJavaValue_pnI_jobject_nLJNICallType_pnK_jmethodID_pnSJNI_ArgumentPusher_pnGThread__v_
()
   from /usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#43 0xfdd4dd9d in jni_CallBooleanMethod () from
/usr/jdk/jdk1.5.0_06/jre/lib/i386/libjvm.so
#44 0x080f1c49 in ?? ()
#45 0x0806b72b in ?? ()
#46 0x08073f86 in ?? ()
#47 0x08069120 in ?? ()
#48 0x00000000 in ?? ()
=========================================================

-- 
           Summary: Not able to debug my application that has native Java
                    calls. (GDB 7.1,  Solaris10)
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: toamitajs at rediffmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11943

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]