From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 01:59:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E402F16A4CE; Mon, 12 Apr 2004 01:59:58 -0700 (PDT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C0A743D69; Mon, 12 Apr 2004 01:59:58 -0700 (PDT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 1502311982; Mon, 12 Apr 2004 10:59:55 +0200 (CEST) Date: Mon, 12 Apr 2004 10:59:55 +0200 From: "Simon L. Nielsen" To: Mark Murray Message-ID: <20040412085955.GB798@zaphod.nitro.dk> References: <20040411215436.GB881@zaphod.nitro.dk> <200404112359.i3BNxNIn080714@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <200404112359.i3BNxNIn080714@grimreaper.grondar.org> User-Agent: Mutt/1.5.6i cc: freebsd-current@FreeBSD.ORG Subject: Re: random(4) related panic: sleeping without a mutex X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 08:59:59 -0000 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.04.12 00:59:23 +0100, Mark Murray wrote: > "Simon L. Nielsen" writes: > > I getting the following panic on my Soekris Net4801 box right after init > > has been started: > >=20 > > Mounting root from ufs:/dev/ad0s1a > > start_init: trying /sbin/init > > panic: sleeping without a mutex > > at line 144 in file /data/nanobsd/src/sys/kern/kern_synch.c > > Debugger("panic") > > Stopped at Debugger+0x45: xchgl %ebx,in_Debugger.0 >=20 > Could you please try the enclosed patch? It fixes the panic, but now it just hangs after init. I think it's when creating the /etc memory disk. I can continue by pressing ctrl-c so it's not totally hung. The last part of the boot message with a few ctrl-t's : Mounting root from ufs:/dev/ad0s1a = =20 load: 0.46 cmd: newfs 63 [block] 0.00u 0.06s 0% 776k load: 0.42 cmd: newfs 63 [block] 0.00u 0.06s 0% 776k load: 0.12 cmd: newfs 63 [block] 0.00u 0.06s 0% 776k I tried to boot both my working kernel (Apr 4) and the new one in single user mode. The sysctl output for kern.random looks interesting since the old one was seeded, and the new one isn't: FreeBSD 5.2-CURRENT #6: Sun Apr 4 16:56:40 CEST 2004 # sysctl kern.random kern.random.sys.seeded: 1 kern.random.sys.harvest.ethernet: 0 kern.random.sys.harvest.point_to_point: 0 kern.random.sys.harvest.interrupt: 0 kern.random.sys.harvest.swi: 0 kern.random.yarrow.gengateinterval: 10 kern.random.yarrow.bins: 10 kern.random.yarrow.fastthresh: 192 kern.random.yarrow.slowthresh: 256 kern.random.yarrow.slowoverthresh: 2 FreeBSD 5.2-CURRENT #1: Mon Apr 12 10:00:00 CEST 2004 : # sysctl kern.random kern.random.yarrow.gengateinterval: 10 kern.random.yarrow.bins: 10 =20 kern.random.yarrow.fastthresh: 192 kern.random.yarrow.slowthresh: 256 kern.random.yarrow.slowoverthresh: 2 kern.random.sys.seeded: 0 kern.random.sys.harvest.ethernet: 0 kern.random.sys.harvest.point_to_point: 0 kern.random.sys.harvest.interrupt: 0 =20 kern.random.sys.harvest.swi: 0 =20 Since it doesn't harvest I guess it's not that strange that it isn't seeded, but since it worked before something must have changed. --=20 Simon L. Nielsen FreeBSD Documentation Team --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAelqLh9pcDSc1mlERArPyAJ9mwjraR3szQIz2bXVQ4mlP/97auACgggQ3 BVEwc4YzJ5t/5Awt+sXfMtU= =4grs -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--