Click to See Complete Forum and Search --> : An unexpected error has been detected by Java Runtime Environment:


ST.mani
06-27-2008, 06:56 AM
I am working in Linux platform.
i have developed an application in java using eclipse editor. and i have called a .so file (using c) from that application through JNI.
it reported the following error...................

*An unexpected error has been detected by Java Runtime Environment:*
*#*
*# SIGSEGV (0xb) at pc=0x007cabb9, pid=8687, tid=3047811984*
*#*
*# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing linux-x86)*
*# Problematic frame:*
*# C [libc.so.6+0x67bb9]*

bwkaz
06-27-2008, 06:50 PM
Some code somewhere is segfaulting (accessing memory that it doesn't own). Since you're calling C code from Java, I would guess that it might have something to do with either bad arguments, or bad pointers being passed to the function you're calling, or something like that. But since you didn't post the Java or C code (and note that even if you had, I don't know how JNI is supposed to work, so I may not even be able to help ;)), I can't tell for sure what's wrong... :)