[Bug 126068] [NEW] Pybluez segfaults if bluez not running

Launchpad Bug Tracker 126068 at bugs.launchpad.net
Thu Feb 17 11:27:31 UTC 2011


You have been subscribed to a public bug by Daniel Holbach (dholbach):

If bluez is not running (/etc/init.d/bluetooth stop), pybluez will
segfault if you try to use it.

This code can be used to reproduce the problem:
http://org.csail.mit.edu/pybluez/examples-0.7/rfcomm-server.txt

Here's the backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210058544 (LWP 1050)]
0xb7d1037a in sdp_device_record_register_binary () from /usr/lib/libbluetooth.so.2
(gdb) backtrace
#0  0xb7d1037a in sdp_device_record_register_binary () from /usr/lib/libbluetooth.so.2
#1  0xb7d105c3 in sdp_device_record_register () from /usr/lib/libbluetooth.so.2
#2  0xb7d106ab in sdp_record_register () from /usr/lib/libbluetooth.so.2
#3  0xb7f9a45b in bt_sdp_advertise_service () from /usr/lib/python2.5/site-packages/_bluetooth.so
#4  0x080c8b3c in PyEval_EvalFrameEx (f=0x81d0854, throwflag=0) at ../Python/ceval.c:3564
#5  0x080c9d65 in PyEval_EvalCodeEx (co=0xb7d9b578, globals=0xb7d8f824, locals=0x0, args=0x8174120, argcount=2, kws=0x8174128, kwcount=3, defs=0xb7da4968, defcount=6, 
    closure=0x0) at ../Python/ceval.c:2831
#6  0x080c8229 in PyEval_EvalFrameEx (f=0x8173fe4, throwflag=0) at ../Python/ceval.c:3660
#7  0x080c9d65 in PyEval_EvalCodeEx (co=0xb7d87458, globals=0xb7dd7acc, locals=0xb7dd7acc, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at ../Python/ceval.c:2831
#8  0x080c9dd7 in PyEval_EvalCode (co=0xb7d87458, globals=0xb7dd7acc, locals=0xb7dd7acc) at ../Python/ceval.c:494
#9  0x080e91d8 in PyRun_FileExFlags (fp=0x816a008, filename=0xbfe7e983 "rfcomm-server.py", start=257, globals=0xb7dd7acc, locals=0xb7dd7acc, closeit=1, flags=0xbfe7cde8)
    at ../Python/pythonrun.c:1271
#10 0x080e9467 in PyRun_SimpleFileExFlags (fp=0x816a008, filename=0xbfe7e983 "rfcomm-server.py", closeit=1, flags=0xbfe7cde8) at ../Python/pythonrun.c:877
#11 0x08059330 in Py_Main (argc=1, argv=0xbfe7ceb4) at ../Modules/main.c:523
#12 0x08058862 in main (argc=615989, argv=0x1c143501) at ../Modules/python.c:23

** Affects: bluez-libs (Ubuntu)
     Importance: Undecided
     Assignee: Daniel Holbach (dholbach)
         Status: Fix Released

-- 
Pybluez segfaults if bluez not running
https://bugs.launchpad.net/bugs/126068
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list