DragonFly bugs List (threaded) for 2007-07
DragonFly BSD
DragonFly bugs List (threaded) for 2007-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue713] shutdown freeze and forced unmounts


From: Peter Avalos <pavalos@xxxxxxxxxxxx>
Date: Wed, 11 Jul 2007 10:18:35 -0400
Mail-followup-to: bugs@crater.dragonflybsd.org

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.
> 

In some of my own testing I've verified that it never gets to the
shutdown_final handler.  I'll try your patch out later today.  Thanks!

--Peter

Attachment: pgp00013.pgp
Description: PGP signature



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