kblueplugd crashed with NameError in <module>()

Bug #136307 reported by w31rd0
128
Affects Status Importance Assigned to Milestone
kdebluetooth (Ubuntu)
Fix Released
Medium
Kees Cook

Bug Description

Binary package hint: kdebluetooth

Very strange NameError in kblueplugd. My knowledge of python tells me this should not happen.

try:
        manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
except:
        print "Unable to connect to bluez."
        exit

if len(manager.ListAdapters()):
^^^^^^^^^^^^^
    NameError here

        print "# of devices at startup:", len(manager.ListAdapters())
        distutils.spawn.spawn(kbtcmd)
else:
        print "No BT device found"

ProblemType: Crash
Architecture: i386
Date: Fri Aug 31 14:08:52 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/kblueplugd
InterpreterPath: /usr/bin/python2.5
Package: kdebluetooth 1.0~beta6~r706303-0ubuntu2
PackageArchitecture: i386
ProcCmdline: /usr/bin/python /usr/bin/kblueplugd
ProcCwd: /home/zlo
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/kblueplugd']
SourcePackage: kdebluetooth
Title: kblueplugd crashed with NameError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/kblueplugd", line 31, in <module>
     if len(manager.ListAdapters()):
 NameError: name 'manager' is not defined
Uname: Linux ishabalin-nb 2.6.22-10-generic #1 SMP Wed Aug 22 08:11:52 GMT 2007 i686 GNU/Linux

Tags: apport-crash

Related branches

Revision history for this message
w31rd0 (w31rd0) wrote :
Revision history for this message
Kees Cook (kees) wrote :

This will be fixed after beta is released. (1.0~beta7-0ubuntu2)

Changed in kdebluetooth:
assignee: nobody → keescook
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Anthony Mercatante (tonio-kubuntu-x) wrote :

kdebluetooth (1.0~beta8-0ubuntu3) gutsy; urgency=low

  * Fixed kblueplugd, quits correctly when connection to dbus is
    impossible. Avoids kblueplugd to crash when bluetooth services
    are not started. Fixes LP: #136307

 -- Anthony Mercatante <tonio@kubuntu> Tue, 25 Sep 2007 22:24:16 +0200

Revision history for this message
Kees Cook (kees) wrote :

kdebluetooth (1.0~beta7-0ubuntu2) gutsy; urgency=low

  * debian/kblueplugd: fix use of "exit" (LP: #136307).
  * debian/kblueplugd: encapsulate dbus in "try" (LP: #139154).

 -- Kees Cook <email address hidden> Tue, 25 Sep 2007 10:54:21 -0700

Changed in kdebluetooth:
status: Fix Committed → 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.