Double object deletion in KHTMLPart dtor

Andras Mantia amantia at freemail.hu
Tue Dec 9 16:14:28 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dirk Mueller wrote:

> On Tuesday 09 December 2003 16:42, Andras Mantia wrote:
> 
>> in the documentation and close Quanta. valgrind reports:
> 
> can you please rerun with --num-callers=42 so that the backtraces are at
> least somehow usable?

I'm not a valgrind guru, so I didn't know about that. Here is the new result 
(as you seen not all of the kdelibs is compiled with debug info, 
but it should be traceable). Looks like the KFind object is already deleted when
the KHTMLView is destroyed. Hm, d->m_find is created with:
  d->m_find = new KFind( d->m_findDialog->pattern(), 0 /*options*/, widget(), d->m_findDialog );

Is widget() here a KHTMLView? If so, it's clear why we don't need the delete in the
KHTMLPart dtor.


==13548==
==13548== Invalid read of size 4
==13548==    at 0x4056B48F: KHTMLPart::~KHTMLPart() (/development/sources/kde-head/kdelibs/khtml/khtml_part.cpp:409)
==13548==    by 0x8117F50: WHTMLPart::~WHTMLPart() (/home/andris/development/quanta/quanta-be/quanta/widgets/whtmlpart.cpp:44)
==13548==    by 0x4092D239: KParts::Part::slotWidgetDestroyed() (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092F838: KParts::Part::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092FBD7: KParts::ReadOnlyPart::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x405889BB: KHTMLPart::qt_invoke(int, QUObject*) (khtml_part.moc:531)
==13548==    by 0x8117A24: WHTMLPart::qt_invoke(int, QUObject*) (whtmlpart.moc:118)
==13548==    by 0x41580619: QObject::activate_signal(QConnectionList*, QUObject*) (kernel/qobject.cpp:2357)
==13548==    by 0x4158036B: QObject::activate_signal(int) (kernel/qobject.cpp:2302)
==13548==    by 0x418C1CF7: QObject::destroyed() (.moc/debug-shared-mt/moc_qobject.cpp:102)
==13548==    by 0x4157D09E: QObject::~QObject() (kernel/qobject.cpp:446)
==13548==    by 0x415B19E3: QWidget::~QWidget() (kernel/qwidget.cpp:932)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==    Address 0x47F21DC8 is 0 bytes inside a block of size 80 free'd
==13548==    at 0x40028C2D: __builtin_delete (vg_replace_malloc.c:233)
==13548==    by 0x40028C4B: operator delete(void*) (vg_replace_malloc.c:242)
==13548==    by 0x40982730: KFind::~KFind() (/development/sources/kde-head/kdelibs/kutils/kfind.cpp:99)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==
==13548== Invalid write of size 4
==13548==    at 0x4157D7FB: QObject::~QObject() (kernel/qobject.cpp:436)
==13548==    by 0x4056B4A3: KHTMLPart::~KHTMLPart() (/development/sources/kde-head/kdelibs/khtml/khtml_part.cpp:409)
==13548==    by 0x8117F50: WHTMLPart::~WHTMLPart() (/home/andris/development/quanta/quanta-be/quanta/widgets/whtmlpart.cpp:44)
==13548==    by 0x4092D239: KParts::Part::slotWidgetDestroyed() (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092F838: KParts::Part::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092FBD7: KParts::ReadOnlyPart::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x405889BB: KHTMLPart::qt_invoke(int, QUObject*) (khtml_part.moc:531)
==13548==    by 0x8117A24: WHTMLPart::qt_invoke(int, QUObject*) (whtmlpart.moc:118)
==13548==    by 0x41580619: QObject::activate_signal(QConnectionList*, QUObject*) (kernel/qobject.cpp:2357)
==13548==    by 0x4158036B: QObject::activate_signal(int) (kernel/qobject.cpp:2302)
==13548==    by 0x418C1CF7: QObject::destroyed() (.moc/debug-shared-mt/moc_qobject.cpp:102)
==13548==    by 0x4157D09E: QObject::~QObject() (kernel/qobject.cpp:446)
==13548==    by 0x415B19E3: QWidget::~QWidget() (kernel/qwidget.cpp:932)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==    Address 0x47F21DC8 is 0 bytes inside a block of size 80 free'd
==13548==    at 0x40028C2D: __builtin_delete (vg_replace_malloc.c:233)
==13548==    by 0x40028C4B: operator delete(void*) (vg_replace_malloc.c:242)
==13548==    by 0x40982730: KFind::~KFind() (/development/sources/kde-head/kdelibs/kutils/kfind.cpp:99)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==
==13548== Invalid read of size 1
==13548==    at 0x4157D800: QObject::~QObject() (kernel/qobject.cpp:437)
==13548==    by 0x4056B4A3: KHTMLPart::~KHTMLPart() (/development/sources/kde-head/kdelibs/khtml/khtml_part.cpp:409)
==13548==    by 0x8117F50: WHTMLPart::~WHTMLPart() (/home/andris/development/quanta/quanta-be/quanta/widgets/whtmlpart.cpp:44)
==13548==    by 0x4092D239: KParts::Part::slotWidgetDestroyed() (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092F838: KParts::Part::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092FBD7: KParts::ReadOnlyPart::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x405889BB: KHTMLPart::qt_invoke(int, QUObject*) (khtml_part.moc:531)
==13548==    by 0x8117A24: WHTMLPart::qt_invoke(int, QUObject*) (whtmlpart.moc:118)
==13548==    by 0x41580619: QObject::activate_signal(QConnectionList*, QUObject*) (kernel/qobject.cpp:2357)
==13548==    by 0x4158036B: QObject::activate_signal(int) (kernel/qobject.cpp:2302)
==13548==    by 0x418C1CF7: QObject::destroyed() (.moc/debug-shared-mt/moc_qobject.cpp:102)
==13548==    by 0x4157D09E: QObject::~QObject() (kernel/qobject.cpp:446)
==13548==    by 0x415B19E3: QWidget::~QWidget() (kernel/qwidget.cpp:932)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==    Address 0x47F21DCC is 4 bytes inside a block of size 80 free'd
==13548==    at 0x40028C2D: __builtin_delete (vg_replace_malloc.c:233)
==13548==    by 0x40028C4B: operator delete(void*) (vg_replace_malloc.c:242)
==13548==    by 0x40982730: KFind::~KFind() (/development/sources/kde-head/kdelibs/kutils/kfind.cpp:99)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
Double QObject deletion detected.
==13548==
==13548== Invalid free() / delete / delete[]
==13548==    at 0x40028C2D: __builtin_delete (vg_replace_malloc.c:233)
==13548==    by 0x40028C4B: operator delete(void*) (vg_replace_malloc.c:242)
==13548==    by 0x4157DBA9: QObject::~QObject() (kernel/qobject.cpp:503)
==13548==    by 0x4056B4A3: KHTMLPart::~KHTMLPart() (/development/sources/kde-head/kdelibs/khtml/khtml_part.cpp:409)
==13548==    by 0x8117F50: WHTMLPart::~WHTMLPart() (/home/andris/development/quanta/quanta-be/quanta/widgets/whtmlpart.cpp:44)
==13548==    by 0x4092D239: KParts::Part::slotWidgetDestroyed() (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092F838: KParts::Part::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x4092FBD7: KParts::ReadOnlyPart::qt_invoke(int, QUObject*) (in /opt/kde-cvs/lib/libkparts.so.2.1.0)
==13548==    by 0x405889BB: KHTMLPart::qt_invoke(int, QUObject*) (khtml_part.moc:531)
==13548==    by 0x8117A24: WHTMLPart::qt_invoke(int, QUObject*) (whtmlpart.moc:118)
==13548==    by 0x41580619: QObject::activate_signal(QConnectionList*, QUObject*) (kernel/qobject.cpp:2357)
==13548==    by 0x4158036B: QObject::activate_signal(int) (kernel/qobject.cpp:2302)
==13548==    by 0x418C1CF7: QObject::destroyed() (.moc/debug-shared-mt/moc_qobject.cpp:102)
==13548==    by 0x4157D09E: QObject::~QObject() (kernel/qobject.cpp:446)
==13548==    by 0x415B19E3: QWidget::~QWidget() (kernel/qwidget.cpp:932)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548==    Address 0x47F21DC8 is 0 bytes inside a block of size 80 free'd
==13548==    at 0x40028C2D: __builtin_delete (vg_replace_malloc.c:233)
==13548==    by 0x40028C4B: operator delete(void*) (vg_replace_malloc.c:242)
==13548==    by 0x40982730: KFind::~KFind() (/development/sources/kde-head/kdelibs/kutils/kfind.cpp:99)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x4169F5DB: QScrollView::~QScrollView() (widgets/qscrollview.cpp:634)
==13548==    by 0x4055521B: KHTMLView::~KHTMLView() (in /opt/kde-cvs/lib/libkhtml.so.4.2.0)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x80C0D13: QFrame::~QFrame() (/opt/kde3/include/kdockwidget.h:115)
==13548==    by 0x416CFC7D: QWidgetStack::~QWidgetStack() (widgets/qwidgetstack.cpp:178)
==13548==    by 0x415B1929: QWidget::~QWidget() (kernel/qwidget.cpp:922)
==13548==    by 0x40F13E6D: KDockWidget::~KDockWidget() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F173FB: KDockManager::~KDockManager() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x40F1087D: KDockMainWindow::~KDockMainWindow() (in /opt/kde-cvs/lib/libkdeui.so.4.2.0)
==13548==    by 0x808FB0D: QuantaApp::~QuantaApp() (/home/andris/development/quanta/quanta-be/quanta/quanta_init.cpp:167)
==13548==    by 0x4157DFDB: QObject::event(QEvent*) (kernel/qobject.cpp:750)
==13548==    by 0x415B7AB4: QWidget::event(QEvent*) (kernel/qwidget.cpp:4408)
==13548==    by 0x4167E4E0: QMainWindow::event(QEvent*) (widgets/qmainwindow.cpp:1669)
==13548==    by 0x4151D70A: QApplication::internalNotify(QObject*, QEvent*) (kernel/qapplication.cpp:2582)
==13548==    by 0x4151D33A: QApplication::notify(QObject*, QEvent*) (kernel/qapplication.cpp:2470)
==13548==    by 0x4109555A: KApplication::notify(QObject*, QEvent*) (in /opt/kde-cvs/lib/libkdecore.so.4.2.0)
==13548==    by 0x414B478E: QApplication::sendEvent(QObject*, QEvent*) (kernel/qapplication.h:492)
==13548==    by 0x4151E5F7: QApplication::sendPostedEvents(QObject*, int) (kernel/qapplication.cpp:3204)
==13548==    by 0x415332B1: QEventLoop::enterLoop() (kernel/qeventloop.cpp:213)
==13548==    by 0x41533101: QEventLoop::exec() (kernel/qeventloop.cpp:145)
==13548==    by 0x4151D88A: QApplication::exec() (kernel/qapplication.cpp:2705)
==13548==    by 0x80B0CA4: main (/home/andris/development/quanta/quanta-be/quanta/main.cpp:169)
==13548==    by 0x41D968AD: __libc_start_main (in /lib/libc.so.6)
==13548==    by 0x8086B80: (within /development/build/kde-head/quanta-be/quanta/quanta_be)
==13548== discard syms in /usr/lib/gconv/ISO8859-1.so due to munmap()
==13548== discard syms in /lib/libnss_files.so.2 due to munmap()
==13548==
	


> 
> Thanks.

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/1fTkTQdfac6L/08RAjSOAKCAg45Voy2fH1uGwfmH7gdNQfvIFgCgvHnW
4N7ZmoDNObiXI9vT2Km7d4Q=
=QzbO
-----END PGP SIGNATURE-----




More information about the kfm-devel mailing list