Bug 221751 - Crash in kget runner [QVariant, QtDbus*, KGetRunner::parseUrls, KGetRunner::match]
Summary: Crash in kget runner [QVariant, QtDbus*, KGetRunner::parseUrls, KGetRunner::m...
Status: RESOLVED WORKSFORME
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
: 222234 227667 230038 233906 247073 247547 259713 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-08 03:30 UTC by Florian Loitsch
Modified: 2013-01-28 18:07 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (13.18 KB, text/plain)
2010-05-14 07:07 UTC, Manuel Stol
Details
New crash information added by DrKonqi (23.98 KB, text/plain)
2010-11-04 22:37 UTC, Elias Probst
Details
New crash information added by DrKonqi (12.90 KB, text/plain)
2011-03-20 21:05 UTC, Vaso
Details
New crash information added by DrKonqi (22.01 KB, text/plain)
2013-01-28 18:07 UTC, Joachim Mairböck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Loitsch 2010-01-08 03:30:37 UTC
Application: krunner (0.1)
KDE Platform Version: 4.3.90 (KDE 4.3.90 (KDE 4.4 RC1))
Qt Version: 4.6.0
Operating System: Linux 2.6.32-ARCHi x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
krunner crashed while using  "gg" web shortcut in Krunner.

 -- Backtrace:
Application: Run Command Interface (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f76cc88e760 (LWP 10442))]

Thread 6 (Thread 0x7f76a9639710 (LWP 10474)):
#0  0x00007f76caafc07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f76cad814ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f76c95705ec in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007f76cad804e5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f76caaf781a in start_thread () from /lib/libpthread.so.0
#5  0x00007f76c98dec7d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f76a5a76710 (LWP 11405)):
#0  0x00007f76caafc07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f76cad814ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f76c1641ff6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2288060, th=0x2907d30)
    at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007f76c164460b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2278800, th=0x2907d30) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007f76c1642b5f in ThreadWeaver::ThreadRunHelper::run (this=0x7f76a5a75e30, parent=0x2288060, th=0x2907d30) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#5  0x00007f76c16430c8 in ThreadWeaver::Thread::run (this=0x2907d30) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#6  0x00007f76cad804e5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f76caaf781a in start_thread () from /lib/libpthread.so.0
#8  0x00007f76c98dec7d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f76a5275710 (LWP 11406)):
#0  0x00007f76caafc07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f76cad814ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f76c1641ff6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2288060, th=0x28ecf40)
    at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007f76c164460b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2278800, th=0x28ecf40) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007f76c1642b5f in ThreadWeaver::ThreadRunHelper::run (this=0x7f76a5274e30, parent=0x2288060, th=0x28ecf40) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#5  0x00007f76c16430c8 in ThreadWeaver::Thread::run (this=0x28ecf40) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#6  0x00007f76cad804e5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f76caaf781a in start_thread () from /lib/libpthread.so.0
#8  0x00007f76c98dec7d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f76a4a74710 (LWP 11407)):
[KCrash Handler]
#5  0x00007f76cae90f66 in QVariant::QVariant(QVariant const&) () from /usr/lib/libQtCore.so.4
#6  0x00007f76c92d0b37 in QDBusPendingReplyData::argumentAt(int) const () from /usr/lib/libQtDBus.so.4
#7  0x00007f76a8824c47 in argumentAt<0> (this=<value optimized out>, text=<value optimized out>) at /usr/include/QtDBus/qdbuspendingreply.h:174
#8  QDBusPendingReply<bool, void, void, void, void, void, void, void>::value (this=<value optimized out>, text=<value optimized out>) at /usr/include/QtDBus/qdbuspendingreply.h:179
#9  KGetRunner::parseUrls (this=<value optimized out>, text=<value optimized out>) at /home/build/build/x86_64/kdenetwork/src/kdenetwork/kget/plasma/runner/kgetrunner.cpp:119
#10 0x00007f76a8825d18 in KGetRunner::match (this=0x23e6e50, context=...) at /home/build/build/x86_64/kdenetwork/src/kdenetwork/kget/plasma/runner/kgetrunner.cpp:44
#11 0x00007f76c315bc9a in Plasma::AbstractRunner::performMatch (this=0x23e6e50, localContext=...) at /home/build/build/x86_64/kdelibs/src/kdelibs/plasma/abstractrunner.cpp:117
#12 0x00007f76c164383d in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f76a4a73da0, th=0x290b720, job=0x2932530) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Job.cpp:106
#13 0x00007f76c1643b3e in ThreadWeaver::Job::execute (this=0x2932530, th=0x290b720) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Job.cpp:135
#14 0x00007f76c1642b2f in ThreadWeaver::ThreadRunHelper::run (this=0x7f76a4a73e30, parent=0x2288060, th=0x290b720) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:95
#15 0x00007f76c16430c8 in ThreadWeaver::Thread::run (this=0x290b720) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#16 0x00007f76cad804e5 in ?? () from /usr/lib/libQtCore.so.4
#17 0x00007f76caaf781a in start_thread () from /lib/libpthread.so.0
#18 0x00007f76c98dec7d in clone () from /lib/libc.so.6
#19 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f76a4273710 (LWP 11408)):
#0  0x00007f76caafc07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f76cad814ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f76c1641ff6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2288060, th=0x29092c0)
    at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007f76c164460b in ThreadWeaver::WorkingHardState::applyForWork (this=0x2278800, th=0x29092c0) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007f76c1642b5f in ThreadWeaver::ThreadRunHelper::run (this=0x7f76a4272e30, parent=0x2288060, th=0x29092c0) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#5  0x00007f76c16430c8 in ThreadWeaver::Thread::run (this=0x29092c0) at /home/build/build/x86_64/kdelibs/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#6  0x00007f76cad804e5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f76caaf781a in start_thread () from /lib/libpthread.so.0
#8  0x00007f76c98dec7d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f76cc88e760 (LWP 10442)):
#0  0x00007f76c98d6483 in poll () from /lib/libc.so.6
#1  0x00007f76c834980a in _xcb_conn_wait () from /usr/lib/libxcb.so.1
#2  0x00007f76c8349da7 in _xcb_out_send () from /usr/lib/libxcb.so.1
#3  0x00007f76c834a055 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007f76cbce1d5a in _XSend () from /usr/lib/libX11.so.6
#5  0x00007f76cbce1e99 in _XReply () from /usr/lib/libX11.so.6
#6  0x00007f76cbcd5aa3 in XSync () from /usr/lib/libX11.so.6
#7  0x00007f76ca09a855 in ?? () from /usr/lib/libQtGui.so.4
#8  0x00007f76ca0a5381 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#9  0x00007f76ca0cf8fa in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007f76c60f026e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007f76c60f3c28 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#12 0x00007f76c60f3d50 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#13 0x00007f76cae9c8c3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#14 0x00007f76ca0cf4fe in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007f76cae71ca2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#16 0x00007f76cae7207c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#17 0x00007f76cae75dbb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#18 0x00007f76bd89b7e4 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/build/build/x86_64/kdebase-workspace/src/kdebase-workspace/krunner/main.cpp:65
#19 0x000000000040707e in launch (argc=1, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40a27f "0") at /home/build/build/x86_64/kdelibs/src/kdelibs/kinit/kinit.cpp:706
#20 0x0000000000407c4d in handle_launcher_request (sock=7, who=<value optimized out>) at /home/build/build/x86_64/kdelibs/src/kdelibs/kinit/kinit.cpp:1198
#21 0x00000000004081f0 in handle_requests (waitForPid=0) at /home/build/build/x86_64/kdelibs/src/kdelibs/kinit/kinit.cpp:1391
#22 0x00000000004088f2 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at /home/build/build/x86_64/kdelibs/src/kdelibs/kinit/kinit.cpp:1830

Reported using DrKonqi
Comment 1 Lukas Appelhans 2010-01-08 14:01:41 UTC
Hey!
Just checked line 119 in kget runner...
QDBusConnection::sessionBus().interface()->isServiceRegistered(KGET_DBUS_SERVICE)

Anyone has a clue why that could crash? Maybe Qt bug?

Lukas
Comment 2 Jacopo De Simoi 2010-01-09 11:44:41 UTC
(In reply to comment #1)
> Hey!
> Just checked line 119 in kget runner...
> QDBusConnection::sessionBus().interface()->isServiceRegistered(KGET_DBUS_SERVICE)
> 
> Anyone has a clue why that could crash? Maybe Qt bug?

QDBusConnection::sessionBus() seems not to be thread-safe (see bug 208921)
Comment 3 Dario Andres 2010-02-19 23:08:14 UTC
*** Bug 227667 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-03-20 14:37:33 UTC
Bug 222234 is related to this too...
Comment 5 Dario Andres 2010-03-20 14:39:03 UTC
From bug 230038:
-- Information about the crash:
KRunner tends to crash often, it happens while quickly typing in it.
It is allso slow to react, for example, typing gg: and some text behind it
krunner often lags by 10 seconds before executing commands.
The exact command that i was typing when it crashed was name of the window "dol
close"
dol stands for dolphin and as i started typing close krunner crashed

From bug 228658:
-- Information about the crash:
Krunner is running in task oriented view.
When trying to type this command "kdesu kate /boot/grub/menu.lst" krunner would
stop after "kdesu kate /boot/grub/menu". After klicking with the mouse into the
address bar it worked. When I tried to type in the command a second time after
I had started the application it worked fine.
Same with the command which caused the crash. Crash on the first time I've
typed the command, it worked on the second time.
Comment 6 Dario Andres 2010-03-20 14:39:06 UTC
*** Bug 230038 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2010-03-20 14:40:36 UTC
(note: bug 228658 (mentioned in the last comment) is a different issue)
Comment 8 Dario Andres 2010-04-10 14:23:13 UTC
*** Bug 233906 has been marked as a duplicate of this bug. ***
Comment 9 Lukas Appelhans 2010-05-12 13:42:08 UTC
*** Bug 222234 has been marked as a duplicate of this bug. ***
Comment 10 Manuel Stol 2010-05-14 07:07:37 UTC
Created attachment 43562 [details]
New crash information added by DrKonqi

KRunner crashed while using the Calculator plugin and after pressing [BackSpase]. ('=336*2+150+18' -> '=336*2+15')
Comment 11 Pino Toscano 2010-08-12 20:27:28 UTC
*** Bug 247073 has been marked as a duplicate of this bug. ***
Comment 12 Pino Toscano 2010-08-12 20:27:54 UTC
*** Bug 247547 has been marked as a duplicate of this bug. ***
Comment 13 Matthias Fuchs 2010-08-13 17:19:59 UTC
SVN commit 1163240 by mfuchs:

Moves getting of sessionBus to init() since that runs in the mainthread (thx aseigo). Should work around a DBus issue that caused a crash.
Includes some whitespace changes.
BUG:221751

 M  +8 -3      kgetrunner.cpp  
 M  +8 -3      kgetrunner.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1163240
Comment 14 Matthias Fuchs 2010-08-13 17:21:25 UTC
SVN commit 1163242 by mfuchs:

Fowardport r1163240
Moves getting of sessionBus to init() since that runs in the mainthread (thx aseigo). Should work around a DBus issue that caused a crash.
Includes some whitespace changes.
CCBUG:221751

 M  +8 -3      kgetrunner.cpp  
 M  +8 -3      kgetrunner.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1163242
Comment 15 Matthias Fuchs 2010-08-13 17:23:52 UTC
I can't reproduce this issue, most likely because of the very new DBus version I have (including some backported patches).

In any case the commit above should fix the issue for you -- thx goes to aseigo for pointing me into the right direction.
If you still experience this issue in KDE 4.5.1 or later please reopen.
Comment 16 Elias Probst 2010-11-04 22:37:18 UTC
Created attachment 53144 [details]
New crash information added by DrKonqi

krunner (0.1) on KDE Platform 4.5.3 (KDE 4.5.3) using Qt 4.6.3

It seems the bug is still there in 4.5.3.
Using dbus 1.2.24
Could reproduce a crash twice in a row when entering a mathematical calculation like:
=48*1986*8476

See backtrace:

-- Backtrace (Reduced):
#8  0x00007f8436c484e5 in _dbus_abort () at /var/tmp/portage/sys-apps/dbus-1.2.24-r2/work/dbus-1.2.24/dbus/dbus-sysdeps.c:88
#9  0x00007f8436c4502a in _dbus_warn_check_failed (
    format=0x7f8436c50f40 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n")
    at /var/tmp/portage/sys-apps/dbus-1.2.24-r2/work/dbus-1.2.24/dbus/dbus-internals.c:283
#10 0x00007f8439acffe8 in q_dbus_pending_call_block (this=<value optimized out>, pcall=0x7f841021b0d0) at qdbus_symbols_p.h:298
#11 QDBusConnectionPrivate::waitForFinished (this=<value optimized out>, pcall=0x7f841021b0d0) at qdbusintegrator.cpp:1702
#12 0x00007f8439b0d81a in QDBusPendingCallPrivate::waitForFinished (this=0x7f841021b0d0) at qdbuspendingcall.cpp:240
Comment 17 Matthias Fuchs 2010-11-05 00:09:14 UTC
I don't see a reference to KGet in that bt. Does it also happen if you deactivate the KGet runner?
Comment 18 Elias Probst 2010-11-05 08:59:26 UTC
(In reply to comment #17)
> I don't see a reference to KGet in that bt. Does it also happen if you
> deactivate the KGet runner?

Have you taken a look at the attached BT or only the reduced one (that's what DrKonqi does now).
In the attached BT are some references to KGet, I just don't know, whether they're actual worthy or just meaningless in the backtrace path.
Comment 19 Dario Andres 2010-12-13 13:38:22 UTC
[Comment from a bug triager]
Backtrace on comment 16 seems to be a bit different to the backtraces on this report. It is likely to be related to the dbus threading issues fixed since libdbus 1.4.0

Bug 259713 is from KDE SC 4.4.4:
-- Information about the crash:
I observed that the MPlayer plug-in embedded in Ark preview is unable to play a
song so I told it to copy the URL of the song.  The URL was sort of
/tmp/kde-krzysztof/arkSrkmv7//kahvi297a_speaK-I_love_it_here.ogg (notice the
double slash); there is no such file.  I pasted it to the run dialogue and
tried to get to the enclosing folder.  The run dialogue auto-prepended smb:
(because of the double slash?) and eventually crashed.
Comment 20 Dario Andres 2010-12-13 13:41:13 UTC
*** Bug 259713 has been marked as a duplicate of this bug. ***
Comment 21 Vaso 2011-03-20 21:05:41 UTC
Created attachment 58198 [details]
New crash information added by DrKonqi

krunner (0.1) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.2

- What I was doing when the application crashed:

I just typed "=16*3.55/8". After "8" krunner crashed.

-- Backtrace (Reduced):
#8  0xb41ba2e5 in _dbus_abort () at dbus-sysdeps.c:94
#9  0xb41afde6 in _dbus_warn_check_failed (format=0xb41c0140 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at dbus-internals.c:289
#10 0xb41a5eee in dbus_pending_call_block (pending=0x0) at dbus-pending-call.c:704
#11 0xb6317800 in q_dbus_pending_call_block (this=0x8084da8, pcall=0xa6317348) at qdbus_symbols_p.h:305
#12 QDBusConnectionPrivate::waitForFinished (this=0x8084da8, pcall=0xa6317348) at qdbusintegrator.cpp:1739
Comment 22 Matthias Fuchs 2011-03-22 00:43:09 UTC
What dbus version are you using?
Comment 23 Vaso 2011-03-22 08:14:22 UTC
(In reply to comment #22)
> What dbus version are you using?
1.4.6
Comment 24 Matthias Fuchs 2011-10-15 23:47:21 UTC
I am not able to reproduce this with trunk. Please reopen, if you still have this issue with 4.7. or newer. If you reopen also state the dbus, qt and kde version you have.
Comment 25 Joachim Mairböck 2013-01-28 18:07:43 UTC
Created attachment 76774 [details]
New crash information added by DrKonqi

krunner (0.1) on KDE Platform 4.9.98 using Qt 4.8.4

- What I was doing when the application crashed:
I just got this KRunner crash with KDE 4.9.98 (4.10 RC3), Qt 4.8.4, DBus 1.5.12. It happened after just typing an 'a' in the textbox.

-- Backtrace (Reduced):
#10 0xb5735715 in _dbus_abort () at dbus-sysdeps.c:94
#11 0xb572a901 in _dbus_warn_check_failed (format=0xb573b748 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at dbus-internals.c:290
#12 0xb572052e in dbus_pending_call_block (pending=0x0) at dbus-pending-call.c:742
#13 0xb5aab5e3 in q_dbus_pending_call_block (pending=<optimized out>) at qdbus_symbols_p.h:309
#14 QDBusConnectionPrivate::waitForFinished (this=0x9fbe5b0, pcall=0xa1ba400) at qdbusintegrator.cpp:1781