|
From: Donszelmann, M.
|
Hi while trying to "valgrind" a C++ Java JNI application (which runs w/o valgrind) I get the following error, on RH9, g++3.2.2, jdk 1.4.2: ==14136== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==14136== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==14136== Using valgrind-20030725, a program supervision framework for x86-linux . ==14136== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==14136== Estimated CPU clock rate is 1391 MHz ==14136== For more details, rerun with: -v ==14136== ==14136== Syscall param sigaction(act) contains uninitialised or unaddressable b yte(s) ==14136== at 0x4092057F: __GI___libc_sigaction (in /lib/libc-2.3.2.so) ==14136== by 0x40920669: __GI___sigaction (in /lib/libc-2.3.2.so) ==14136== by 0x4047C8CD: SR_initialize(void) (in /afs/slac.stanford.edu/packa ge/java/i386_linux2/j2sdk1.4.2/jre/lib/i386/client/libjvm.so) ==14136== by 0x4047CE59: os::init_2(void) (in /afs/slac.stanford.edu/package/ java/i386_linux2/j2sdk1.4.2/jre/lib/i386/client/libjvm.so) ==14136== Address 0xBFFFD6F0 is on thread 1's stack ==14136== Warning: set address range perms: large range 201326592, a 0, v 0 ==14136== Warning: set address range perms: large range 201326592, a 1, v 1 ==14136== Warning: set address range perms: large range 201392128, a 0, v 0 ==14136== ==14136== Thread 2: ==14136== Conditional jump or move depends on uninitialised value(s) ==14136== at 0x40A384ED: thread_wrapper (vg_libpthread.c:648) ==14136== by 0x40170DD2: do__quit (vg_scheduler.c:2146) ==14136== ==14136== Thread 2: ==14136== thread_wrapper: invalid attr->__detachstate ==14136== at 0x40A37E2C: pthread_error (vg_libpthread.c:288) ==14136== by 0x40A384F8: thread_wrapper (vg_libpthread.c:650) ==14136== by 0x40170DD2: do__quit (vg_scheduler.c:2146) ==14136== ==14136== Thread 2: ==14136== Conditional jump or move depends on uninitialised value(s) ==14136== at 0x40A384FF: thread_wrapper (vg_libpthread.c:651) ==14136== by 0x40170DD2: do__quit (vg_scheduler.c:2146) ==14136== valgrind's libpthread.so: KLUDGED call to: pthread_getattr_np ==14136== valgrind: vg_libpthread.c:443 (pthread_getattr_np): Assertion `detached == 0 || detached == 1' failed. ==14136== Please report this bug to me at: js...@ac... ==14136== ==14136== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 22 from 2) ==14136== malloc/free: in use at exit: 711493 bytes in 716 blocks. ==14136== malloc/free: 960 allocs, 244 frees, 727689 bytes allocated. ==14136== For a detailed leak analysis, rerun with: --leak-check=yes ==14136== For counts of detected errors, rerun with: -v any ideas welcome. Regards Mark Donszelmann Stanford Linear Accelerator Center (SLAC) |
|
From: Dan K. <da...@ke...> - 2003-09-30 21:51:45
|
Donszelmann, Mark wrote: > while trying to "valgrind" a C++ Java JNI application (which runs w/o valgrind) > I get the following error, on RH9, g++3.2.2, jdk 1.4.2: Good luck! I'd be amazed if valgrind could handle Sun's JRE. You might have better luck with valgrind on an open source JRE like GCJ. But I imagine GCJ might not be able to run your app yet; I doubt it has all the 1.4 class libraries yet. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045 |