Debugging VM crash in native code.
DiggBlinkRedditDeliciousTechnorati
question by sethmussL | Moderate
OS: Linux RedHat
Java: 1.4.2_05
Situation (Error output at bottom of message): I am building an application that uses a Java class that invokes a native method (the target .so and .class are 3rd party and I don't have the original source code for the .so). The VM crashes and lists a function (mangled) in a standard library. I am sure there is a way to take the mangled function name and get the actual function name, but don't know how. If anyone can help with this, or any generic JNI debugging hints/tips would be greatly appreciated!
Thanks!
Seth
Error output:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4E338658
Function=_ZNSsC1ERKSs+0x18
Library=/usr/local/gcc-3.3.1/lib/libstdc++.so.5
Current Java Thread:
at 3rdpartyclass.nativemethod(Native Method)
...
Dynamic libraries:
08048000-08056000 r-xp 00000000 03:03 1639037 /usr/local/j2sdk/1.4.2_05/j2sdk/RedHat8.0/bin/java
...
Heap at VM Abort:
...
Post reply
Subscriptions
Got a Java Question?
Just Sign Up and ask the top Java experts!
|