|
From: Nicholas N. <n.n...@gm...> - 2009-01-16 07:14:12
|
Hi, The output from exp-ptrcheck/tests/supp is this: ==18599== Invalid read of size 1 ==18599== at 0x400571: main (supp.c:13) ==18599== Address 0x519f02f is 1 bytes before a block of size 6 alloc'd ==18599== at 0x4C2758C: malloc (vg_replace_malloc.c:224) ==18599== by 0x400564: main (supp.c:12) ==18599== Warning: invalid file descriptor -1 in syscall write() If you run with -v, you get these extra two lines: ==18599== at 0x4F05D80: write (in /lib/libc-2.8.90.so) ==18599== by 0x4005AB: main (supp.c:16) They are pretty useful, and it's far from obvious that -v will give them to you. Anyone see a problem with this? (It's a bit sucky that there's no blank line before the "Warning:" line. I think it's because this FD error isn't done properly through m_errormsg.c, so doesn't get the normal formatting, can't be suppressed, etc.) Nick |