Bug 178761

Summary: screensaver module crashes systemsettings when I close systemsettings window
Product: [Applications] systemsettings Reporter: Davide Bettio <davide.bettio>
Component: kcm_screensaverAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: 8112783553, andresbajotierra, destroyer661, greggd, kaburman1, kadirh2, magneus, markforsyth, michal, nargzul, prhammond, rausch_marc, zdenek.zikan
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Proposed patch

Description Davide Bettio 2008-12-25 19:49:17 UTC
Version:            (using Devel)
Compiler:          gcc 4.1.2 gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.1)
OS:                Linux
Installed from:    Compiled sources

screensaver module crashes systemsettings when I close systemsettings window.

How to reproduce this bug:
1) Open systemsettings
2) Go to screen saver configuration
3) Close systemsettings window

Application: System Settings (systemsettings), signal SIGSEGV
[?1034hUsing host libthread_db library "/lib/libthread_db.so.1".

Thread 1 (Thread 0xb5ffe6d0 (LWP 11072)):
[KCrash Handler]
#6  0xb6a77543 in QWidgetPrivate::reparentFocusWidgets () from /usr/lib/qt4/libQtGui.so.4
#7  0xb6a85711 in QWidget::setParent () from /usr/lib/qt4/libQtGui.so.4
#8  0xb6a85f17 in QWidgetPrivate::init () from /usr/lib/qt4/libQtGui.so.4
#9  0xb6a866b3 in QWidget::QWidget () from /usr/lib/qt4/libQtGui.so.4
#10 0xa20d7e86 in KSWidget (this=0x86a2210, parent=0x8667890, wf=@0xbfe09ec0) at /home/kde-devel/kde/src/KDE/kdebase/workspace/kcontrol/screensaver/kswidget.cpp:12
#11 0xa20d295c in KSSMonitor (this=0x86a2210, parent=0x8667890) at /home/kde-devel/kde/src/KDE/kdebase/workspace/kcontrol/screensaver/kssmonitor.h:9
#12 0xa20c667f in KScreenSaver::slotPreviewExited (this=0x8625470) at /home/kde-devel/kde/src/KDE/kdebase/workspace/kcontrol/screensaver/scrnsave.cpp:600
#13 0xa20c7f62 in KScreenSaver::qt_metacall (this=0x8625470, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfe0a00c)
    at /home/kde-devel/kde/build/KDE/kdebase/workspace/kcontrol/screensaver/scrnsave.moc:96
#14 0xb73a6b14 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#15 0xb73a71a3 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#16 0xa20a2ae1 in K3Process::processExited (this=0x8663d60, _t1=0x8663d60) at /home/kde-devel/kde/build/KDE/kdelibs/kde3support/k3process.moc:99
#17 0xa20a2b2f in K3Process::processHasExited (this=0x8663d60, state=0) at /home/kde-devel/kde/src/KDE/kdelibs/kde3support/kdecore/k3process.cpp:757
#18 0xa20a2f58 in K3Process::wait (this=0x8663d60, timeout=-1) at /home/kde-devel/kde/src/KDE/kdelibs/kde3support/kdecore/k3process.cpp:515
#19 0xa20c897e in ~KScreenSaver (this=0x8625470) at /home/kde-devel/kde/src/KDE/kdebase/workspace/kcontrol/screensaver/scrnsave.cpp:349
#20 0xb7ec689c in KCModuleProxy::deleteClient (this=0x8657dc8) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:216
#21 0xb7ec71c5 in ~KCModuleProxy (this=0x8657dc8) at /home/kde-devel/kde/src/KDE/kdelibs/kutils/kcmoduleproxy.cpp:207
#22 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#23 0xb6a7ea6a in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#24 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#25 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#26 0xb6db64df in QFrame::~QFrame () from /usr/lib/qt4/libQtGui.so.4
#27 0xb6e461a3 in QAbstractScrollArea::~QAbstractScrollArea () from /usr/lib/qt4/libQtGui.so.4
#28 0xb6e4a5df in QScrollArea::~QScrollArea () from /usr/lib/qt4/libQtGui.so.4
#29 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#30 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#31 0xb6db64df in QFrame::~QFrame () from /usr/lib/qt4/libQtGui.so.4
#32 0xb6e1fa67 in QStackedWidget::~QStackedWidget () from /usr/lib/qt4/libQtGui.so.4
#33 0xb7945125 in ~KPageStackedWidget (this=0x8251018) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpageview_p.h:38
#34 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#35 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#36 0xb7943a90 in ~KPageView (this=0x820a0e0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpageview.cpp:311
#37 0xb7948c45 in ~KPageWidget (this=0x820a0e0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagewidget.cpp:78
#38 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#39 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#40 0xb6e8871a in QDialog::~QDialog () from /usr/lib/qt4/libQtGui.so.4
#41 0xb786aff4 in ~KDialog (this=0x81b4238) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/dialogs/kdialog.cpp:186
#42 0xb79425b1 in ~KPageDialog (this=0x81b4238) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/paged/kpagedialog.cpp:66
#43 0x0805591a in ~KCMultiWidget (this=0x81b4238) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/kcmultiwidget.cpp:110
#44 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#45 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#46 0xb6db64df in QFrame::~QFrame () from /usr/lib/qt4/libQtGui.so.4
#47 0xb6e1f9f5 in QStackedWidget::~QStackedWidget () from /usr/lib/qt4/libQtGui.so.4
#48 0xb73a1bff in QObjectPrivate::deleteChildren () from /usr/lib/qt4/libQtCore.so.4
#49 0xb6a7e3ea in QWidget::~QWidget () from /usr/lib/qt4/libQtGui.so.4
#50 0xb6dd1855 in QMainWindow::~QMainWindow () from /usr/lib/qt4/libQtGui.so.4
#51 0xb7a02b65 in ~KMainWindow (this=0x80d6bc8) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/widgets/kmainwindow.cpp:462
#52 0xb7a45436 in ~KXmlGuiWindow (this=0x80d6bc8, __vtt_parm=0x805edb4) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:127
#53 0x08059d69 in ~MainWindow (this=0x80d6bc8) at /home/kde-devel/kde/src/KDE/kdebase/workspace/systemsettings/mainwindow.cpp:82
#54 0xb73a07fc in qDeleteInEventHandler () from /usr/lib/qt4/libQtCore.so.4
#55 0xb73a165c in QObject::event () from /usr/lib/qt4/libQtCore.so.4
#56 0xb6a8985d in QWidget::event () from /usr/lib/qt4/libQtGui.so.4
#57 0xb6dd34b1 in QMainWindow::event () from /usr/lib/qt4/libQtGui.so.4
#58 0xb7a00d6f in KMainWindow::event (this=0x80d6bc8, ev=0x86a3240) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/widgets/kmainwindow.cpp:1081
#59 0xb7a458ec in KXmlGuiWindow::event (this=0x80d6bc8, ev=0x86a3240) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#60 0xb6a35554 in QApplicationPrivate::notify_helper () from /usr/lib/qt4/libQtGui.so.4
#61 0xb6a3a096 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#62 0xb790f1ea in KApplication::notify (this=0xbfe0aed8, receiver=0x80d6bc8, event=0x86a3240) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#63 0xb7392a2c in QCoreApplication::notifyInternal () from /usr/lib/qt4/libQtCore.so.4
#64 0xb7393c14 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/qt4/libQtCore.so.4
#65 0xb7393ea8 in QCoreApplication::sendPostedEvents () from /usr/lib/qt4/libQtCore.so.4
#66 0xb73bbe6b in ?? () from /usr/lib/qt4/libQtCore.so.4
#67 0xb62443c5 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Comment 1 Dario Andres 2008-12-25 20:56:52 UTC
What KDE version are you using ? This may be related to bug 170480
Comment 2 Davide Bettio 2008-12-26 01:54:07 UTC
An updated trunk (25 dec 2008).
Qt: 4.4.2 (gentoo)
Comment 3 Davide Bettio 2009-01-24 17:30:52 UTC
I confirm this bug on kubuntu 8.10 with KDE 4.2 RC1 (Qt 4.4.3).
The how to reproduce this bug procedure may be unclear in the previous comment:รน
1) Open systemsettings
2) Go to Desktop -> Screensaver
3) Click on a screensaver in the list
4) Close the window
Comment 4 Dario Andres 2009-01-26 20:21:51 UTC
Created attachment 30639 [details]
Proposed patch
Comment 5 Davide Bettio 2009-01-26 21:37:48 UTC
Ok, with that patch screen saver module doesn't crash.

Comment 6 Dario Andres 2009-01-28 01:45:55 UTC
Fixed by svn rev.917527
Backported to 4.2 by svn rev.917528
Comment 7 Dario Andres 2009-01-31 14:04:30 UTC
*** Bug 182461 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-02-08 00:27:07 UTC
*** Bug 183598 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2009-02-11 23:57:09 UTC
*** Bug 184024 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2009-02-15 22:38:53 UTC
*** Bug 184398 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2009-02-18 21:16:01 UTC
*** Bug 184756 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2009-02-19 23:30:51 UTC
*** Bug 184901 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-02-21 14:40:48 UTC
*** Bug 179673 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2009-02-21 14:41:43 UTC
*** Bug 170480 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2009-02-24 23:19:10 UTC
*** Bug 185427 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2009-05-22 04:03:25 UTC
*** Bug 193462 has been marked as a duplicate of this bug. ***
Comment 17 Dario Andres 2009-06-28 15:56:17 UTC
*** Bug 198157 has been marked as a duplicate of this bug. ***