Result of execute fuser in sys-process/psmisc-22.8: $ fuser --help Segmentation fault $ fuser -TERM -k somefile fuser: Invalid option T The first error never happens to fuser-22.7. The second error indicates fuser-22.8 doesn't recognize -NAME any more. Instead, it recognizes -SIGNAME only now. And the second error causes /etc/init.d/localmount can not umount local filesystem, such as /usr, /home, when shutting down. Why? Because `/etc/init.d/localmount stop' calls do_unmount which is defined in /lib/rc/sh/rc-mount.sh. do_unmount uses fuser -TERM or fuser -KILL to kill processes before umount. ......
With fuser-22.7, I can umount /home and /usr when shutting down. But with fuser-22.8, I can not.
i'm guessing psmisc-22.7 works fine for you ... also, you need to post `emerge --info` in your bug reports
(In reply to comment #0) > Result of execute fuser in sys-process/psmisc-22.8: > > $ fuser --help > Segmentation fault This is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551833 which is fixed in upstream trunk. http://psmisc.cvs.sourceforge.net/viewvc/psmisc/psmisc/src/fuser.c?view=log#rev1.55 That said, it's `fuser -h` you should be using passing for help.
Samuli: so you going to add the change to the portage tree ?
SpanKY: yes, psmisc-22.7 works fine for me. I said, with psmisc-22.7, I can umount /usr and /home correctly when shutting down. But with psmisc-22.8, I can not. The reason is what I said, fuser can not accept -NAME as signal name but accept -SIGNAME only. You will know if you see /lib/rc/sh/rc-mount.sh. Samuli: Yes, I should use 'fuser -h' to get help message. But to a application, if the given option is not valid, it should exit normally other than abort due to segmetation fault. Right? Fortunately, it is fixed :) But the second error (maybe not error, maybe an improvement) is important. Because do_unmount in /lib/rc/sh/rc-mount.sh should be changed due to this changing of fuser, shouldn't it?
(In reply to comment #4) > Samuli: so you going to add the change to the portage tree ? > I've committed fuser.h Rev 1.7 and fuser.c 1.59 (last changes 4 weeks ago) from upstream CVS as psmisc-22.8-r1. It fixes also missing "fuser -l" list signals command. Still don't know about the fuser -TERM -k somefile bug(?) explained here...
Created attachment 213960 [details, diff] openrc-0.5.3-fix-fuser-signals.patch (In reply to comment #6) > > Still don't know about the fuser -TERM -k somefile bug(?) explained here... > Don't know if it's a bug but the implication on openrc's rc-mount.sh script is quite bad as is prevents unmounting of any partition that contains files which are still opened by some applications when shutdown or reboot was invoked. I used the attached patch in openrc to get a reliable rc-mount.sh script again with fuser from psmisc-22.8 but I don't know if this patch works with older versions of fuser too.
By the way, "pstree --help" segfaults as well.
Masked in tree, because of several regressions. Both of the issues (pstree segfaulting and fuser -TERM -k issue) should be taken to upstream bug tracker, http://bugs.gentoo.org/show_bug.cgi?id=297423
(In reply to comment #9) > taken to upstream bug tracker, http://bugs.gentoo.org/show_bug.cgi?id=297423 http://sourceforge.net/projects/psmisc/
psmisc-22.9 was released which fixed the segfaults. Unfortunately the fix which was added for the -TERM/-KILL problem doesn't work so I filed a bug about this problem in psmisc-22.9 (see URL).
(In reply to comment #11) > psmisc-22.9 was released which fixed the segfaults. Unfortunately the fix which > was added for the -TERM/-KILL problem doesn't work so I filed a bug about this > problem in psmisc-22.9 (see URL). > Thanks. I've moved 22.9 to tree, but it's still masked.
Fixed by psmisc-22.10.