Bug 285125

Summary: KRunner master crashes with LightDM integration
Product: [Plasma] krunner Reporter: Christoph Feck <cfeck>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: agateau
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christoph Feck 2011-10-27 19:18:35 UTC
Application: krunner (0.1)
KDE Platform Version: 4.7.2 (4.7.2) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1.0-rc9-1-desktop i686
Distribution: "openSUSE 12.1 RC 1 (i586)"

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

Just starting today's krunner from master and got this crash.

The crash can be reproduced every time.

-- Backtrace:
Application: Run Command Interface (kdeinit4), signal: Aborted
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0xb54dd710 (LWP 353))]

Thread 2 (Thread 0xadc3cb70 (LWP 378)):
#0  0xb5790c96 in __GI_clock_gettime (clock_id=1, tp=0xadc3bfc0) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb6c3bc9f in do_gettime (sec=0xadc3bff8, frac=0xadc3bff0) at /local/git/Qt/qt/src/corelib/tools/qelapsedtimer_unix.cpp:123
#2  0xb6c3bd1e in qt_gettime () at /local/git/Qt/qt/src/corelib/tools/qelapsedtimer_unix.cpp:140
#3  0xb6d2b04b in QTimerInfoList::updateCurrentTime (this=0x811857c) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:343
#4  0xb6d2b3a9 in QTimerInfoList::timerWait (this=0x811857c, tm=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:450
#5  0xb6d284e5 in timerSourcePrepareHelper (src=0x8118548, timeout=0xadc3c11c) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:136
#6  0xb6d2864a in timerSourcePrepare (source=0x8118548, timeout=0xadc3c11c) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:169
#7  0xb56d744c in g_main_context_prepare (context=0x8117cb8, priority=0xadc3c178) at gmain.c:2746
#8  0xb56d8207 in g_main_context_iterate (context=0x8117cb8, block=1, dispatch=1, self=<optimized out>) at gmain.c:3053
#9  0xb56d87fa in g_main_context_iteration (context=0x8117cb8, may_block=1) at gmain.c:3136
#10 0xb6d29050 in QEventDispatcherGlib::processEvents (this=0x81d3618, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:426
#11 0xb6cefb85 in QEventLoop::processEvents (this=0xadc3c298, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#12 0xb6cefcf3 in QEventLoop::exec (this=0xadc3c298, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:204
#13 0xb6bd2a01 in QThread::exec (this=0x8115628) at /local/git/Qt/qt/src/corelib/thread/qthread.cpp:501
#14 0xb6ccdbbe in QInotifyFileSystemWatcherEngine::run (this=0x8115628) at /local/git/Qt/qt/src/corelib/io/qfilesystemwatcher_inotify.cpp:248
#15 0xb6bd51b9 in QThreadPrivate::start (arg=0x8115628) at /local/git/Qt/qt/src/corelib/thread/qthread_unix.cpp:298
#16 0xb6b46a7d in start_thread (arg=0xadc3cb70) at pthread_create.c:301
#17 0xb5c6c8fe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb54dd710 (LWP 353)):
[KCrash Handler]
#6  0xb5bc58c5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0xb5bc71d5 in __GI_abort () at abort.c:93
#8  0xaf273785 in _dbus_abort () at dbus-sysdeps.c:94
#9  0xaf26912b in _dbus_warn_check_failed (format=0xaf279664 "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 0xaf2589b8 in dbus_message_new_method_call (destination=0x83f4ad0 "org.freedesktop.DisplayManager", path=0xb6e9e3d8 "", interface=0x83f4a90 "org.freedesktop.DBus.Introspectable", method=0x83e8dd0 "Introspect") at dbus-message.c:1211
#11 0xb6ecf525 in q_dbus_message_new_method_call (bus_name=0x83f4ad0 "org.freedesktop.DisplayManager", path=0xb6e9e3d8 "", interface=0x83f4a90 "org.freedesktop.DBus.Introspectable", method=0x83e8dd0 "Introspect") at /local/git/Qt/qt/src/dbus/qdbus_symbols_p.h:264
#12 0xb6ecfcca in QDBusMessagePrivate::toDBusMessage (message=..., capabilities=..., error=0xbfe390bc) at /local/git/Qt/qt/src/dbus/qdbusmessage.cpp:134
#13 0xb6ec37d4 in QDBusConnectionPrivate::sendWithReply (this=0x8116858, message=..., sendMode=1, timeout=-1) at /local/git/Qt/qt/src/dbus/qdbusintegrator.cpp:1892
#14 0xb6ec6a20 in QDBusConnectionPrivate::findMetaObject (this=0x8116858, service=..., path=..., interface=..., error=...) at /local/git/Qt/qt/src/dbus/qdbusintegrator.cpp:2356
#15 0xb6ed6ee7 in QDBusInterfacePrivate::QDBusInterfacePrivate (this=0x83f48a0, serv=..., p=..., iface=..., con=...) at /local/git/Qt/qt/src/dbus/qdbusinterface.cpp:158
#16 0xb6ed70b2 in QDBusInterface::QDBusInterface (this=0xbfe393a4, service=..., path=..., interface=..., connection=..., parent=0x0) at /local/git/Qt/qt/src/dbus/qdbusinterface.cpp:220
#17 0xaed15e79 in LightDMDBus::LightDMDBus (this=0xbfe393a4) at /local/git/KDE/base/kde-workspace/libs/kworkspace/kdisplaymanager.cpp:95
#18 0xaed10ef4 in KDisplayManager::KDisplayManager (this=0x83e8958) at /local/git/KDE/base/kde-workspace/libs/kworkspace/kdisplaymanager.cpp:125
#19 0xa8198a19 in SessionRunner::SessionRunner (this=0x83e8948, parent=0x8113fd8, args=...) at /local/git/KDE/base/kde-workspace/plasma/generic/runners/sessions/sessionrunner.cpp:32
#20 0xa819aefd in KPluginFactory::createInstance<SessionRunner, QObject> (parentWidget=0x0, parent=0x8113fd8, args=...) at /local/kde4/include/kpluginfactory.h:477
#21 0xb7153e69 in KPluginFactory::create (this=0x83f2c08, iface=0xb3540a80 "Plasma::AbstractRunner", parentWidget=0x0, parent=0x8113fd8, args=..., keyword=...) at /local/git/KDE/libs/kdelibs/kdecore/util/kpluginfactory.cpp:203
#22 0xb3444a0f in KPluginFactory::create<Plasma::AbstractRunner> (this=0x83f2c08, parentWidget=0x0, parent=0x8113fd8, keyword=..., args=...) at /local/git/KDE/libs/kdelibs/kdecore/util/kpluginfactory.h:531
#23 0xb34442aa in KService::createInstance<Plasma::AbstractRunner> (this=0x82f91c0, parentWidget=0x0, parent=0x8113fd8, args=..., error=0xbfe39660) at /local/git/KDE/libs/kdelibs/kdecore/services/kservice.h:551
#24 0xb34439d8 in KService::createInstance<Plasma::AbstractRunner> (this=0x82f91c0, parent=0x8113fd8, args=..., error=0xbfe39660) at /local/git/KDE/libs/kdelibs/kdecore/services/kservice.h:528
#25 0xb3442a42 in Plasma::RunnerManagerPrivate::loadInstalledRunner (this=0x8114a90, service=...) at /local/git/KDE/libs/kdelibs/plasma/runnermanager.cpp:253
#26 0xb3442532 in Plasma::RunnerManagerPrivate::loadRunners (this=0x8114a90) at /local/git/KDE/libs/kdelibs/plasma/runnermanager.cpp:218
#27 0xb343fe8a in Plasma::RunnerManager::reloadConfiguration (this=0x8113fd8) at /local/git/KDE/libs/kdelibs/plasma/runnermanager.cpp:441
#28 0xaedc0746 in KRunnerApp::initialize (this=0x810c838) at /local/git/KDE/base/kde-workspace/krunner/krunnerapp.cpp:188
#29 0xaedbf9d0 in KRunnerApp::KRunnerApp (this=0x810c838) at /local/git/KDE/base/kde-workspace/krunner/krunnerapp.cpp:78
#30 0xaedbf93f in KRunnerApp::self () at /local/git/KDE/base/kde-workspace/krunner/krunnerapp.cpp:65
#31 0xaedc2512 in kdemain (argc=1, argv=0x80b45f0) at /local/git/KDE/base/kde-workspace/krunner/main.cpp:56
#32 0x0804ddfe in launch (argc=1, _name=0x80adcec "/local/kde4/bin/krunner", args=0x80add04 "", cwd=0x0, envc=0, envs=0x80add08 "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x8053619 "0") at /local/git/KDE/libs/kdelibs/kinit/kinit.cpp:734
#33 0x0804ee63 in handle_launcher_request (sock=8, who=0x80538b4 "launcher") at /local/git/KDE/libs/kdelibs/kinit/kinit.cpp:1226
#34 0x0804f5df in handle_requests (waitForPid=0) at /local/git/KDE/libs/kdelibs/kinit/kinit.cpp:1419
#35 0x08050ed4 in main (argc=4, argv=0xbfe3a194, envp=0xbfe3a1a8) at /local/git/KDE/libs/kdelibs/kinit/kinit.cpp:1907

Possible duplicates by query: bug 240689.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-10-28 17:37:55 UTC
Aurelien, did you just push the same change to 4.7, or is it a different version of the patch? I do not run 4.7 branch, so I cannot test, but 450ff4903aceae6a8b275a9fb4c2696a87c76123 causes this crash with master. With the 4.7.3 release so near we should be cautious to not break branch.
Comment 2 Christoph Feck 2011-11-01 11:03:10 UTC
Aurelien, any update? Bug 283086 comment #6 looks related.
Comment 3 Aaron J. Seigo 2011-11-01 14:22:37 UTC
this should hopefully be addressed in both the 4.7 and master branches of kde-workspace. i can't trigger it here (probably because i'm using a release build of libdbus, so asserts are likely compiled out?), so it's only a best-guess on my part that when the XDG_SEAT_PATH environment variable wasn't set, which causes an empty string to be passed as the path to QDBusInterface, that libdbus barfs on it. after my commit, it now checks to see if the env var has been set and only if so tries to detect lightdm.

if anyone can confirm, that'd be great :)
Comment 4 Christoph Feck 2011-11-03 20:19:07 UTC
Thanks Aaron, looks fixed here. If I get a crash again, I will complain ;)