Subject: Re: can't get system dump from DDB anymore
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 04/04/2007 18:05:15
On Wed, Apr 04, 2007 at 05:28:09PM +0200, Matthias Drochner wrote:
> 
> Hi -
> just found that this got broken. Whenever I type
> "sync" or "reboot 0x100" at the DDB prompt, I get
> "panic: assert_sleepable: NULL curlwp".
> 
> The stacktrace is:
> assert_sleepable
> _fstrans_start
> ffs_sync
> sys_sync
> vfs_shutdown
> cpu_reboot
> db_reboot_cmd
> 
> Would be nice if that ability could be restored again.

We could add something like this (from sparc64/machdep.c) to db_reboot_cmd():

 	 */
 	db_recover = 0;
+	if (curlwp == NULL)
+		curlwp = &lwp0;
 	cpu_reboot((int)bootflags, NULL);
 }

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)