bug-hurd
[Top][All Lists]
Advanced

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

Hurd shutdown problems


From: Brent W. Baccala
Subject: Hurd shutdown problems
Date: Fri, 5 Aug 2016 15:01:56 -1000

Aloha!

Well, I think that I've resolved my boot hangs by removing the -no-kvm-irqchip flag, now I'm trying to resolve the occasional hang when the system shuts down.  The filesystem always gets corrupted if the system can't cleanly halt, so it's a real problem.

Here's some debugging info from the last two failed shutdowns.  In both cases, the Hurd froze for at least fifteen seconds at the point where I entered the kernel debugger.  I've only included the last task in the "show all threads" display, since nothing else seemed particularly relevant.

root@qemu-hurd:~# shutdown -h now

Broadcast message from root@qemu-hurd (console) (Thu Aug  4 21:04:58 2016):
The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
logout
      

Stopped at  machine_idle+0xe:   leave
machine_idle(0,9fcbe8c0,9fcc5990,1,9fcbec80)+0xe
idle_thread_continue(9fcbdde0,81028b50,9c0e1fe4,0,9c3d4548)+0x2a
db> show all threads
    TASK        THREADS

 49 /usr/sbin/sshd(5516) (9fcbf6c0): 3 threads:
              0 (9ac656a8) .W.O.F(mach_msg_continue) 0
              1 (9f7ced08) .W.O..(mach_msg_continue) 0
              2 (9bc3ba38) ..SO..(ldt_init+0x23c)



and the second one:

Deactivating swap...swapoff: /dev/hd0s5: 177152k swap space
swapoff: /dev/hd0s5: (os/kern) failure
failed.
mount: cannot remount /: Device or resource busy
Will now halt.
Stopped at  0x810000be: leave
Kernel Page fault trap, eip 0x81029b4e
Caught Page fault (14), code = 0, pc = 81029b4e
db>
db> show all threads
    TASK        THREADS

 43 halt(20187) (9c3d53c8): 2 threads:
              0 (9a657cf8) .W.O.F(0x81051060) 0
              1 (9a657bb8) .W.O..(0x81051060) 0


I attached GDB to this last one and it showed Mach sitting in machine_idle().

Any idea what's causing this?  Any advice on how to debug it further?

    agape
    brent


reply via email to

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