MRPT / mrpt

:zap: The Mobile Robot Programming Toolkit (MRPT)
https://docs.mrpt.org/reference/latest/
BSD 3-Clause "New" or "Revised" License
1.94k stars 628 forks source link

libwxgtk*.so seem to leak #23

Closed jlblancoc closed 10 years ago

jlblancoc commented 10 years ago

As detected by valgrind at program final clean up:

==3865== Invalid read of size 8 ==3865== at 0x63EB547: wcscmp (wcscmp.S:230) ==3865== by 0x76BE269: wxHashTableBase::DoDelete(wchart const, long) (in /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0.8.0) ==3865== by 0x76D29FB: wxClassInfo::Unregister() (in /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0.8.0) ==3865== by 0x6384479: cxa_finalize (cxa_finalize.c:55) ==3865== by 0x9F32F52: ??? (in /home/jlblanco/code/mrpt-release/lib/libmrpt-gui.so.1.1.1) ==3865== by 0x400FF26: _dl_fini (dl-fini.c:253) ==3865== by 0x6384070: run_exit_handlers (exit.c:77) ==3865== by 0x63840F4: exit (exit.c:99) ==3865== by 0x6369DEB: (below main) (libc-start.c:294) ==3865== Address 0x1917bc38 is 24 bytes inside a block of size 28 alloc'd ==3865== at 0x4C2AFE7: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==3865== by 0x76BDC87: wxHashTableBase_Node::wxHashTableBase_Node(wchart const, void, wxHashTableBase) (in /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0.8.0) ==3865== by 0x76BDE9A: wxHashTableBase::DoPut(wchart const, long, void_) (in /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0.8.0) ==3865== by 0x76D2BEC: wxClassInfo::Register() (in /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0.8.0) ==3865== by 0x9F32563: _GLOBAL__sub_I_mathplot.cpp (in /home/jlblanco/code/mrpt-release/lib/libmrpt-gui.so.1.1.1) ==3865== by 0x400F855: call_init.part.0 (dl-init.c:84) ==3865== by 0x400F90F: _dl_init (dl-init.c:55) ==3865== by 0x4001669: ??? (in /lib/x86_64-linux-gnu/ld-2.17.so) ==3865== ==3865== Invalid read of size 8

jlblancoc commented 10 years ago

Seems to be fixed... (may re-open in the future?)