From nobody@FreeBSD.org  Thu Jan 21 00:31:08 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 04D3F1065692
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jan 2010 00:31:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E962B8FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jan 2010 00:31:07 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0L0V7rR036056
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Jan 2010 00:31:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o0L0V7VD036055;
	Thu, 21 Jan 2010 00:31:07 GMT
	(envelope-from nobody)
Message-Id: <201001210031.o0L0V7VD036055@www.freebsd.org>
Date: Thu, 21 Jan 2010 00:31:07 GMT
From: David Evans <dave.evans55@googlemail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysctl -a  hangs, as a side effect it breaks /etc/rc.d/initrandom
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143040
>Category:       kern
>Synopsis:       [sysctl] sysctl -a  hangs, as a side effect it breaks /etc/rc.d/initrandom
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 21 00:40:00 UTC 2010
>Closed-Date:    
>Last-Modified:  Thu Jan 21 11:30:09 UTC 2010
>Originator:     David Evans
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD  9.0-CURRENT GENERIC  i386 Wed Jan 20 21:25:68 UTC 2010

cvsupped as of today Jan 20 2009 at 1700 UTC
>Description:
sysctl -a

hangs at debug.witness.free_cnt

Pressing the debug key does not trap to the debugger.

I modified the syscons keymap so that ctrl-esc is the debug key, as
ctrl-alt is a special key on Desktop.

I'm running on a virtual machine (Parallels Desktop for Mac 4.0), but
that should not make any difference, I say hopefully.

sysctl -a was ok on 8.0-CURRENT here as of October 2009 on all
my other VMs

This bug breaks /etc/rc.d/initrandom as it uses sysctl -a to generate
some entropy.
>How-To-Repeat:
sysctl -a


>Fix:


>Release-Note:
>Audit-Trail:

From: David Evans <dave.evans55@googlemail.com>
To: bug-followup@FreeBSD.org, dave.evans55@googlemail.com
Cc:  
Subject: Re: kern/143040: [sysctl] sysctl -a  hangs, as a side effect it breaks
 /etc/rc.d/initrandom
Date: Thu, 21 Jan 2010 11:25:01 +0000

 The exact point at which sysctl -a stops
 seems to be quite random.
 
 It has stopped at:
 
 debug.witness.badstacks
 net.inet.tcp
 hw.bce.tso_enable
 debug.ddb.capture.bufoff
 dev.ad.3.%parent
 p1003_1b.aio_listio_max
 dev.cpu.0.%location
 dev.acpi_sysresource.0.%parent
 
 In multi-user mode it is then impossible
 to switch consoles.
 
 
>Unformatted:
