Re: [Fwd: Re: kern/118258 sysctl causing panics on 7.0-xxx]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tai-hwa Liang
Date: Thursday, November 29, 2007 - 8:53 pm

On Wed, 28 Nov 2007, Remko Lodder wrote:

   This is a longstanding bug which also exists in RELENG_6.  It turns out
that 'sysctl kern.ttys' after a terminal device is removed could trigger
this panic reliably.  For example, do 'sysctl kern.ttys' multiple times
after detaching an USB serial-to-rs232 cable or a PCMCIA modem card.

   Alternatively, following script would demo the panic if you don't have
a physically removable terminal device:

#!/bin/sh
#
# Warning! Running this script as root will panic your CURRENT box...
#
while true; do
 	kldload dcons
 	kldunload dcons
 	ls /dev
 	sysctl kern.ttys
 	sleep 1
done

   This seems to be a race between devfs and destroy_dev(), Cc'ing kib@
since he probably has more clues in this area.

-- 
Cheers,

Tai-hwa Liang
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Fwd: Re: kern/118258 sysctl causing panics on 7.0-xxx], Remko Lodder, (Wed Nov 28, 7:57 am)
Re: [Fwd: Re: kern/118258 sysctl causing panics on 7.0-xxx], Tai-hwa Liang, (Thu Nov 29, 8:53 pm)