THE ZEPINT NETWORK

programmer assist

Java Java XML Feeds

Java Questions Java Solutions Java Articles

Java is an object-oriented programming language developed initially by James Gosling and colleagues at Sun Microsystems. The language, initially called Oak (named after the oak trees outside Gosling's office), was intended to replace C++, although the feature set better resembles that of Objective C. Java should not be confused with JavaScript, which shares only the name and a similar C-like syntax. Sun Microsystems currently maintains and updates Java regularly.

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!

Search via Google

User Login

Email Address

Password

Java Experts

Rank Expert Points
#1 Srirangan 100
This a list of the Top Java experts, how many points do you have?

Leading Experts

Rank Expert Points
#1 frankzzsword 4600
#2 Bejaan 2900
#3 csfreak 1100
#4 Anurag 700
#5 keyvez 700
#6 nnarasimha 600
#7 Nakata 600
#8 martinig 600
#9 mastercomputers 400
#10 Huntress 150
#11 Adkron 150
#12 Yogesh 100
#13 lexxwern 100
#14 Mustan Khan 100
#15 poizn 100
This is a list of overall best performing experts, how many points do you have?