Pybluez segfaults if bluez not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bluez-libs (Ubuntu) |
Fix Released
|
Undecided
|
Daniel Holbach |
Bug Description
If bluez is not running (/etc/init.
This code can be used to reproduce the problem:
http://
Here's the backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210058544 (LWP 1050)]
0xb7d1037a in sdp_device_
(gdb) backtrace
#0 0xb7d1037a in sdp_device_
#1 0xb7d105c3 in sdp_device_
#2 0xb7d106ab in sdp_record_register () from /usr/lib/
#3 0xb7f9a45b in bt_sdp_
#4 0x080c8b3c in PyEval_EvalFrameEx (f=0x81d0854, throwflag=0) at ../Python/
#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/
#6 0x080c8229 in PyEval_EvalFrameEx (f=0x8173fe4, throwflag=0) at ../Python/
#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/
#8 0x080c9dd7 in PyEval_EvalCode (co=0xb7d87458, globals=0xb7dd7acc, locals=0xb7dd7acc) at ../Python/
#9 0x080e91d8 in PyRun_FileExFlags (fp=0x816a008, filename=0xbfe7e983 "rfcomm-server.py", start=257, globals=0xb7dd7acc, locals=0xb7dd7acc, closeit=1, flags=0xbfe7cde8)
at ../Python/
#10 0x080e9467 in PyRun_SimpleFil
#11 0x08059330 in Py_Main (argc=1, argv=0xbfe7ceb4) at ../Modules/
#12 0x08058862 in main (argc=615989, argv=0x1c143501) at ../Modules/
Thank you for your bug report.
Attached debdiff should fix this issue.