|
From: Fei He <fig...@gm...> - 2010-07-29 20:14:26
|
Hi, I've a simple test code that tries to write 3 int64 into a int32x3 array: ==9632== Invalid write of size 8 ==9632== at 0x4005D7: to_network (in /u/feih/mytest/a.out) ==9632== by 0x40062E: main (in /u/feih/mytest/a.out) *==9632== Address 0x405D038 is 8 bytes inside a block of size 12 alloc'd* ==9632== at 0x4C1F809: malloc (vg_replace_malloc.c:149) ==9632== by 0x400615: main (in /u/feih/mytest/a.out) ==9632== ==9632== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 4 from 1) >From what I can see above, after the 2nd write of int64, valgrind exits without trying to write the third one. Does it mean the other error is suppressed? What does it mean for 2 errors from 1 contexts? If it is suppressed, it is then interesting to know that a similar run in freebsd-port won't:) [valgrind version 3.2.1] -- -Fei |