From: Olly B. <ol...@su...> - 2003-06-17 16:01:36
|
On Tue, Jun 17, 2003 at 10:04:15AM -0500, Sarcar, Shourya C (MED) wrote: > But when I run this with a particular program (I call it 've'), the > program executes but Valgrind prints out no messages at all. > The only outputs are the printfs from the executable (ve). This is FAQ #5. It probably means 've' is statically linked. Try running ldd on ve: ldd ve This will say "not a dynamic executable" if ve is statically linked. In order to hook into execution, valgrind uses LD_PRELOAD tricks which only work for dynamically linked executables. Which reminds me that I wrote a quick patch to add a test for this case (attached). Not sure if it's worth the overhead or not, but I might as well post it rather than leaving it sitting on my harddisk... Cheers, Olly |