Bug 325346 - dolphin crashes on opening .ods
Summary: dolphin crashes on opening .ods
Status: RESOLVED DUPLICATE of bug 321787
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.11.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-09-26 21:36 UTC by Thomas Bettler
Modified: 2014-01-03 21:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.77 KB, text/plain)
2013-11-12 19:59 UTC, Thomas Bettler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2013-09-26 21:36:48 UTC
Application: dolphin (4.11.1)
KDE Platform Version: 4.11.1 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.11.1-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
on clicking on an .ods file dolphin crashes with this error message

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0158aac780 (LWP 24097))]

Thread 2 (Thread 0x7f013d9d0700 (LWP 24099)):
#0  0x00007f0155f4cfcf in ?? () from /lib64/libc.so.6
#1  0x00007f0155f37648 in poll () from /lib64/libc.so.6
#2  0x00007f0152bf46d6 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0152bf47f4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f015765fd16 in QEventDispatcherGlib::processEvents (this=0x7f01380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f015762b9c2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f015762bc07 in QEventLoop::exec (this=0x7f013d9cfda0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f015751d0a8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f01576092d3 in QInotifyFileSystemWatcherEngine::run (this=0x9c9cd0) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x00007f015751ff92 in QThreadPrivate::start (arg=0x9c9cd0) at thread/qthread_unix.cpp:338
#10 0x00007f0157287d96 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f0155f4042d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0158aac780 (LWP 24097)):
[KCrash Handler]
#6  0x00007f0155e8aa65 in raise () from /lib64/libc.so.6
#7  0x00007f0155e8bd65 in abort () from /lib64/libc.so.6
#8  0x00007f01575153b4 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2323
#9  0x00007f015751553f in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f01576997f8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffcc7db1c8) at global/qglobal.cpp:2369
#10 0x00007f01575156e4 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2552
#11 0x00007f014d099f6d in supportedProtocols (_service=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:377
#12 0x00007f014d09d396 in resolveURLs (_service=..., _urls=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:742
#13 KRun::run (_service=..., _urls=..., window=0x0, tempFiles=false, suggestedFileName=..., asn=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:1007
#14 0x00007f014d0a165f in KRun::runUrl (u=..., _mimetype=..., window=0x0, tempFile=false, runExecutables=true, suggestedFileName=..., asn=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:190
#15 0x00007f014d0a1f1c in KRun::foundMimeType (this=0x10c0220, type=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:1509
#16 0x00007f014d096d0a in KRun::mimeTypeDetermined (this=0x10c0220, mimeType=...) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:1457
#17 0x00007f014d09fc74 in KRun::init (this=0x10c0220) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:1202
#18 0x00007f014d099b20 in KRun::slotTimeout (this=0x10c0220) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kio/kio/krun.cpp:1328
#19 0x00007f015764367f in QMetaObject::activate (sender=0xfd0be0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#20 0x00007f01576489d9 in QObject::event (this=0xfd0be0, e=<optimized out>) at kernel/qobject.cpp:1156
#21 0x00007f01566e03a2 in notify_helper (e=0x7fffcc7dcd30, receiver=0xfd0be0, this=0x86fb70) at kernel/qapplication.cpp:4562
#22 QApplicationPrivate::notify_helper (this=0x86fb70, receiver=0xfd0be0, e=0x7fffcc7dcd30) at kernel/qapplication.cpp:4534
#23 0x00007f01566e5d39 in QApplication::notify (this=0x7fffcc7dd040, receiver=0xfd0be0, e=0x7fffcc7dcd30) at kernel/qapplication.cpp:4423
#24 0x00007f0158468256 in KApplication::notify (this=0x7fffcc7dd040, receiver=0xfd0be0, event=0x7fffcc7dcd30) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kdeui/kernel/kapplication.cpp:311
#25 0x00007f015762d6dc in QCoreApplication::notifyInternal (this=0x7fffcc7dd040, receiver=0xfd0be0, event=0x7fffcc7dcd30) at kernel/qcoreapplication.cpp:946
#26 0x00007f01576622c2 in sendEvent (event=0x7fffcc7dcd30, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QTimerInfoList::activateTimers (this=0x870c50) at kernel/qeventdispatcher_unix.cpp:621
#28 0x00007f015765f3ed in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#29 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#30 0x00007f0152bf43f2 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f0152bf4738 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f0152bf47f4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f015765fcaf in QEventDispatcherGlib::processEvents (this=0x7937d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007f01567908ee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f015762b9c2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f015762bc07 in QEventLoop::exec (this=0x7fffcc7dcfd0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007f0157631427 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#38 0x00007f014439bb11 in kdemain () from /usr/lib64/libkdeinit4_dolphin.so
#39 0x0000000000408e04 in launch (argc=1, _name=0x8049d8 "dolphin", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40bdc0 "0") at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kinit/kinit.cpp:726
#40 0x000000000040a074 in handle_launcher_request (sock=7, who=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kinit/kinit.cpp:1218
#41 0x000000000040a554 in handle_requests (waitForPid=0) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kinit/kinit.cpp:1411
#42 0x0000000000405c7e in main (argc=2, argv=0x7fffcc7de1e0, envp=0x7fffcc7de4b0) at /var/tmp/portage/kde-base/kdelibs-4.11.1/work/kdelibs-4.11.1/kinit/kinit.cpp:1899

Reported using DrKonqi
Comment 1 Frank Reininghaus 2013-09-26 21:56:20 UTC
Thanks for the bug report! Looks like it crashes in the KRun class from the KIO library.

I'll post the code before the assert below.

static QStringList supportedProtocols(const KService& _service)
{
    // Check which protocols the application supports.
    // This can be a list of actual protocol names, or just KIO for KDE apps.
    QStringList supportedProtocols = _service.property("X-KDE-Protocols").toStringList();
    KRunMX1 mx1(_service);
    QString exec = _service.exec();
    if (mx1.expandMacrosShellQuote(exec) && !mx1.hasUrls) {
        Q_ASSERT(supportedProtocols.isEmpty());   // huh? If you support protocols you need %u or %U...
    }
Comment 2 Jekyll Wu 2013-09-27 02:56:03 UTC
See https://bugs.gentoo.org/show_bug.cgi?id=482036

*** This bug has been marked as a duplicate of bug 321787 ***
Comment 3 Thomas Bettler 2013-11-12 19:59:46 UTC
Created attachment 83526 [details]
New crash information added by DrKonqi

dolphin (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.5

- What I was doing when the application crashed:

open any .ods file in dolphin makes dolphin crash

-- Backtrace (Reduced):
#11 0x00007fbd6877c7a3 in supportedProtocols (_service=...) at /var/tmp/portage/kde-base/kdelibs-4.11.3/work/kdelibs-4.11.3/kio/kio/krun.cpp:377
#12 0x00007fbd687817f7 in resolveURLs (_service=..., _urls=...) at /var/tmp/portage/kde-base/kdelibs-4.11.3/work/kdelibs-4.11.3/kio/kio/krun.cpp:742
#13 KRun::run (_service=..., _urls=..., window=window@entry=0x0, tempFiles=tempFiles@entry=false, suggestedFileName=..., asn=...) at /var/tmp/portage/kde-base/kdelibs-4.11.3/work/kdelibs-4.11.3/kio/kio/krun.cpp:1007
#14 0x00007fbd68785db2 in KRun::runUrl (u=..., _mimetype=..., window=0x0, tempFile=tempFile@entry=false, runExecutables=<optimized out>, suggestedFileName=..., asn=...) at /var/tmp/portage/kde-base/kdelibs-4.11.3/work/kdelibs-4.11.3/kio/kio/krun.cpp:190
#15 0x00007fbd687864d7 in KRun::foundMimeType (this=0x12fe500, type=...) at /var/tmp/portage/kde-base/kdelibs-4.11.3/work/kdelibs-4.11.3/kio/kio/krun.cpp:1509
Comment 4 Thomas Bettler 2014-01-03 21:01:52 UTC
Solution for gentoo: compile kdelibs w/o debug use flag
https://bugs.gentoo.org/show_bug.cgi?id=482036