FS#18635 - System can lock on poweroff at ::Sending SIGTERM To Processes [BUSY]

Attached to Project: Arch Linux
Opened by ilya (leniviy) - Thursday, 11 March 2010, 07:58 GMT
Last edited by Ionut Biru (wonder) - Monday, 10 May 2010, 21:25 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

System can lock on poweroff at ::Sending SIGTERM To Processes [BUSY], if some ELF binary located on non-root partition is still running

Description:
I have some ELF program on non-root partition (ntfs-3g) that I autostart in Gnome. It not gets killed, when gdm stops. What program, doesn't matter because it can be reproduced by copying /bin/sleep to another partition and starting it from there.

When I poweroff, it prints to console that it can't unmount that partition. The last message is:
::Sending SIGTERM To Processes [BUSY]

and then it locks: I can switch terminals with ctrl+alt+F?, but I can't login because getty (?) already died.

I disabled gdm, and starting "sleep" from tty1, but the problem is still there.
I don't know if it's important, but the partition has NTFS.

If some program wasn't started from that partition, but has opened files on it (or cwd), unmounting fails, but poweroff not locks.

Additional info:
reproduced on VBox, see screenshot:
http://img189.imageshack.us/img189/3420/poweroff.png
last ran "pacman -Suy" on March 3

Steps to reproduce:
* add another partition to /etc/fstab (executable flag must be on)
* copy /bin/sleep to it
* login to tty1
* start "sleep". In my case the command is: nohup /media/USBHDD/3/sleep 5000&
* poweroff
This task depends upon

Closed by  Ionut Biru (wonder)
Monday, 10 May 2010, 21:25 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#10536 
Comment by ilya (leniviy) - Thursday, 11 March 2010, 08:16 GMT
Maybe it's "killall5 in /etc/init.d/sendsigs should not kill ntfs-3g and other fuse filesystems"
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/87763

Comment by kujub (kujub) - Thursday, 11 March 2010, 10:38 GMT
... then this would be a dupe of http://bugs.archlinux.org/task/10536

Loading...