1752803 Members
5470 Online
108789 Solutions
New Discussion

JNI and purify

 
Shivraj Ramanan
New Member

JNI and purify

Hello,

If I run purify and link in libjvm.sl, when I run the executable it core dumps, no matter what the program itself is.

I would like to know how to fix this problem, or barring that how to make purify ignore the instrumentation of libjvm.sl, if possible.

Thank you.

More detailed explanantion of the problem follows:

Using this mini hello world code
// start of hello-world.cpp
#include
#include

int main() {
return 0;
}
// end of hello-world.cpp

If I run
$(PURIFY) $(CC) -L/opt/java/jre/lib/PA_RISC/hotspot -L/opt/java/jre/lib/PA_RISC -ljvm hello-world.cpp -o hello-world

When I run hello-world,
SHLIB_PATH=/opt/java/jre/lib/PA_RISC/hotspot:/opt/java/jre/lib/PA_RISC hello-world

it core dumps due to a SIGSEGV.