|
From: Nicholas N. <nj...@ca...> - 2004-08-20 08:19:35
|
On Fri, 20 Aug 2004, Tom Hughes wrote: >> Im new user of Valgrind, and I dont know how to read his >> output.. anybody can explain what is a "Invalid read of size X" .. and >> can describe where is my error here (im gettin lots of these erros.. >> lol): > > It means your program is making an invalid read of size X bytes. In > other words it is reading through a pointer whose value is not properly > initialised. Er, no; the pointer itself is fine. But your program is accessing memory it should not. The 2nd half of your error shows that you are accessing memory inside a heap block that has been freed. See the manual for more details. N |