Hello,

I recently found out about Valgrind (http://devel-home.kde.org/~sewardj/),
memory debugger for x86-linux and tried to run Mahogany with it.

It reported a lot of problems with event.cpp:

==19837== Invalid write of size 8
==19837==    at 0x4084BE07: (within /lib/libm-2.2.4.so)
==19837==    by 0x40486C1F: wxSplitterWindow::DrawSash(wxDC&) 
(../wxWindows/src/generic/splitter.cpp:553)
==19837==    by 0x4048594D: wxSplitterWindow::OnPaint(wxPaintEvent&) 
(../wxWindows/src/generic/splitter.cpp:155)
==19837==    by 0x40519653: wxEvtHandler::SearchEventTable(wxEventTable&, wxEvent&) 
(../wxWindows/src/common/event.cpp:887)
==19837==    Address 0xBFFFE458 is not stack'd, malloc'd or free'd

and some with others:

==19837== Invalid read of size 4
==19837==    at 0x4084BE07: (within /lib/libm-2.2.4.so)
==19837==    by 0x40459AAE: wxListLineData::SetAttributes(wxDC*, wxListItemAttr 
(../wxWindows/src/generic/listctrl.cpp:1642)
==19837==    by 0x40459CC5: _ZN14wxListLineData16DrawInReportModeEP4wxDCRK6wxRectS4_b 
(../wxWindows/src/generic/listctrl.cpp:1690)
==19837==    by 0x4045D169: wxListMainWindow::OnPaint(wxPaintEvent&) 
(../wxWindows/src/generic/listctrl.cpp:2755)
==19837==    Address 0xBFFFE4E8 is not stack'd, malloc'd or free'd

==19837== Invalid read of size 2
==19837==    at 0x4089EB20: (within /lib/libc-2.2.4.so)
==19837==    by 0x405B0530: wxMimeTypesManagerImpl::ReadMailcap(wxString (../wxW
indows/src/unix/mimetype.cpp:2432)
==19837==    by 0x405AC6BF: wxMimeTypesManagerImpl::GetMimeInfo(wxString 
(../wxWindows/src/unix/mimetype.cpp:1373)
==19837==    by 0x405AC22E: wxMimeTypesManagerImpl::Initialize(int, wxString 
(../wxWindows/src/unix/mimetype.cpp:1304)
==19837==    Address 0x40D62700 is not stack'd, malloc'd or free'd

Here is a summary:

==19837== ERROR SUMMARY: 8119 errors from 161 contexts (suppressed: 143 from 6)
==19837== malloc/free: in use at exit: 514412 bytes in 3756 blocks.
==19837== malloc/free: 363305 allocs, 359506 frees, 159495929 bytes allocated.
==19837== For a detailed leak analysis,  rerun with: --leak-check=yes
==19837== For counts of detected errors, rerun with: -v

Do you think it is interesting for wxdevelopers?

Regards,
Nerijus


_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to