|
From: Nicholas N. <n.n...@gm...> - 2009-08-11 23:06:08
|
On Wed, Aug 12, 2009 at 3:05 AM, tom fogal<tf...@al...> wrote: > >> So with the invalid read, it is trying to read an address that is not >> valid. Would you happen to know what the line "16 bytes inside a >> block 24 free'd" means? > > I think it's telling you where the chunk of memory became invalid. I'd > have to check the docs for the 16 and 24, but maybe the allocator gave > a 24-byte block and the pointer that is invalid points to 16 of them. You're (illegally) accessing a heap block that has been freed with 'delete'. The block was 24 bytes in size. Your illegal access is 16 bytes from the start of this 24 byte block. See http://www.valgrind.org/docs/manual/mc-manual.html#mc-manual.badrw for more. Nick |