bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem on shut-down


From: Justus Winter
Subject: Re: problem on shut-down
Date: Fri, 04 Apr 2014 09:56:33 +0200
User-agent: alot/0.3.4

Hi Riccardo :)

Quoting Riccardo Mottola (2014-04-04 03:37:23)
> Hi,
> 
> On 04/02/2014 02:20 PM, Justus Winter wrote:
> > Ok, I installed openbsd-inetd and telnetd on a test vm.  service
> > {start,stop} openbsd-inetd work as expected.
> it's not inetd. It actually stops here:
> 
> root@ithil:~# ps -x

Please use ps -Ax:

root@pluto ~ # ps -x|wc --lines
313
root@pluto ~ # ps -Ax|wc --lines
349

> 11434  - Sow   0:00.04 startpar -p 4 -t 20 -T 3 -M stop -P 2 -R 0
> 11451  - Sow   0:00.05 /bin/sh /etc/init.d/sendsigs stop
> 11454  - So    0:00.02 sync
> 11455 p0 Sw    0:00.57 su -
> 11457 p0 Sw    0:00.62 -su
> 11463 p0 S     0:00.03 ps -x
> 
> "sendisgs stop"

sendsigs uses killall5 which has been proven to be problematic.  In
short it does something like 'pkill -SIGSTOP . ; pkill -SIGXXX .'.
This is problematic for a multiserver OS like Hurd, because stopping
vital system servers will most likely also prevent killall5 from
completing its job (e.g. killall5 used to stop procfs and then it
tried to iterate over /proc, resulting in a deadlock).

To prevent this, I came up with
5f536bc5ae7948555af12b105a97aa887fe5da48 ff.  I trust you are running
the stock Debian/Hurd package?

> I shut down from console and had a remote connection open. At this point 
> even issuing a "sync" will hang and I need to cut the machine's power

Please be more specific when reporting this, as ideally I should be
able to reproduce your problem.

I *guess* that you meant to say: If you do not log in using telnet,
your system shuts down fine, but if you do and then shut your system
down, it hangs.  Is that correct?

Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]