Bug 170350 - Adding file association to an empty list crashes Konqueror
Summary: Adding file association to an empty list crashes Konqueror
Status: RESOLVED DUPLICATE of bug 171395
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.1.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 01:03 UTC by Jonathan Thomas
Modified: 2008-09-27 20:04 UTC (History)
1 user (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 Jonathan Thomas 2008-09-04 01:03:51 UTC
Version:           4.1.1 (KDE 4.1.1) (using 4.1.1 (KDE 4.1.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-5-generic

To reproduce:
-Run Konqueror and click on:
  <settings> <configure konqueror> <file associations>
   on the right side click on <application> <pdf>
-Remove all filetype associations from pdf.
-Add a new one. (Just choose Okular or whatever)
-Crash

It only seems to happen with mimetypes that have completely empty association lists. This crash is not reproducible with mimetypes that have a greyish "None" entry.

Here's the backtrace:

Application: Konqueror (konqueror), signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb60978d0 (LWP 5278)]
[KCrash handler]
#6  0xb2223cac in ?? () from /usr/lib/kde4/kcm_filetypes.so
#7  0xb22255f8 in ?? () from /usr/lib/kde4/kcm_filetypes.so
#8  0xb74bc7e0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9  0xb74bcbe0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb6f9d5e1 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#11 0xb6cf1569 in ?? () from /usr/lib/libQtGui.so.4
#12 0xb6cf3164 in ?? () from /usr/lib/libQtGui.so.4
#13 0xb6cf33e6 in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
#14 0xb6a088b2 in QWidget::event () from /usr/lib/libQtGui.so.4
#15 0xb6cf140e in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#16 0xb6d97720 in QPushButton::event () from /usr/lib/libQtGui.so.4
#17 0xb69b0bfc in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#18 0xb69b93f1 in QApplication::notify () from /usr/lib/libQtGui.so.4
#19 0xb79770cd in KApplication::notify (this=0xbf9898a4, receiver=0x9ec2d20, 
    event=0xbf988e38)
    at /build/buildd/kde4libs-4.1.1+really4.1.1/kdeui/kernel/kapplication.cpp:311
#20 0xb74a7bbf in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#21 0xb69b86ae in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#22 0xb6a22546 in ?? () from /usr/lib/libQtGui.so.4
#23 0xb6a218dd in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#24 0xb6a4b44a in ?? () from /usr/lib/libQtGui.so.4
#25 0xb64286b1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb642bd53 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb642bf11 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb74d2208 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#29 0xb6a4ab45 in ?? () from /usr/lib/libQtGui.so.4
#30 0xb74a628a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#31 0xb74a644a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#32 0xb74a8b05 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#33 0xb69b0a77 in QApplication::exec () from /usr/lib/libQtGui.so.4
#34 0xb803969d in kdemain () from /usr/lib/libkdeinit4_konqueror.so
#35 0x080485b2 in _start ()
#0  0xb8070424 in __kernel_vsyscall ()
Comment 1 Frank Reininghaus 2008-09-04 13:13:02 UTC
Thanks for the bug report. I can confirm this on 4.1.1 and trunk rev. 856793. More verbose backtrace:

Application: Konqueror (konqueror), signal SIGSEGV

Thread 1 (Thread 0xb5d89720 (LWP 10408)):
[KCrash Handler]
#6  0xb1f6a890 in QListWidgetItem::text (this=0x0) at /home/kde-devel/qt-copy/include/QtGui/qlistwidget.h:92
#7  0xb1f6d3e2 in KServiceListWidget::addService (this=0x8743e20) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/settings/filetypes/kservicelistwidget.cpp:263
#8  0xb1f6d617 in KServiceListWidget::qt_metacall (this=0x8743e20, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfd1e89c)
    at /home/kde-devel/kde/build/KDE/kdebase/apps/konqueror/settings/filetypes/kservicelistwidget.moc:79
#9  0xb75165e7 in QMetaObject::activate (sender=0x87475c0, from_signal_index=29, to_signal_index=30, argv=0xbfd1e89c) at kernel/qobject.cpp:3016
#10 0xb75168d8 in QMetaObject::activate (sender=0x87475c0, m=0xb7181664, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfd1e89c) at kernel/qobject.cpp:3106
#11 0xb6f2d5dc in QAbstractButton::clicked (this=0x87475c0, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185
#12 0xb6c281bb in QAbstractButtonPrivate::emitClicked (this=0x8747ec8) at widgets/qabstractbutton.cpp:544
#13 0xb6c2958f in QAbstractButtonPrivate::click (this=0x8747ec8) at widgets/qabstractbutton.cpp:537
#14 0xb6c29874 in QAbstractButton::mouseReleaseEvent (this=0x87475c0, e=0xbfd1ef68) at widgets/qabstractbutton.cpp:1116
#15 0xb68b3c69 in QWidget::event (this=0x87475c0, event=0xbfd1ef68) at kernel/qwidget.cpp:7021
#16 0xb6c28154 in QAbstractButton::event (this=0x87475c0, e=0xbfd1ef68) at widgets/qabstractbutton.cpp:1078
#17 0xb6cef25f in QPushButton::event (this=0x87475c0, e=0xbfd1ef68) at widgets/qpushbutton.cpp:658
#18 0xb684b3a5 in QApplicationPrivate::notify_helper (this=0x805d2a8, receiver=0x87475c0, e=0xbfd1ef68) at kernel/qapplication.cpp:3800
#19 0xb684bea4 in QApplication::notify (this=0xbfd1f8e0, receiver=0x87475c0, e=0xbfd1ef68) at kernel/qapplication.cpp:3527
#20 0xb7a6ba9f in KApplication::notify (this=0xbfd1f8e0, receiver=0x87475c0, event=0xbfd1ef68) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#21 0xb74fe735 in QCoreApplication::notifyInternal (this=0xbfd1f8e0, receiver=0x87475c0, event=0xbfd1ef68) at kernel/qcoreapplication.cpp:591
#22 0xb6858dc3 in QCoreApplication::sendSpontaneousEvent (receiver=0x87475c0, event=0xbfd1ef68) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 0xb68504f0 in QApplicationPrivate::sendMouseEvent (receiver=0x87475c0, event=0xbfd1ef68, alienWidget=0x87475c0, nativeWidget=0x84128b8, buttonDown=0xb718ede0, lastMouseReceiver=@0xb718ede4)
    at kernel/qapplication.cpp:2792
#24 0xb68daf17 in QETWidget::translateMouseEvent (this=0x84128b8, event=0xbfd1f53c) at kernel/qapplication_x11.cpp:4048
#25 0xb68d83fc in QApplication::x11ProcessEvent (this=0xbfd1f8e0, event=0xbfd1f53c) at kernel/qapplication_x11.cpp:3044
#26 0xb6908331 in x11EventSourceDispatch (s=0x8060320, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#27 0xb602fdd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb6033193 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb603374e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb7533d18 in QEventDispatcherGlib::processEvents (this=0x805d440, flags=@0xbfd1f6d4) at kernel/qeventdispatcher_glib.cpp:325
#31 0xb6907a00 in QGuiEventDispatcherGlib::processEvents (this=0x805d440, flags=@0xbfd1f704) at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb74fafb2 in QEventLoop::processEvents (this=0xbfd1f78c, flags=@0xbfd1f744) at kernel/qeventloop.cpp:149
#33 0xb74fb1f1 in QEventLoop::exec (this=0xbfd1f78c, flags=@0xbfd1f794) at kernel/qeventloop.cpp:200
#34 0xb74ff06c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:849
#35 0xb684b0be in QApplication::exec () at kernel/qapplication.cpp:3330
#36 0xb7f5358a in kdemain (argc=1, argv=0xbfd1fbf4) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:227
#37 0x080486f6 in main (argc=) at /home/kde-devel/kde/build/KDE/kdebase/apps/konqueror/src/konqueror_dummy.cpp:3

Comment 2 Jonathan Thomas 2008-09-27 20:04:59 UTC

*** This bug has been marked as a duplicate of bug 171395 ***