kdbus crashes right away

Bug #71967 reported by finalbeta
4
Affects Status Importance Assigned to Milestone
KDE Base
Fix Released
Undecided
Unassigned
kdbus (Ubuntu)
Fix Released
Undecided
MOTU Reviewers Team
Edgy
Fix Released
Medium
ville palo

Bug Description

Binary package hint: kdbus

finalbeta@finalbeta-desktop:~$ kdbus
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
kbuildsycoca running...
KCrash: Application 'kdbus' crashing...
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
  Major opcode: 148
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found

Crash log attached

Revision history for this message
finalbeta (j-greenhouse) wrote :

kdbus crash log

Revision history for this message
ville palo (vi64pa) wrote :

Happens on my edgy too, confirmed.

Changed in kdbus:
status: Unconfirmed → Confirmed
ville palo (vi64pa)
Changed in kdbus:
assignee: nobody → vi64pa
Revision history for this message
ville palo (vi64pa) wrote :

debdiff for fixing this attached
Culprit was found with valgrind:

==30872== Invalid free() / delete / delete[]
==30872== at 0x4020CC7: operator delete(void*) (vg_replace_malloc.c:244)
==30872== by 0x4B83656: QDomNodePrivate::~QDomNodePrivate() (in /usr/lib/libqt-mt.so.3.3.6)
==30872== by 0x4B7F9C6: QDomNode::operator=(QDomNode const&) (in /usr/lib/libqt-mt.so.3.3.6)
==30872== by 0x80603E8: DBusObject::DBusObject(QListViewItem*, QDomElement const&, QDBusProxy*) (dbusobject.cpp:117)
==30872== by 0x8060185: DBusObject::DBusObject(QListViewItem*, QDomElement const&, QDBusProxy*) (dbusobject.cpp:102)
==30872== by 0x8060185: DBusObject::DBusObject(QListViewItem*, QDomElement const&, QDBusProxy*) (dbusobject.cpp:102)
==30872== by 0x8060185: DBusObject::DBusObject(QListViewItem*, QDomElement const&, QDBusProxy*) (dbusobject.cpp:102)
==30872== by 0x8060185: DBusObject::DBusObject(QListViewItem*, QDomElement const&, QDBusProxy*) (dbusobject.cpp:102)

Changed in kdbus:
assignee: vi64pa → motureviewers
Revision history for this message
ville palo (vi64pa) wrote :

Fix and bug also forwarded to upstream.

Revision history for this message
ville palo (vi64pa) wrote :

Fix committed in Upstream svn

Changed in kdebase:
status: Unknown → Rejected
Revision history for this message
ville palo (vi64pa) wrote :

Removed upstream kde bug because it wasn't right place to forward it. Anyways, this has been also forwarded to upstream author and he has committed the patch to svn.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

corrected patch

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

diff -u kdbus-0.8.6/debian/changelog kdbus-0.8.6/debian/changelog
--- kdbus-0.8.6/debian/changelog
+++ kdbus-0.8.6/debian/changelog
@@ -1,3 +1,10 @@
+kdbus (0.8.6-0ubuntu3) feisty; urgency=low
+
+ * Added kubuntu_02_fix_crashes.diff from Ville Palo fixing a crash on startup. This is in the
+ latest SVN. Closes malone #71967
+
+ -- Sarah Hobbs <email address hidden> Fri, 17 Nov 2006 23:28:54 +1100
+
 kdbus (0.8.6-0ubuntu2) edgy; urgency=low

   * Rebuild against dbus 0.90
only in patch2:
unchanged:
--- kdbus-0.8.6.orig/debian/patches/kubuntu_02_fix_crashes.diff
+++ kdbus-0.8.6/debian/patches/kubuntu_02_fix_crashes.diff
@@ -0,0 +1,31 @@
+diff -Nru /tmp/UmEr5XxZBT/kdbus-0.8.6/src/dbusobject.cpp /tmp/ZYbknD8jCH/kdbus-0.8.6/src/dbusobject.cpp
+--- kdbus-0.8.6/src/dbusobject.cpp 2006-02-18 07:23:48.000000000 +0200
++++ kdbus-0.8.6/src/dbusobject.cpp 2006-11-16 20:47:02.000000000 +0200
+@@ -88,19 +88,19 @@
+
+ // Now iterate through self, enumerating interfaces, properties, and
+ // other objects.
+- myElem = myElem.firstChild().toElement();
++ QDomElement childElement = myElem.firstChild().toElement();
+
+ try {
+ do {
+- if ( myElem.tagName() == "node" )
+- new DBusObject( this, myElem, d->proxy );
+- else if ( myElem.tagName() == "interface" )
+- new DBusInterface( this, myElem );
++ if ( childElement.tagName() == "node" )
++ new DBusObject( this, childElement, d->proxy );
++ else if ( childElement.tagName() == "interface" )
++ new DBusInterface( this, childElement );
+ else
+ kdWarning() << "Unhandled node in introspect data: "
+- << myElem.tagName() << endl;
+- myElem = myElem.nextSibling().toElement();
+- } while ( !myElem.isNull() );
++ << childElement.tagName() << endl;
++ childElement = childElement.nextSibling().toElement();
++ } while ( !childElement.isNull() );
+ }
+ catch ( std::runtime_error const & e ) {
+ m_ok = false;

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

thanks!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 17 Nov 2006 23:28:54 +1100
Source: kdbus
Binary: kdbus
Architecture: source
Version: 0.8.6-0ubuntu3
Distribution: feisty
Urgency: low
Maintainer: Anthony Mercatante <email address hidden>
Changed-By: Sarah Hobbs <email address hidden>
Description:
 kdbus - D-BUS service browser for KDE
Changes:
 kdbus (0.8.6-0ubuntu3) feisty; urgency=low
 .
   * Added kubuntu_02_fix_crashes.diff from Ville Palo fixing a crash on startup. This is in the
     latest SVN. Closes malone #71967
Files:
 8e866bbff527737383743ce067101aca 613 kde optional kdbus_0.8.6-0ubuntu3.dsc
 e1393bfc4c6e6d65f19431eea5db2b55 4807 kde optional kdbus_0.8.6-0ubuntu3.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFXa477/o1b30rzoURAhcOAJ9srVm8D0ASXHBeyyFdYA5/eazvewCfRtNo
BdAe2lBMzqYzVmNWzf5VGfc=
=JmAf
-----END PGP SIGNATURE-----

Changed in kdbus:
status: Confirmed → Fix Released
Changed in kdebase:
status: Unconfirmed → Fix Released
Revision history for this message
finalbeta (j-greenhouse) wrote :

So will this fix be made available to us? (edgy users)

Revision history for this message
ville palo (vi64pa) wrote :

This fix will not be available for edgy users without backport request or sru.

backports:
https://wiki.ubuntu.com/BackportsHowto?highlight=%28backports%29

ville palo (vi64pa)
Changed in kdbus:
assignee: nobody → vi64pa
status: Unconfirmed → Confirmed
Revision history for this message
ville palo (vi64pa) wrote :

SRU Request made: Bug #73780

Daniel T Chen (crimsun)
Changed in kdbus:
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
ville palo (vi64pa) wrote :

kdbus 0.8.6-0ubuntu2.1 is now in edgy proposed repos. Please, test and if this is fixed add a comment ("Works for me") to SRU request: Bug #73780

finalbeta (j-greenhouse)
Changed in kdbus:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.