Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2001 13:24:00 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Doug Barton <DougB@DougBarton.net>
Cc:        <freebsd-current@FreeBSD.ORG>
Subject:   Re: panic: blockable sleep lock (sx) allproc @  /usr/local/src/sys/kern/kern_proc.c:212
Message-ID:  <20011001131719.B76679-100000@delplex.bde.org>
In-Reply-To: <3BB77EE4.4F7CAD2D@DougBarton.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 Sep 2001, Doug Barton wrote:

> =09With -current as of last night around 7pm PDT:
>
>
> IdlePTD 4390912
> initial pcb at 320920
> panicstr: bremfree: bp 0xc68bf184 not locked
> panic messages:
> ---
> panic: blockable sleep lock (sx) allproc @
> /usr/local/src/sys/kern/kern_proc.c:212
>
> syncing disks... panic: bremfree: bp 0xc68bf184 not locked
> Uptime: 9h46m14s
>
> ...
> #10 0xc01cf4d5 in panic (fmt=3D0xc02b0f20 "blockable sleep lock (%s) %s @
> %s:%d")
>     at /usr/local/src/sys/kern/kern_shutdown.c:628
> #11 0xc01e6054 in witness_lock (lock=3D0xc035a9a0, flags=3D0,
>     file=3D0xc02ad8e0 "/usr/local/src/sys/kern/kern_proc.c", line=3D212)
>     at /usr/local/src/sys/kern/subr_witness.c:493
> #12 0xc01d3625 in _sx_slock (sx=3D0xc035a9a0,
>     file=3D0xc02ad8e0 "/usr/local/src/sys/kern/kern_proc.c", line=3D212)
>     at /usr/local/src/sys/kern/kern_sx.c:115
> #13 0xc01ca5e4 in pfind (pid=3D353) at
> /usr/local/src/sys/kern/kern_proc.c:212
> #14 0xc01e98a2 in selwakeup (sip=3D0xc179b804) at
> /usr/local/src/sys/kern/sys_generic.c:1292
> #15 0xc01f33a3 in ptcwakeup (tp=3D0xc179b828, flag=3D1)
>     at /usr/local/src/sys/kern/tty_pty.c:321
> #16 0xc01f337a in ptsstart (tp=3D0xc179b828) at
> /usr/local/src/sys/kern/tty_pty.c:310
> #17 0xc01f0958 in ttstart (tp=3D0xc179b828) at
> /usr/local/src/sys/kern/tty.c:1409
> #18 0xc01f1da9 in tputchar (c=3D99, tp=3D0xc179b828) at
> /usr/local/src/sys/kern/tty.c:2469
> #19 0xc01e291f in putchar (c=3D99, arg=3D0xcd9a0be8) at
> /usr/local/src/sys/kern/subr_prf.c:306
> #20 0xc01e2b9e in kvprintf (
>     fmt=3D0xc02add01 "alcru: negative time of %ld usec for pid %d (%s)\n"=
,
>     func=3D0xc01e28d0 <putchar>, arg=3D0xcd9a0be8, radix=3D10, ap=3D0xcd9=
a0c00
> "=DE/=CC=FF\002\020")
>     at /usr/local/src/sys/kern/subr_prf.c:489
> #21 0xc01e284c in printf (
>     fmt=3D0xc02add00 "calcru: negative time of %ld usec for pid %d (%s)\n=
")
>     at /usr/local/src/sys/kern/subr_prf.c:262
> #22 0xc01cdeab in calcru (p=3D0xcd0e7300, up=3D0xc189ae00, sp=3D0xc189ae0=
8,
> ip=3D0x0)
>     at /usr/local/src/sys/kern/kern_resource.c:669
> #23 0xc01c041c in exit1 (td=3D0xcd0e7404, rv=3D256) at
> /usr/local/src/sys/kern/kern_exit.c:318
> #24 0xc01bfdde in sys_exit (td=3D0xcd0e7404, uap=3D0xcd9a0d20)
>     at /usr/local/src/sys/kern/kern_exit.c:110
> #25 0xc027543f in syscall (frame=3D{tf_fs =3D 47, tf_es =3D 47, tf_ds =3D=
 47,
> tf_edi =3D 0,
>       tf_esi =3D -1, tf_ebp =3D -1077937600, tf_isp =3D -845542028, tf_eb=
x =3D
> 672297256,
>       tf_edx =3D 512, tf_ecx =3D 672374048, tf_eax =3D 1, tf_trapno =3D 1=
2, tf_err
> =3D 2,
>       tf_eip =3D 671896240, tf_cs =3D 31, tf_eflags =3D 643, tf_esp =3D
> -1077937644, tf_ss =3D 47})
>     at /usr/local/src/sys/i386/i386/trap.c:1122
> #26 0xc026953d in syscall_with_err_pushed ()

This is a well-know bug in printf(9).  The TIOCCONS ioctl always gave
non-deterministic crashes.  Now it gives determinstic panics when
pintf() is called while sched_lock is held.  Work-around: don't use
anything that uses TIOCCONS (xconsole?).

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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