|
From: strk <st...@ke...> - 2005-03-15 17:41:20
|
On Tue, Mar 15, 2005 at 09:35:24AM -0800, Jeremy Fitzhardinge wrote: > strk wrote: > > >Did anyone have success - or are there plans - using valgrind > >against code linked against libgcj (java compiled by gcc) ? > > > I would assume that it would just work, though there may be some issues > with how symbols are reported (I don't know how gcj mangles symbols, and > whether Valgrind can demangle them). Have you tried and it didn't work? > > J Yes. valgrind-2.4.0.rc4. ==26276== Conditional jump or move depends on uninitialised value(s) ==26276== at 0x1C057E52: GC_push_all_eager (mark.c:1469) ==26276== by 0x1C0593EE: GC_push_current_stack (mark_rts.c:488) ==26276== by 0x1C060714: GC_generic_push_regs (mach_dep.c:452) ==26276== by 0x1C059555: GC_push_roots (mark_rts.c:628) ==26276== by 0x1C05898E: GC_mark_some (mark.c:326) ==26276== by 0x1C04FCCA: GC_stopped_mark (alloc.c:517) ==26276== by 0x1C050683: GC_try_to_collect_inner (alloc.c:364) ==26276== by 0x1C05A4B9: GC_init_inner (misc.c:758) ==26276== by 0x1C05A6DD: GC_init (misc.c:477) ==26276== by 0x1C054448: GC_init_gcj_malloc (gcj_mlc.c:60) ==26276== by 0x1BE5D5C6: _Jv_InitGC() (boehm.cc:526) ==26276== by 0x1BE5FAAE: _Jv_CreateJavaVM(void*) (prims.cc:907) ==26276== ==26276== Conditional jump or move depends on uninitialised value(s) ==26276== at 0x1C057E52: GC_push_all_eager (mark.c:1469) ==26276== by 0x1C057EB1: GC_push_all_stack (mark.c:1521) ==26276== by 0x1C060197: GC_push_all_stacks (pthread_stop_world.c:232) ==26276== by 0x1C05B4D6: GC_default_push_other_roots (os_dep.c:1990) ==26276== by 0x1C059563: GC_push_roots (mark_rts.c:643) ==26276== by 0x1C05898E: GC_mark_some (mark.c:326) ==26276== by 0x1C04FCCA: GC_stopped_mark (alloc.c:517) ==26276== by 0x1C050683: GC_try_to_collect_inner (alloc.c:364) ==26276== by 0x1C05A4B9: GC_init_inner (misc.c:758) ==26276== by 0x1C05A6DD: GC_init (misc.c:477) ==26276== by 0x1C054448: GC_init_gcj_malloc (gcj_mlc.c:60) ==26276== by 0x1BE5D5C6: _Jv_InitGC() (boehm.cc:526) ==26276== ==26276== More than 30000 total errors detected. I'm not reporting any more. ==26276== Final error counts will be inaccurate. Go fix your program! ==26276== Rerun with --error-limit=no to disable this cutoff. Note ==26276== that errors may occur in your program without prior warning from ==26276== Valgrind, because errors are no longer being displayed. Note that the code works fine, I just wanted to inspect eventual memory leaks. --strk; |