Bug 160743 - Systemsettings sometimes crashes when adding applications to autostart list
Summary: Systemsettings sometimes crashes when adding applications to autostart list
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: 4.0.83
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
: 162977 168063 168408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-12 13:42 UTC by Christophe Marin
Modified: 2009-01-25 14:18 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Marin 2008-04-12 13:42:07 UTC
Version:            (using 4.00.69 (KDE 4.0.69 >= 20080410), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-15-generic

Testcase :

Open Systemsettings / Advanced / Autostart,
Click on the Add Program button,
select Settings / Wallet Management tools,
Click OK => Crash.

I did test with some others programs, systemsettings crashes with the following ones (same backtrace) :
- Kimagemapeditor
- Kmldonkey
- Dragon Player

Trace :

Application: System Settings (systemsettings), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb6368720 (LWP 4203)]
[KCrash handler]
#6  0xb7fa7410 in __kernel_vsyscall ()
#7  0xb66c2085 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb66c3a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb66bb10e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb786475e in KPropertiesDialog (this=0xbfee3314, _tempUrl=@0xbfee3374, 
    _currentDir=@0xbfee334c, _defaultName=@0xbfee3390, parent=0x8307008)
    at /media/sda7/kde/src/KDE/kdelibs/kio/kfile/kpropertiesdialog.cpp:273
#11 0xb48b130e in Autostart::slotAddProgram (this=0x8307008)
    at /media/sda7/kde/src/KDE/kdebase/workspace/kcontrol/autostart/autostart.cpp:268
#12 0xb48b2537 in Autostart::qt_metacall (this=0x8307008, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfee350c)
    at /media/sda7/kde/build4/KDE/kdebase/workspace/kcontrol/autostart/autostart.moc:81
#13 0xb7f064c7 in QMetaObject::activate (sender=0x8308e90, 
    from_signal_index=29, to_signal_index=30, argv=0xbfee350c)
    at kernel/qobject.cpp:3007
#14 0xb7f066d0 in QMetaObject::activate (sender=0x8308e90, m=0xb715b604, 
    from_local_signal_index=2, to_local_signal_index=3, argv=0xbfee350c)
    at kernel/qobject.cpp:3100
#15 0xb7079f84 in QAbstractButton::clicked (this=0x8308e90, _t1=false)
    at .moc/debug-shared/moc_qabstractbutton.cpp:185
#16 0xb6dd3ace in QAbstractButtonPrivate::emitClicked (this=0x830d6d8)
    at widgets/qabstractbutton.cpp:543
#17 0xb6dd4c91 in QAbstractButtonPrivate::click (this=0x830d6d8)
    at widgets/qabstractbutton.cpp:536
#18 0xb6dd4f36 in QAbstractButton::mouseReleaseEvent (this=0x8308e90, 
    e=0xbfee3b78) at widgets/qabstractbutton.cpp:1112
#19 0xb6ab90a5 in QWidget::event (this=0x8308e90, event=0xbfee3b78)
    at kernel/qwidget.cpp:6920
#20 0xb6dd3a68 in QAbstractButton::event (this=0x8308e90, e=0xbfee3b78)
    at widgets/qabstractbutton.cpp:1074
#21 0xb6e83a13 in QPushButton::event (this=0x8308e90, e=0xbfee3b78)
    at widgets/qpushbutton.cpp:658
#22 0xb6a5b8fd in QApplicationPrivate::notify_helper (this=0x8072c60, 
    receiver=0x8308e90, e=0xbfee3b78) at kernel/qapplication.cpp:3766
#23 0xb6a5c3d1 in QApplication::notify (this=0xbfee43cc, receiver=0x8308e90, 
    e=0xbfee3b78) at kernel/qapplication.cpp:3495
#24 0xb7a6df73 in KApplication::notify (this=0xbfee43cc, receiver=0x8308e90, 
    event=0xbfee3b78)
    at /media/sda7/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#25 0xb7ef163a in QCoreApplication::notifyInternal (this=0xbfee43cc, 
    receiver=0x8308e90, event=0xbfee3b78) at kernel/qcoreapplication.cpp:583
#26 0xb6a67749 in QCoreApplication::sendSpontaneousEvent (receiver=0x8308e90, 
    event=0xbfee3b78)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#27 0xb6a60246 in QApplicationPrivate::sendMouseEvent (receiver=0x8308e90, 
    event=0xbfee3b78, alienWidget=0x0, nativeWidget=0x8308e90, 
    buttonDown=0xb7168d20, lastMouseReceiver=@0xb7168d24)
    at kernel/qapplication.cpp:2760
#28 0xb6ada0f3 in QETWidget::translateMouseEvent (this=0x8308e90, 
    event=0xbfee411c) at kernel/qapplication_x11.cpp:4112
#29 0xb6ad7790 in QApplication::x11ProcessEvent (this=0xbfee43cc, 
    event=0xbfee411c) at kernel/qapplication_x11.cpp:3112
#30 0xb6b03dc5 in x11EventSourceDispatch (s=0x8078648, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#31 0xb660ebf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb6611e5e in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x080778b0 in ?? ()
#34 0x00000000 in ?? ()
#0  0xb7fa7410 in __kernel_vsyscall ()
Comment 1 Christophe Marin 2008-06-01 13:05:59 UTC
*** Bug 162977 has been marked as a duplicate of this bug. ***
Comment 2 András Manţia 2008-06-01 13:13:11 UTC
Back to Simon, autostart maintainer is null@kde.org. :-(
Comment 3 Laurent Montel 2008-07-15 09:21:51 UTC
Do you have yet this crash ?
I can't have it.
Which qt version do you use ?
Comment 4 Christophe Marin 2008-07-15 11:03:02 UTC
I'm still able to reproduce it with the same testcase and the same backtrace, yes.

(kdebase rev. 832593)
Comment 5 Christophe Marin 2008-07-15 11:15:09 UTC
Just to refresh the bt :

systemsettings(17000)/kdeui (KIconLoader) KIconLoader::loadIcon: No such icon "kmldonkey"
systemsettings: /media/kde/src/KDE/kdelibs/kio/kfile/kpropertiesdialog.cpp:273: KPropertiesDialog::KPropertiesDialog(const KUrl&, const KUrl&, const QString&, QWidget*):  l'assertion « !d->m_singleUrl.isEmpty() » a échoué.

--

Application: System Settings (systemsettings), signal SIGABRT

Thread 1 (Thread 0xb6269700 (LWP 17003)):
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb66365e0 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb6637fb8 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb662f56e in __assert_fail () from /lib/i686/cmov/libc.so.6
#10 0xb7ee2e1e in KPropertiesDialog (this=0xbffa2ee4, _tempUrl=@0xbffa2f44, _currentDir=@0xbffa2f1c, _defaultName=@0xbffa2f60, parent=0x9db6a90)
    at /media/kde/src/KDE/kdelibs/kio/kfile/kpropertiesdialog.cpp:273
#11 0xb45762c6 in Autostart::slotAddProgram (this=0x9db6a90) at /media/kde/src/KDE/kdebase/workspace/kcontrol/autostart/autostart.cpp:268
#12 0xb4577553 in Autostart::qt_metacall (this=0x9db6a90, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbffa30dc) at /media/kde/build/KDE/kdebase/workspace/kcontrol/autostart/autostart.moc:81
#13 0xb755888c in QMetaObject::activate (sender=0x9dce8c8, from_signal_index=29, to_signal_index=30, argv=0xbffa30dc) at kernel/qobject.cpp:3007
#14 0xb7558aa4 in QMetaObject::activate (sender=0x9dce8c8, m=0xb70c15e4, from_local_signal_index=2, to_local_signal_index=3, argv=0xbffa30dc) at kernel/qobject.cpp:3100
#15 0xb6fe3bc8 in QAbstractButton::clicked (this=0x9dce8c8, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185
#16 0xb6d461a6 in QAbstractButtonPrivate::emitClicked (this=0x9dceda8) at widgets/qabstractbutton.cpp:543
#17 0xb6d4738e in QAbstractButtonPrivate::click (this=0x9dceda8) at widgets/qabstractbutton.cpp:536
#18 0xb6d4763a in QAbstractButton::mouseReleaseEvent (this=0x9dce8c8, e=0xbffa3864) at widgets/qabstractbutton.cpp:1112
#19 0xb6a353e4 in QWidget::event (this=0x9dce8c8, event=0xbffa3864) at kernel/qwidget.cpp:6927
#20 0xb6d46141 in QAbstractButton::event (this=0x9dce8c8, e=0xbffa3864) at widgets/qabstractbutton.cpp:1074
#21 0xb6df5289 in QPushButton::event (this=0x9dce8c8, e=0xbffa3864) at widgets/qpushbutton.cpp:658
#22 0xb69d9289 in QApplicationPrivate::notify_helper (this=0x99c95b0, receiver=0x9dce8c8, e=0xbffa3864) at kernel/qapplication.cpp:3772
#23 0xb69d9e07 in QApplication::notify (this=0xbffa4034, receiver=0x9dce8c8, e=0xbffa3864) at kernel/qapplication.cpp:3501
#24 0xb7b6b421 in KApplication::notify (this=0xbffa4034, receiver=0x9dce8c8, event=0xbffa3864) at /media/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#25 0xb754428b in QCoreApplication::notifyInternal (this=0xbffa4034, receiver=0x9dce8c8, event=0xbffa3864) at kernel/qcoreapplication.cpp:583
#26 0xb69e50c3 in QCoreApplication::sendSpontaneousEvent (receiver=0x9dce8c8, event=0xbffa3864) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#27 0xb69ddbd0 in QApplicationPrivate::sendMouseEvent (receiver=0x9dce8c8, event=0xbffa3864, alienWidget=0x0, nativeWidget=0x9dce8c8, buttonDown=0xb70cec20, lastMouseReceiver=@0xb70cec24)
    at kernel/qapplication.cpp:2766
#28 0xb6a537f2 in QETWidget::translateMouseEvent (this=0x9dce8c8, event=0xbffa3d50) at kernel/qapplication_x11.cpp:4133
#29 0xb6a54517 in QApplication::x11ProcessEvent (this=0xbffa4034, event=0xbffa3d50) at kernel/qapplication_x11.cpp:3133
#30 0xb6a7d8fe in x11EventSourceDispatch (s=0x99cc1b8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#31 0xb638c278 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb638f913 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x099cb260 in ?? ()
#34 0x00000000 in ?? ()

Comment 6 Laurent Montel 2008-07-15 11:20:38 UTC
And same question: Which is your qt version ?
(we have a patch in qt-copy which fixes this error. Do you have it ?)
Comment 7 Christophe Marin 2008-07-15 11:28:05 UTC
Last note : dragon doesn't seem to make it crash anymore.
Kmldonkey, Kimagemapeditor or Kontact do.

And yes, qt-copy is up-to-date and patched here. Which patch is it ? I can check if there was a problem while patching.
Comment 8 David Faure 2008-07-15 12:52:01 UTC
The qurl patch was 0217-qurl-isempty-regression.diff (r782275, in March). This fix is part of Qt nowadays (including qt-copy).

Maybe this assert is because of a url that -is- really empty?
Comment 9 Christophe Marin 2008-08-03 02:45:33 UTC
*** Bug 168063 has been marked as a duplicate of this bug. ***
Comment 10 Sergei Andreev 2008-08-03 14:15:14 UTC
kubuntu 8.04 kde 4.1.0 - still happens (adding kontact)
Comment 11 Christophe Marin 2008-08-05 12:17:10 UTC
*** Bug 168408 has been marked as a duplicate of this bug. ***
Comment 12 Blackpaw 2008-08-28 02:37:05 UTC
Just confirming I have this same problem trying to add Konqueror and Kontact. Happy to do any tests and traces etc if needed.

Kubuntu and KDE 4.1, weekly foxes.
Comment 13 Shannon Fang 2008-10-13 10:21:12 UTC
I also have this, with trace info below (I am using archlinux kdemod 4.1.2):

Application: System Settings (systemsettings), signal SIGABRT
(no debugging symbols found)
... ...
[Thread debugging using libthread_db enabled]
[New Thread 0xb6259b70 (LWP 2234)]
(no debugging symbols found)
... ...
[KCrash handler]
#6  0xb7fe2424 in __kernel_vsyscall ()
#7  0xb6772720 in raise () from /lib/libc.so.6
#8  0xb6774058 in abort () from /lib/libc.so.6
#9  0xb676b65e in __assert_fail () from /lib/libc.so.6
#10 0xb77da890 in KPropertiesDialog::KPropertiesDialog ()
   from /usr/lib/libkio.so.5
#11 0xb7e08163 in Autostart::slotAddProgram ()
   from /usr/lib/kde4/kcm_autostart.so
#12 0xb7e08623 in Autostart::qt_metacall ()
   from /usr/lib/kde4/kcm_autostart.so
#13 0xb7f53b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0xb7f53dd1 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb70306d2 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#16 0xb6dbd8ca in ?? () from /usr/lib/libQtGui.so.4
#17 0x09a9b460 in ?? ()
#18 0x00000000 in ?? ()
#0  0xb7fe2424 in __kernel_vsyscall ()
Comment 14 Shannon Fang 2008-10-14 16:15:24 UTC
I have similar bug with KDE 4.1.2.  when adding a program to autostart, I cannot pick application from the startmenu tree -- this will crash systemsettings. But if I type the path of an application in the edit box directly it does NOT crash.
Comment 15 Christophe Marin 2008-12-03 13:16:00 UTC
I couldn't reproduce the crash with a 4.1.81 snapshot. 

@commenters, please check and report if you still experience this crash.
Comment 16 András Manţia 2008-12-03 13:21:10 UTC
Crashes in trunk.
Application: System Settings (systemsettings), signal SIGABRT
[?1034h[Thread debugging using libthread_db enabled]
0x00007f17cf7dd230 in nanosleep () from /lib64/libc.so.6

Thread 1 (Thread 0x7f17d316a700 (LWP 18316)):
[KCrash Handler]
#5  0x00007f17cf76d5c5 in raise () from /lib64/libc.so.6
#6  0x00007f17cf76ebb3 in abort () from /lib64/libc.so.6
#7  0x00007f17cf7661e9 in __assert_fail () from /lib64/libc.so.6
#8  0x00007f17d2a9ad12 in KPropertiesDialog (this=0x7fffdb1bafb0, _tempUrl=@0x7fffdb1bb090, _currentDir=@0x7fffdb1bb040, _defaultName=@0x7fffdb1bb110, parent=<value optimized out>)
    at /data/development/sources/kde-trunk/kdelibs/kio/kfile/kpropertiesdialog.cpp:274
#9  0x00007f17c7baee58 in Autostart::slotAddProgram (this=0x93a140) at /data/development/sources/kde-trunk/kdebase/workspace/kcontrol/autostart/autostart.cpp:268
#10 0x00007f17c7baf250 in Autostart::qt_metacall (this=0x93a140, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdb1bb380)
    at /data/development/build/kde-trunk/kdebase/workspace/kcontrol/autostart/autostart.moc:81
#11 0x00007f17d1337f04 in QMetaObject::activate () from /opt/qt4/lib/libQtCore.so.4
#12 0x00007f17d095dce7 in QAbstractButton::clicked () from /opt/qt4/lib/libQtGui.so.4
#13 0x00007f17d06e0f4b in ?? () from /opt/qt4/lib/libQtGui.so.4
#14 0x00007f17d06e2ad2 in ?? () from /opt/qt4/lib/libQtGui.so.4
#15 0x00007f17d06e2d25 in QAbstractButton::mouseReleaseEvent () from /opt/qt4/lib/libQtGui.so.4
#16 0x00007f17d0429959 in QWidget::event () from /opt/qt4/lib/libQtGui.so.4
#17 0x00007f17d03d714d in QApplicationPrivate::notify_helper () from /opt/qt4/lib/libQtGui.so.4
#18 0x00007f17d03df76a in QApplication::notify () from /opt/qt4/lib/libQtGui.so.4
#19 0x00007f17d1f23d3b in KApplication::notify (this=0x7fffdb1bca50, receiver=0x8d01b0, event=0x7fffdb1bbcc0) at /data/development/sources/kde-trunk/kdelibs/kdeui/kernel/kapplication.cpp:307
#20 0x00007f17d1323b81 in QCoreApplication::notifyInternal () from /opt/qt4/lib/libQtCore.so.4
#21 0x00007f17d03deb08 in QApplicationPrivate::sendMouseEvent () from /opt/qt4/lib/libQtGui.so.4
#22 0x00007f17d0443199 in ?? () from /opt/qt4/lib/libQtGui.so.4
#23 0x00007f17d044208f in QApplication::x11ProcessEvent () from /opt/qt4/lib/libQtGui.so.4
#24 0x00007f17d04685ac in ?? () from /opt/qt4/lib/libQtGui.so.4
#25 0x00007f17ccb4f93a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f17ccb53040 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f17ccb531dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f17d134bfef in QEventDispatcherGlib::processEvents () from /opt/qt4/lib/libQtCore.so.4
#29 0x00007f17d0467d4f in ?? () from /opt/qt4/lib/libQtGui.so.4
#30 0x00007f17d1322482 in QEventLoop::processEvents () from /opt/qt4/lib/libQtCore.so.4
#31 0x00007f17d132260d in QEventLoop::exec () from /opt/qt4/lib/libQtCore.so.4
#32 0x00007f17d1324afd in QCoreApplication::exec () from /opt/qt4/lib/libQtCore.so.4
#33 0x0000000000411717 in main (argc=5, argv=0x7fffdb1bcd78) at /data/development/sources/kde-trunk/kdebase/workspace/systemsettings/main.cpp:67

Comment 17 Blackpaw 2008-12-04 00:22:52 UTC
Definitely fixed for me now, KDE 4.1.3
Comment 18 Dario Andres 2009-01-24 19:24:04 UTC
Here using:

Qt: 4.4.3 + qt-copy-patches-910240
KDE: 4.2.60 (KDE 4.2.60 (KDE 4.3 >= 20090116))
kdelibs svn rev. 915739 / kdebase svn rev. 915763
on ArchLinux i686 - Kernel 2.6.28.1

I can't reproduce this crash

Can anyone still reproduce this bug with a recent KDE (4.1.4 / 4.2beta2 / 4.2rc1 / 4.2.0 / 4.2svn / 4.3svn) ? Thanks :)
Comment 19 Blackpaw 2009-01-25 14:09:11 UTC
Tested with KDE 4.2RC2 (Kubuntu 8.10). Works fine, no problems.
Comment 20 András Manţia 2009-01-25 14:18:08 UTC
Let's close it, I tested with trunk, reported to be working with 4.2RC2, no need to keep it open.