Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2008 23:32:27 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: panic: sleeping thread & bufwrite: buffer is not busy???
Message-ID:  <20081211213227.GX2038@deviant.kiev.zoral.com.ua>
In-Reply-To: <4940A685.7040608@psg.com>
References:  <4940A685.7040608@psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jrD2fTATTFYrkNk2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 11, 2008 at 02:35:01PM +0900, Randy Bush wrote:
> i386 soekris 5501
> current as of Dec 11 00:27 gmt
>=20
> Unread portion of the kernel message buffer:
> Sleeping thread (tid 100054, pid 646) owns a non-sleepable lock
> panic: sleeping thread
> panic: bufwrite: buffer is not busy???
> Uptime: 2m1s
> Physical memory: 503 MB
>=20
> #0  doadump () at pcpu.h:246
> #1  0xc0571f33 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c=
:420
> #2  0xc05720f7 in panic (fmt=3DVariable "fmt" is not available.)
>     at /usr/src/sys/kern/kern_shutdown.c:576
> #3  0xc06fc75c in ffs_bufwrite (bp=3D0xc2937e20)
>     at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1786
> #4  0xc05c7250 in vfs_bio_awrite (bp=3D0xc2937e20) at buf.h:385
> #5  0xc05cfee0 in vop_stdfsync (ap=3D0xc2a89b34)
>     at /usr/src/sys/kern/vfs_default.c:479
> #6  0xc0520ad3 in devfs_fsync (ap=3D0xc2a89b34)
>     at /usr/src/sys/fs/devfs/devfs_vnops.c:485
> #7  0xc074e50e in VOP_FSYNC_APV (vop=3D0xc07cc800, a=3D0xc2a89b34)
>     at vnode_if.c:1007
> #8  0xc06fd0a2 in ffs_sync (mp=3D0xc2e33c80, waitfor=3D2, td=3D0xc2c28480)
>     at vnode_if.h:529
> #9  0xc05e0803 in sync (td=3D0xc2c28480, uap=3D0x0)
>     at /usr/src/sys/kern/vfs_syscalls.c:149
> #10 0xc0571ad2 in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c=
:312
> #11 0xc05720f7 in panic (fmt=3DVariable "fmt" is not available.)
>     at /usr/src/sys/kern/kern_shutdown.c:576
> #12 0xc059ec81 in propagate_priority (td=3D0xc2e696c0)
>     at /usr/src/sys/kern/subr_turnstile.c:222
> #13 0xc059f551 in turnstile_wait (ts=3D0xc2c0ee10, owner=3D0xc2e696c0,=20
> queue=3DVariable "queue" is not available.)
>     at /usr/src/sys/kern/subr_turnstile.c:738
> #14 0xc0570c73 in _rw_wlock_hard (rw=3D0xc2cdcd80, tid=3D3267527808,=20
> file=3D0x0, line=3D0)
>     at /usr/src/sys/kern/kern_rwlock.c:705
> #15 0xc06bdcb6 in in6_mtutimo (rock=3D0xc2cdcd00)
>     at /usr/src/sys/netinet6/in6_rmx.c:437
> #16 0xc0580f77 in softclock (arg=3D0xc07ffbe0)
>     at /usr/src/sys/kern/kern_timeout.c:398
> #17 0xc055790a in intr_event_execute_handlers (p=3D0xc2c257ec, ie=3D0xc2c=
22400)
>     at /usr/src/sys/kern/kern_intr.c:1134
> #18 0xc0558933 in ithread_loop (arg=3D0xc2c07ba0)
>     at /usr/src/sys/kern/kern_intr.c:1147
> #19 0xc0555cb6 in fork_exit (callout=3D0xc05588d0 <ithread_loop>,
>     arg=3D0xc2c07ba0, frame=3D0xc2a89d38) at /usr/src/sys/kern/kern_fork.=
c:821
> #20 0xc0730a50 in fork_trampoline () at=20
> /usr/src/sys/i386/i386/exception.s:270

Do you have sysctl kern.sync_on_panic=3D1 ?
The trace looks like some problem in ipv6, panic, attempt to sync
ufs, and second panic due to locking actually turned off by the first
panic.

--jrD2fTATTFYrkNk2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAklBht0ACgkQC3+MBN1Mb4isXwCg9Iq15ZI3Y7OMLPHJVDexsCFd
JS0AoMF0JHqcw+doCNPVJhf7ZgNU1lgn
=PcPS
-----END PGP SIGNATURE-----

--jrD2fTATTFYrkNk2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081211213227.GX2038>