Bug 170695 - Dolphin crash if you put "media/" in address bar.
Summary: Dolphin crash if you put "media/" in address bar.
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 173441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-08 19:13 UTC by Rafael
Modified: 2008-10-24 21:17 UTC (History)
6 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 Rafael 2008-09-08 19:13:58 UTC
Version:           1.1 (using 4.1.1 (KDE 4.1.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-1-686

If you type "media/" at the address bar and press enter, Dolphin crash.
Comment 1 Rafael 2008-09-08 19:14:43 UTC
Aplicación: Dolphin (dolphin), señal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb5e8c700 (LWP 3071)]
[KCrash handler]
#6  0xb7f6d424 in __kernel_vsyscall ()
#7  0xb6716860 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6718228 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb698565d in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfd85cc0 "ASSERT: \"result.second\" in file /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirmodel.cpp, line 308") at global/qglobal.cpp:2061
#10 0xb6985726 in qFatal (msg=0xb6acd118 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2263
#11 0xb69857b5 in qt_assert (assertion=0xb7e1d59a "result.second", 
    file=0xb7e1d348 "/tmp/buildd/kde4libs-4.1.1/kio/kio/kdirmodel.cpp", 
    line=308) at global/qglobal.cpp:1831
#12 0xb7cc67d6 in KDirModelPrivate::_k_slotNewItems (this=0x8bd42b8, 
    items=@0x8bd4da8) at /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirmodel.cpp:308
#13 0xb7cc8675 in KDirModel::qt_metacall (this=0x8bbe820, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfd87f4c)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/kdirmodel.moc:76
#14 0xb6a91830 in QMetaObject::activate (sender=0x8be0f38, 
    from_signal_index=13, to_signal_index=13, argv=0xbfd87f4c)
    at kernel/qobject.cpp:3016
#15 0xb6a925b2 in QMetaObject::activate (sender=0x8be0f38, m=0x80a86b0, 
    local_signal_index=9, argv=0xbfd87f4c) at kernel/qobject.cpp:3086
#16 0xb7caebb3 in KDirLister::newItems (this=0x8be0f38, _t1=@0x8bd4da8)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/kdirlister.moc:253
#17 0xb7cafc6a in KDirLister::Private::emitItems (this=0x8bc2b18)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirlister.cpp:2202
#18 0xb7cb17ca in KDirListerCache::slotEntries (this=0x8bff170, 
    job=0x8d556a8, entries=@0xbfd884c4)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/kdirlister.cpp:977
#19 0xb7cc08f3 in KDirListerCache::qt_metacall (this=0x8bff170, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfd88158)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/kdirlister_p.moc:97
#20 0xb6a91830 in QMetaObject::activate (sender=0x8d556a8, 
    from_signal_index=40, to_signal_index=40, argv=0xbfd88158)
    at kernel/qobject.cpp:3016
#21 0xb6a925b2 in QMetaObject::activate (sender=0x8d556a8, m=0xb7e3b300, 
    local_signal_index=0, argv=0xbfd88158) at kernel/qobject.cpp:3086
#22 0xb7c85f99 in KIO::ListJob::entries (this=0x8d556a8, _t1=0x8d556a8, 
    _t2=@0xbfd884c4)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/jobclasses.moc:763
#23 0xb7c92e3b in KIO::ListJobPrivate::slotListEntries (this=0x8fe3880, 
    list=@0xbfd884c4) at /tmp/buildd/kde4libs-4.1.1/kio/kio/job.cpp:2318
#24 0xb7c93020 in KIO::ListJob::qt_metacall (this=0x8d556a8, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfd8838c)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/jobclasses.moc:750
#25 0xb6a91830 in QMetaObject::activate (sender=0x8ebb848, 
    from_signal_index=10, to_signal_index=10, argv=0xbfd8838c)
    at kernel/qobject.cpp:3016
#26 0xb6a925b2 in QMetaObject::activate (sender=0x8ebb848, m=0xb7e3dce4, 
    local_signal_index=6, argv=0xbfd8838c) at kernel/qobject.cpp:3086
#27 0xb7d522f3 in KIO::SlaveInterface::listEntries (this=0x8ebb848, 
    _t1=@0xbfd884c4)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/slaveinterface.moc:175
#28 0xb7d55f59 in KIO::SlaveInterface::dispatch (this=0x8ebb848, _cmd=106, 
    rawdata=@0xbfd88514)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/slaveinterface.cpp:195
#29 0xb7d52b27 in KIO::SlaveInterface::dispatch (this=0x8ebb848)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/slaveinterface.cpp:90
#30 0xb7d42b5d in KIO::Slave::gotInput (this=0x8ebb848)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/slave.cpp:319
#31 0xb7d455a3 in KIO::Slave::qt_metacall (this=0x8ebb848, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfd88628)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/slave.moc:75
#32 0xb6a91830 in QMetaObject::activate (sender=0x8ee6eb8, 
    from_signal_index=4, to_signal_index=4, argv=0x0)
    at kernel/qobject.cpp:3016
#33 0xb6a925b2 in QMetaObject::activate (sender=0x8ee6eb8, m=0xb7e3a940, 
    local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3086
#34 0xb7c546d7 in KIO::Connection::readyRead (this=0x8ee6eb8)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/connection.moc:84
#35 0xb7c56799 in KIO::ConnectionPrivate::dequeue (this=0x8ee6e68)
    at /tmp/buildd/kde4libs-4.1.1/kio/kio/connection.cpp:82
#36 0xb7c56926 in KIO::Connection::qt_metacall (this=0x8ee6eb8, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x8fed030)
    at /tmp/buildd/kde4libs-4.1.1/obj-i486-linux-gnu/kio/connection.moc:72
#37 0xb6a8a9ab in QMetaCallEvent::placeMetaCall (this=0x9015ef8, 
    object=0x8ee6eb8) at kernel/qobject.cpp:535
#38 0xb6a8c541 in QObject::event (this=0x8ee6eb8, e=0x9015ef8)
    at kernel/qobject.cpp:1140
#39 0xb6de7aac in QApplicationPrivate::notify_helper (this=0x8a89728, 
    receiver=0x8ee6eb8, e=0x9015ef8) at kernel/qapplication.cpp:3800
#40 0xb6def91e in QApplication::notify (this=0xbfd88de4, receiver=0x8ee6eb8, 
    e=0x9015ef8) at kernel/qapplication.cpp:3392
#41 0xb79cb97d in KApplication::notify (this=0xbfd88de4, receiver=0x8ee6eb8, 
    event=0x9015ef8)
    at /tmp/buildd/kde4libs-4.1.1/kdeui/kernel/kapplication.cpp:311
#42 0xb6a7cd0f in QCoreApplication::notifyInternal (this=0xbfd88de4, 
    receiver=0x8ee6eb8, event=0x9015ef8) at kernel/qcoreapplication.cpp:591
#43 0xb6a7d995 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x8a796b0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#44 0xb6a7db8d in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1095
#45 0xb6aa75ff in postEventSourceDispatch (s=0x8a8a810)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#46 0xb61e97e1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#47 0xb61ece83 in ?? () from /usr/lib/libglib-2.0.so.0
#48 0x08a8a790 in ?? ()
#49 0x00000000 in ?? ()
#0  0xb7f6d424 in __kernel_vsyscall ()
Comment 2 Frank Reininghaus 2008-09-15 22:19:10 UTC
Thanks for the bug report. I can confirm this in 4.1.1 and trunk rev. 861285. Quite a few bugs look like duplicates to me, I've just added a list in https://bugs.kde.org/show_bug.cgi?id=171117#c2
Comment 3 Oliver Putz 2008-09-16 13:58:00 UTC
Hm, even though typing media/ in dolphin does not directly crash for me, I can make dolphin crash by going up one level. This crash then indeed produces a similar backtrace to the posted one (and similar to the one in bug #160057). So I guess this bug indeed is another duplicate of bug #160057.
Comment 4 Oliver Putz 2008-09-16 14:41:41 UTC
Clarification: [...] I can make dolphin crash by typing in media and then go up one level [...]
Comment 5 Frank Reininghaus 2008-09-16 19:09:44 UTC
Oliver, you're right, typing just 'media' in the location bar and going up is another way to get this crash. I'm marking this as a duplicate of 160057 because the backtraces I get look identical.

*** This bug has been marked as a duplicate of bug 160057 ***
Comment 6 Frank Reininghaus 2008-09-26 22:14:24 UTC
I'm reopening this because it's actually not a duplicate. This needs to be fixed separately for each kioslave (see David's comment in the other bug report). Sorry about the confusion!
Comment 7 David Faure 2008-09-29 21:25:40 UTC
This one is actually a dolphin bug. Doesn't happen in konqueror.
What happens is after clearing and typing "media" -- or "boot" or "tmp", anything that matches a toplevel directory -- in dolphin's location bar, one gets an error message (this is an invalid URL), but the current URL for dolphin is still "tmp".
When going "up", we end up doing upUrl on "tmp":
KUrlNavigator::goUp: currentUrl= KUrl("tmp") upUrl= KUrl("file://tmp/../")
OK, so this is a KUrl::upUrl bug, it makes an absolute url out of a relative url. I'll look into it. But at the same time, I think it's also a dolphin bug. It shouldn't go up from the last erroneously typed URL, it should go up from the current visible url (the one listed in the view), like konqueror does.
Comment 8 David Faure 2008-09-29 22:02:37 UTC
KUrl fixed. But I'm leaving this open for Peter. I think dolphin should ignore urls that cannot be listed [because relative or non-existent, not invalid as in !isValid()] earlier [right now the sidebar and context widgets get blanked out too], and should use the view URL for Reload and Up.
Comment 9 Peter Penz 2008-09-30 08:55:29 UTC
Thanks David for the analyzes, I've increased the prio for this issue and will fix it in Dolphin.
Comment 10 James 2008-10-04 14:35:09 UTC
I have a link which opens dolphin in the /media/$device when I use this I get a crash. This crashlog is something i managed to capture

Application: Dolphin (dolphin), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5fc0970 (LWP 8601)]
[KCrash handler]
#6  0xb7fba410 in __kernel_vsyscall ()
#7  0xb6800085 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6801a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7606367 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbfa180bc "ASSERT: \"(*it).isValid()\" in file /build/buildd/kde4libs-4.1.2/kio/kio/previewjob.cpp, line 565") at global/qglobal.cpp:2061
#10 0xb7606458 in qFatal (msg=0xb774d498 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2263
#11 0xb7606505 in qt_assert (assertion=0xb7f01146 "(*it).isValid()", 
    file=0xb7f01188 "/build/buildd/kde4libs-4.1.2/kio/kio/previewjob.cpp", 
    line=565) at global/qglobal.cpp:1831
#12 0xb7e3b321 in KIO::filePreview (items=@0xbfa1a1ac, width=160, height=128, 
    iconSize=0, iconAlpha=0, scale=true, save=false, enabledPlugins=0x0)
    at /build/buildd/kde4libs-4.1.2/kio/kio/previewjob.cpp:565
#13 0x0807e124 in ?? ()
#14 0xb6ccf8b0 in QWidget::event (this=0x83c8e00, event=0xbfa1a600)
    at kernel/qwidget.cpp:7216
#15 0xb6c77f9c in QApplicationPrivate::notify_helper (this=0x80b8f18, 
    receiver=0x83c8e00, e=0xbfa1a600) at kernel/qapplication.cpp:3800
#16 0xb6c7cce8 in QApplication::notify (this=0xbfa1bb3c, receiver=0x83c8e00, 
    e=0xbfa1a600) at kernel/qapplication.cpp:3765
#17 0xb7b8d483 in KApplication::notify (this=0xbfa1bb3c, receiver=0x83c8e00, 
    event=0xbfa1a600)
    at /build/buildd/kde4libs-4.1.2/kdeui/kernel/kapplication.cpp:311
#18 0xb76fa0b9 in QCoreApplication::notifyInternal (this=0xbfa1bb3c, 
    receiver=0x83c8e00, event=0xbfa1a600) at kernel/qcoreapplication.cpp:591
#19 0xb6ccdc3b in QWidgetPrivate::show_helper (this=0x83d8508)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 0xb6ccd921 in QWidgetPrivate::show_recursive (this=0x83d8508)
    at kernel/qwidget.cpp:6103
#21 0xb6ccda8b in QWidgetPrivate::showChildren (this=0x83ca488, 
    spontaneous=false) at kernel/qwidget.cpp:6522
#22 0xb6ccdb51 in QWidgetPrivate::show_helper (this=0x83ca488)
    at kernel/qwidget.cpp:6179
#23 0xb6cce1b8 in QWidget::setVisible (this=0x83ca388, visible=true)
    at kernel/qwidget.cpp:6442
#24 0xb6ffceb9 in QDockAreaLayoutInfo::restoreState (this=0x81486b0, 
    stream=@0xbfa1a8f8, widgets=@0xbfa1a878, testing=false)
    at widgets/qdockarealayout.cpp:1939
#25 0xb6ffd3aa in QDockAreaLayout::restoreState (this=0x8148634, 
    stream=@0xbfa1a8f8, _dockwidgets=@0xbfa1a97c, 
    testing=<value optimized out>) at widgets/qdockarealayout.cpp:2223
#26 0xb702b4dd in QMainWindowLayoutState::restoreState (this=0x8148588, 
    _stream=@0xbfa1aa24, oldState=@0x8148780)
    at widgets/qmainwindowlayout.cpp:687
#27 0xb702bd09 in QMainWindowLayout::restoreState (this=0x8148578, 
    stream=@0xbfa1aa24) at widgets/qmainwindowlayout.cpp:2133
#28 0xb7026d04 in QMainWindow::restoreState (this=0x80b8c20, 
    state=@0xbfa1aadc, version=0) at widgets/qmainwindow.cpp:1080
#29 0xb7c45822 in KMainWindow::applyMainWindowSettings (this=0x80b8c20, 
    cg=@0x80b8c7c, force=false)
    at /build/buildd/kde4libs-4.1.2/kdeui/widgets/kmainwindow.cpp:756
#30 0xb7c81012 in KXmlGuiWindow::applyMainWindowSettings (this=0x80b8c20, 
    config=@0x80b8c7c, force=<value optimized out>)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:346
#31 0xb7c42e75 in KMainWindow::setAutoSaveSettings (this=0x80b8c20, 
    group=@0xbfa1abb0, saveWindowSize=true)
    at /build/buildd/kde4libs-4.1.2/kdeui/widgets/kmainwindow.cpp:957
#32 0xb7c42eec in KMainWindow::setAutoSaveSettings (this=0x80b8c20, 
    groupName=@0xbfa1abf4, saveWindowSize=<value optimized out>)
    at /build/buildd/kde4libs-4.1.2/kdeui/widgets/kmainwindow.cpp:945
#33 0xb7c810eb in KXmlGuiWindow::finalizeGUI (this=0x80b8c20)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:325
#34 0xb7c7f396 in KXMLGUIBuilder::finalizeGUI (this=0x80b8c38)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguibuilder.cpp:409
#35 0xb7c80fc7 in KXmlGuiWindow::finalizeGUI (this=0x80b8c20, 
    client=0x80b8c68)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:355
#36 0xb7c8aef7 in KXMLGUIFactory::addClient (this=0x836d0b0, client=0x80b8c68)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguifactory.cpp:269
#37 0xb7c81839 in KXmlGuiWindow::createGUI (this=0x80b8c20, 
    xmlfile=@0xbfa1ae70)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:249
#38 0xb7c81a09 in KXmlGuiWindow::setupGUI (this=0x80b8c20, 
    defaultSize=@0xbfa1ae00, options=@0xbfa1ae08, xmlfile=@0xbfa1ae70)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:207
#39 0xb7c81b11 in KXmlGuiWindow::setupGUI (this=0x80b8c20, 
    options=@0xbfa1ae74, xmlfile=@0xbfa1ae70)
    at /build/buildd/kde4libs-4.1.2/kdeui/xmlgui/kxmlguiwindow.cpp:182
#40 0x0806c6c9 in _start ()
#0  0xb7fba410 in __kernel_vsyscall ()
Comment 11 Peter Penz 2008-10-07 22:34:20 UTC
Fixed in SVN commit 868984 for 4.2. Although the fix seems to be straight forward, I want to wait with the backport to 4.1.x, as I'm not 100 % sure whether there might be side effects.

@David: do you know when the BUG-tag of the SVN-commits will work again and automatically set the issue to fixed?
Comment 12 Frank Reininghaus 2008-10-24 21:17:42 UTC
*** Bug 173441 has been marked as a duplicate of this bug. ***