Bug 184516 - ksmserver crashed in HalPower::slotDeviceRemoved()
Summary: ksmserver crashed in HalPower::slotDeviceRemoved()
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: powermanagement-daemon (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 14:24 UTC by Jonathan Thomas
Modified: 2010-10-02 12:47 UTC (History)
0 users

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 Jonathan Thomas 2009-02-16 14:24:29 UTC
Version:            (using KDE 4.2.0)
Compiler:          gcc 
OS:                Linux
Installed from:    Ubuntu Packages

This bug was originally reported to us at Kubuntu: https://launchpad.net/bugs/328535

The user reported a crash that sent him back to KDM upon unplugging his wireless USB mouse. The crash gave the following backtrace:

#0  0x00000024 in ?? ()
#1  0xa9afc8e6 in HalPower::slotDeviceRemoved (this=0x8c2aef8, udi=@0x8b7cfb0)
    at /build/buildd/kdebase-workspace-4.2.0/solid/hal/halpower.cpp:627
	device = (Solid::Device *) 0x8d2b760
#2  0xa9b0192d in HalPower::qt_metacall (this=0x8c2aef8, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf81e6ac)
    at /build/buildd/kdebase-workspace-4.2.0/obj-i486-linux-gnu/solid/hal/halpower.moc:81
No locals.
#3  0xb685cc40 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#4  0xb685d9c2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#5  0xb6bd47b3 in Solid::DeviceNotifier::deviceRemoved (this=0x8d27af8, 
    _t1=@0x8b7cfb0)
    at /build/buildd/kde4libs-4.2.0/obj-i486-linux-gnu/solid/solid/devicenotifier.moc:86
	_a = {0x0, 0x8b7cfb0}
#6  0xb6bd669f in Solid::DeviceManagerPrivate::_k_deviceRemoved (
    this=0x8d27af8, udi=@0x8b7cfb0)
    at /build/buildd/kde4libs-4.2.0/solid/solid/devicemanager.cpp:185
No locals.
#7  0xb6bd6aed in Solid::DeviceManagerPrivate::qt_metacall (this=0x8d27af8, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf81e82c)
    at /build/buildd/kde4libs-4.2.0/obj-i486-linux-gnu/solid/solid/devicemanager_p.moc:73
No locals.
#8  0xb685cc40 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9  0xb685d9c2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb6be82f3 in Solid::Ifaces::DeviceManager::deviceRemoved (
    this=0x8c75580, _t1=@0x8b7cfb0)
    at /build/buildd/kde4libs-4.2.0/obj-i486-linux-gnu/solid/solid/ifaces/devicemanager.moc:86
	_a = {0x0, 0x8b7cfb0}
#11 0xb6c0cd22 in Solid::Backends::Hal::HalManager::slotDeviceRemoved (
    this=0x8c75580, udi=@0x8b7cfb0)
    at /build/buildd/kde4libs-4.2.0/solid/solid/backends/hal/halmanager.cpp:219
No locals.
#12 0xb6c0d144 in Solid::Backends::Hal::HalManager::qt_metacall (
    this=0x8c75580, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf81ea08)
    at /build/buildd/kde4libs-4.2.0/obj-i486-linux-gnu/solid/solid/backends/hal/halmanager.moc:71
No locals.
#13 0xb695026e in ?? () from /usr/lib/libQtDBus.so.4
#14 0xb6957627 in ?? () from /usr/lib/libQtDBus.so.4
#15 0xb6857951 in QObject::event () from /usr/lib/libQtCore.so.4
#16 0xb6d8484c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#17 0xb6d8c6ce in QApplication::notify () from /usr/lib/libQtGui.so.4
#18 0xb789e00d in KApplication::notify (this=0x8aa4c50, receiver=0x8c75580, 
    event=0x8d16310)
    at /build/buildd/kde4libs-4.2.0/kdeui/kernel/kapplication.cpp:307
No locals.
#19 0xb6848021 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#20 0xb6848ca5 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#21 0xb6848e9d in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#22 0xb6872a0f in ?? () from /usr/lib/libQtCore.so.4
#23 0xb56f7c38 in IA__g_main_context_dispatch (context=0x8aab118)
    at /build/buildd/glib2.0-2.19.6/glib/gmain.c:1814
No locals.
#24 0xb56fb2e3 in g_main_context_iterate (context=0x8aab118, block=1, 
    dispatch=1, self=0x8aa5128)
    at /build/buildd/glib2.0-2.19.6/glib/gmain.c:2448
	max_priority = 0
	timeout = 0
	some_ready = 1
	nfds = 26
	allocated_nfds = <value optimized out>
	fds = (GPollFD *) 0x8c2a370
	__PRETTY_FUNCTION__ = "g_main_context_iterate"
#25 0xb56fb4a1 in IA__g_main_context_iteration (context=0x8aab118, 
    may_block=1) at /build/buildd/glib2.0-2.19.6/glib/gmain.c:2511
	retval = <value optimized out>
#26 0xb6872658 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#27 0xb6e1ee95 in ?? () from /usr/lib/libQtGui.so.4
#28 0xb68466ea in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#29 0xb68468aa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#30 0xb6848f65 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#31 0xb6d846c7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#32 0xb7ec973f in kdemain (argc=1, argv=0xbf81f374)
    at /build/buildd/kdebase-workspace-4.2.0/ksmserver/main.cpp:322
	aboutData = {d = 0x8a957f0}
	options = {d = 0x8a9ed20}
	a = (class KApplication *) 0x8aa4c50
	args = (KCmdLineArgs *) 0x8a9f128
	wm = {static null = {<No data fields>}, static shared_null = {ref = {
      _q_value = 2868}, alloc = 0, size = 0, data = 0xb692d9ba, clean = 0, 
    simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 65}, 
    alloc = 0, size = 0, data = 0xb692d9ce, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0xb692d9bc, static codecForCStrings = 0x0}
	only_local = <value optimized out>
	server = (class KSMServer *) 0x8b2ec40
	kde_running = {<> = {<No data fields>}, static staticMetaObject = {
    d = {superdata = 0xb6927278, stringdata = 0xb7a21560 "KSelectionOwner", 
      data = 0xb7a215e0, extradata = 0x0}}, d = 0x8b293b8}
	config = {<KConfigBase> = {_vptr.KConfigBase = 0xb6bb72c8}, d = {
    d = 0x8b2f450}}
	realScreenCount = 1
	screenCountChanged = false
	loginMode = {static null = {<No data fields>}, static shared_null = {
    ref = {_q_value = 2868}, alloc = 0, size = 0, data = 0xb692d9ba, 
    clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
    reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 65}, 
    alloc = 0, size = 0, data = 0xb692d9ce, clean = 0, simpletext = 0, 
    righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {
      0}}, d = 0x8b45200, static codecForCStrings = 0x0}
	ret = <value optimized out>
#33 0x08048712 in main (argc=148027264, argv=0xbd)
    at /build/buildd/kdebase-workspace-4.2.0/obj-i486-linux-gnu/ksmserver/ksmserver_dummy.cpp:3
No locals.

This does look similar to bug 160221, but I do not know for sure and this bug is in slowDeviceRemoved() instead of slotDeviceAdded()
Comment 1 Jonathan Thomas 2009-06-24 14:07:18 UTC
Reported fixed downstream.