bluetoothd does not die on SIGTERM

Bug #434852 reported by Michael Biebl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: bluez

bluetoothd is started via udev here, but it does not want to die on SIGTERM:
root@pluto:~ # ps aux | grep bluetoothd
root 2946 0.1 0.2 3704 1712 ? S<s 21:51 0:00 /usr/sbin/bluetoothd --udev
root@pluto:~ # kill -15 2946
root@pluto:~ # ps aux | grep bluetoothd
root 2946 0.0 0.2 3704 1712 ? S<s 21:51 0:00 /usr/sbin/bluetoothd --udev

It only wants to die on SIGKILL.

This has the negative side effect, that the process is not stopped by /etc/rc[56].d/K74bluetooth stop
and /etc/rc[56].d/sendsigs will try for 10 times to stop the process using SIGTERM, delaying the shutdown process for 10 secs!

ProblemType: Bug
Architecture: i386
Date: Tue Sep 22 21:48:57 2009
DistroRelease: Ubuntu 9.10
Package: bluez 4.51-0ubuntu1
ProcEnviron:
 LANGUAGE=de_DE.UTF-8
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SourcePackage: bluez
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
Michael Biebl (mbiebl) wrote :
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

You're ever-so-slightly ahead of me in filing the bug.

I'd isolated bluetoothd, and that it's blocked SIGTERM out of its mask despite installing a signal handler for it:

SigPnd: 0000000000000000
ShdPnd: 0000000000014000
SigBlk: fffffffe7ffbdeff
SigIgn: 0000000000001000
SigCgt: 0000000180004802

Question is whether this is a bluetoothd bug or a repeat of that udevd bug

Changed in bluez (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

It's that udevd bug, it looks like we never fixed it!

affects: bluez (Ubuntu) → udev (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package udev - 147~-4

---------------
udev (147~-4) karmic; urgency=low

  * Update to GIT HEAD (still pre 147 release):
    - fix signal mask harder. LP: #407428, #434852.

 -- Scott James Remnant <email address hidden> Tue, 22 Sep 2009 22:45:39 +0100

Changed in udev (Ubuntu):
status: Triaged → 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.