Bug 252279 - Dolphin crashes, seems to be related to mime types
Summary: Dolphin crashes, seems to be related to mime types
Status: RESOLVED DUPLICATE of bug 265188
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 261882 267649 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-24 20:41 UTC by TJ
Modified: 2011-03-04 22:25 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TJ 2010-09-24 20:41:04 UTC
Application: dolphin (1.5.9)
KDE Platform Version: 4.5.69 (4.6 >= 20100920) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-gentoo-r7 x86_64
Distribution: "Gentoo Base System release 2.0.1"

-- Information about the crash:
- What I was doing when the application crashed:

Click on Home folder or open USB flash drive via Device Notifier. It seems certain mime types are not handled correctly

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f03a32cf760 (LWP 21301))]

Thread 2 (Thread 0x7f038f93a710 (LWP 21302)):
#0  0x00007f03a09c19e3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f03a1f7277e in qt_safe_select (nfds=14, fdread=0x1899150, fdwrite=0x18993e8, fdexcept=0x1899680, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#2  0x00007f03a1f76140 in QEventDispatcherUNIXPrivate::doSelect (this=0x1898f90, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#3  0x00007f03a1f76ecb in QEventDispatcherUNIX::processEvents (this=0x182a430, flags=) at kernel/qeventdispatcher_unix.cpp:920
#4  0x00007f03a1f4a642 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f03a1f4aa14 in QEventLoop::exec (this=0x7f038f939de0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f03a1e5ad1b in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f03a1f2b118 in QInotifyFileSystemWatcherEngine::run (this=0x183eef0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f03a1e5d565 in QThreadPrivate::start (arg=0x183eef0) at thread/qthread_unix.cpp:248
#9  0x00007f03a1bd08e4 in start_thread () from /lib/libpthread.so.0
#10 0x00007f03a09c827d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f03a32cf760 (LWP 21301)):
[KCrash Handler]
#6  KMimeType::d_func (this=0x0, mimeTypeName=...) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdecore/services/kmimetype.h:48
#7  KMimeType::is (this=0x0, mimeTypeName=...) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdecore/services/kmimetype.cpp:523
#8  0x00007f039c041135 in checkDesktopFile (item=<value optimized out>, _determineMimeType=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitem.cpp:832
#9  0x00007f039c041233 in KFileItem::overlays (this=0x1d0ebc0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitem.cpp:847
#10 0x00007f039c0357a1 in KDirModel::data (this=<value optimized out>, index=<value optimized out>, role=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kdirmodel.cpp:686
#11 0x00007f0395fe1f25 in DolphinModel::data (this=0x19ac660, index=..., role=30649748) at /var/tmp/paludis/kde-base-dolphin-9999/work/dolphin-9999/dolphin/src/views/dolphinmodel.cpp:116
#12 0x00007f03a16a4c01 in QSortFilterProxyModel::data (this=<value optimized out>, index=..., role=1) at itemviews/qsortfilterproxymodel.cpp:1678
#13 0x00007f039c054c17 in QModelIndex::data (this=<value optimized out>, option=..., index=...) at /usr/include/qt4/QtCore/qabstractitemmodel.h:398
#14 KFileItemDelegate::Private::decoration (this=<value optimized out>, option=..., index=...) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitemdelegate.cpp:1095
#15 0x00007f039c0550cf in KFileItemDelegate::Private::initStyleOption (this=0x19e12b0, option=0x7fffd16d91a0, index=<value optimized out>)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitemdelegate.cpp:834
#16 0x00007f039c056855 in KFileItemDelegate::paint (this=0x19e1130, painter=<value optimized out>, option=..., index=...)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kio/kio/kfileitemdelegate.cpp:1225
#17 0x00007f0395fda1c8 in DolphinFileItemDelegate::paint (this=0x19e1130, painter=0x7fffd16d9df0, option=<value optimized out>, index=...)
    at /var/tmp/paludis/kde-base-dolphin-9999/work/dolphin-9999/dolphin/src/views/dolphinfileitemdelegate.cpp:78
#18 0x00007f03a1666779 in QTreeView::drawRow (this=0x19cc8e0, painter=<value optimized out>, option=<value optimized out>, index=<value optimized out>) at itemviews/qtreeview.cpp:1670
#19 0x00007f03a16603b6 in QTreeView::drawTree (this=0x19cc8e0, painter=<value optimized out>, region=<value optimized out>) at itemviews/qtreeview.cpp:1433
#20 0x00007f03a1660e93 in QTreeView::paintEvent (this=0x19cc8e0, event=0x7fffd16dab00) at itemviews/qtreeview.cpp:1266
#21 0x00007f0395fd597b in DolphinDetailsView::paintEvent (this=0x0, event=0x0) at /var/tmp/paludis/kde-base-dolphin-9999/work/dolphin-9999/dolphin/src/views/dolphindetailsview.cpp:406
#22 0x00007f03a116fe11 in QWidget::event (this=0x19cc8e0, event=0x7fffd16dab00) at kernel/qwidget.cpp:8190
#23 0x00007f03a14f4bd6 in QFrame::event (this=0x19cc8e0, e=0x7fffd16dab00) at widgets/qframe.cpp:557
#24 0x00007f03a1624a8b in QAbstractItemView::viewportEvent (this=0x19cc8e0, event=0x7fffd16dab00) at itemviews/qabstractitemview.cpp:1615
#25 0x00007f03a165f702 in QTreeView::viewportEvent (this=0x19cc8e0, event=0x7fffd16dab00) at itemviews/qtreeview.cpp:1248
#26 0x00007f03a1f4b126 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x19cc680, event=0x7fffd16dab00) at kernel/qcoreapplication.cpp:841
#27 0x00007f03a111a06c in QApplicationPrivate::notify_helper (this=0x1620f10, receiver=0x19cc680, e=0x7fffd16dab00) at kernel/qapplication.cpp:4302
#28 0x00007f03a11206db in QApplication::notify (this=0x7fffd16de190, receiver=0x19cc680, e=0x7fffd16dab00) at kernel/qapplication.cpp:4189
#29 0x00007f03a2ccc186 in KApplication::notify (this=0x7fffd16de190, receiver=0x19cc680, event=0x7fffd16dab00)
    at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:310
#30 0x00007f03a1f4bceb in QCoreApplication::notifyInternal (this=0x7fffd16de190, receiver=0x19cc680, event=0x7fffd16dab00) at kernel/qcoreapplication.cpp:726
#31 0x00007f03a117839d in QCoreApplication::sendSpontaneousEvent (this=0x19cce30, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#32 QWidgetPrivate::drawWidget (this=0x19cce30, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x182c980)
    at kernel/qwidget.cpp:5363
#33 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#34 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#35 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=12, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#36 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=13, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#37 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=14, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#38 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=15, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#39 0x00007f03a1178e54 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=17, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5463
#40 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x19cc9b0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#41 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=4, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#42 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x19c9cc0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#43 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=5, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#44 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x19abcf0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#45 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#46 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x19ab890, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#47 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#48 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x18159b0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#49 0x00007f03a1179023 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=10, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x182c980) at kernel/qwidget.cpp:5476
#50 0x00007f03a11780fb in QWidgetPrivate::drawWidget (this=0x1747b50, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x182c980) at kernel/qwidget.cpp:5412
#51 0x00007f03a132f99c in QWidgetBackingStore::sync (this=0x182c980) at painting/qbackingstore.cpp:1300
#52 0x00007f03a1169850 in QWidgetPrivate::syncBackingStore (this=0x1747b50) at kernel/qwidget.cpp:1688
#53 0x00007f03a1170512 in QWidget::event (this=0x160b140, event=0x1c7df00) at kernel/qwidget.cpp:8337
#54 0x00007f03a151041b in QMainWindow::event (this=0x160b140, event=0x1c7df00) at widgets/qmainwindow.cpp:1414
#55 0x00007f03a2de1ab3 in KXmlGuiWindow::event (this=0x0, ev=0x0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdeui/xmlgui/kxmlguiwindow.cpp:132
#56 0x00007f03a111a09c in QApplicationPrivate::notify_helper (this=0x1620f10, receiver=0x160b140, e=0x1c7df00) at kernel/qapplication.cpp:4306
#57 0x00007f03a11206db in QApplication::notify (this=0x7fffd16de190, receiver=0x160b140, e=0x1c7df00) at kernel/qapplication.cpp:4189
#58 0x00007f03a2ccc186 in KApplication::notify (this=0x7fffd16de190, receiver=0x160b140, event=0x1c7df00) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:310
#59 0x00007f03a1f4bceb in QCoreApplication::notifyInternal (this=0x7fffd16de190, receiver=0x160b140, event=0x1c7df00) at kernel/qcoreapplication.cpp:726
#60 0x00007f03a1f4dec3 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1543e20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#61 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1543e20) at kernel/qcoreapplication.cpp:1367
#62 0x00007f03a1f76e60 in QEventDispatcherUNIX::processEvents (this=0x1614180, flags=) at kernel/qeventdispatcher_unix.cpp:892
#63 0x00007f03a11c8d79 in QEventDispatcherX11::processEvents (this=<value optimized out>, flags=) at kernel/qeventdispatcher_x11.cpp:152
#64 0x00007f03a1f4a642 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#65 0x00007f03a1f4aa14 in QEventLoop::exec (this=0x7fffd16de0d0, flags=) at kernel/qeventloop.cpp:201
#66 0x00007f03a1f4e1ab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#67 0x00007f039698e011 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/paludis/kde-base-dolphin-9999/work/dolphin-9999/dolphin/src/main.cpp:98
#68 0x0000000000407cc5 in launch (argc=6, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=-781325936, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x159f8af "studio;1285353456;265108;3630_TIME103877504") at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:714
#69 0x0000000000408940 in handle_launcher_request (sock=8, who=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1206
#70 0x0000000000408e80 in handle_requests (waitForPid=6342368) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1399
#71 0x0000000000409a91 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1885

Reported using DrKonqi
Comment 1 Carl G. 2010-12-06 08:41:29 UTC
I can also reproduce this bug on KDE 4.5.85 in Fedora. It happen in a particular directory only.
Comment 2 Nicolas L. 2011-01-03 10:48:15 UTC
*** Bug 261882 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas L. 2011-01-03 10:52:50 UTC
From bug 261882 :

Trying to open ~/.mozilla/firefox. Also got a crash trying to open
~/.thunderbird. Both directories are accessible with konsole. Dolphin is
otherwise working.
Comment 4 Carl G. 2011-01-07 22:32:29 UTC
Okay, maybe what i'm going to say probably doesn't mean much but...

I tried to isolate some files and when i create a .ini file, in any directory, i can reproduce this bug BUT i can't in a newly created user profile, so maybe it's related to the user settings?
Comment 5 Daimonion 2011-01-29 13:40:30 UTC
This indeed is related to ini files. Wine puts ini mime file type into $HOME/.local/share/mime, which for some reason causes crashes to dolphin and konqueror. After I've removed everything related to the ini mime xml (and also run "update-mime-database $HOME/.local/share/mime") there are no more crashes.
Comment 6 David Faure 2011-02-14 11:38:13 UTC
Yep, I confirm that this came from a wine-provided file in ~/.local/share/mime.
Bug investigated and fixed on Feb 2, for kdelibs-4.6.1, see bug 265188.

*** This bug has been marked as a duplicate of bug 265188 ***
Comment 7 Peter Penz 2011-03-04 22:25:29 UTC
*** Bug 267649 has been marked as a duplicate of this bug. ***