Date: Mon, 12 Apr 2004 10:59:55 +0200 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: Mark Murray <markm@FreeBSD.ORG> Cc: freebsd-current@FreeBSD.ORG Subject: Re: random(4) related panic: sleeping without a mutex Message-ID: <20040412085955.GB798@zaphod.nitro.dk> In-Reply-To: <200404112359.i3BNxNIn080714@grimreaper.grondar.org> References: <20040411215436.GB881@zaphod.nitro.dk> <200404112359.i3BNxNIn080714@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040412085955.GB798>