[issue713] shutdown freeze and forced unmounts

Peter Avalos pavalos at theshell.com
Wed Jul 11 16:21:47 PDT 2007


On Wed, Jul 11, 2007 at 01:54:03PM +0900, YONETANI Tomokazu wrote:
> On Tue, Jul 10, 2007 at 07:18:26PM -0400, Peter Avalos wrote:
> > Indeed, only kernel threads and init, sh, and ps, but a reboot still freezes
> > after "Uptime: xxxx"
> 
> ... which means it's stuck at somewhere at the bottom of boot()
> in kern_shutdown.c:
>         /*
>          * Ok, now do things that assume all filesystem activity has
>          * been completed.
>          */
>         EVENTHANDLER_INVOKE(shutdown_post_sync, howto);
>         crit_enter();
>         if ((howto & (RB_HALT|RB_DUMP)) == RB_DUMP && !cold)
>                 dumpsys();
> 
>         /* Now that we're going to really halt the system... */
>         EVENTHANDLER_INVOKE(shutdown_final, howto);
> 
>         for(;;) ;       /* safety against shutdown_reset not working */
>         /* NOTREACHED */
> 
> At first I thought it's in cpu_reset(), but since you didn't see
> "Rebooting...", it's stuck in one of event handlers for shutdown_post_sync
> and not managed to shutdown_reset().  Please try attached patch to
> find which handler is the culprit.  Note that you may have to rebuild
> modules too, since this patches makes some incompatible changes to
> EVENTHANDLER_* APIs.
> 

So it's getting stuck in dashutdown:

Uptime: 1m13s
INVOKE(shutdown_post_sync) module_shutdown
INVOKE(shutdown_post_sync) ahd_shutdown
INVOKE(shutdown_post_sync) ahd_shutdown
INVOKE(shutdown_post_sync) dashutdown

Attachment:
pgp00014.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00014.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20070711/ac4e5f31/attachment-0020.obj>


More information about the Bugs mailing list