[fpc-pascal] Understanding valgrind logs

ik idokan at gmail.com
Sun Nov 8 14:44:37 CET 2009


Hello all,
I'm trying to figure out valgrind's log about a program I wrote in Pascal
using FPC.

I have a lot of the following messages:\
==30348== Mismatched free() / delete / delete []
==30348==    at 0x4C21A18: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30348==    by 0x6F6F8E3: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F539FE: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x774344B: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F505A9: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F98707: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F79020: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F790BE: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==  Address 0xd2892b0 is 0 bytes inside a block of size 32 alloc'd
==30348==    at 0x4C2261C: operator new(unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30348==    by 0x6F4EB72: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x7742831: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F505A9: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F98707: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F79020: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F790BE: ??? (in /usr/lib/libQtWebKit.so.4.5.3)
==30348==    by 0x6F7B0ED: ??? (in /usr/lib/libQtWebKit.so.4.5.3)

...
--30348-- memcheck GC: 16384 nodes, 15231 survivors ( 92.9%)
--30348-- memcheck GC: increase table size to 32768
--30348-- REDIR: 0x7e62310 (operator new(unsigned long, std::nothrow_t
const&)) redirected to 0x4c21cd0 (operator new(unsigned long, std::nothrow_t
const&))
--30348-- REDIR: 0x7e60410 (operator delete(void*, std::nothrow_t const&))
redirected to 0x4c21577 (operator delete(void*, std::nothrow_t const&))
--30348-- memcheck GC: 32768 nodes, 30752 survivors ( 93.8%)
--30348-- memcheck GC: increase table size to 65536
....

Not even one report about my own code, buy all about shard libraries.
Does anyone know what it means exactly ?

Thanks,
Ido

http://ik.homelinux.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20091108/f99e6d5d/attachment.html>


More information about the fpc-pascal mailing list