Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2008 17:34:36 +0200
From:      Ed Schouten <ed@80386.nl>
To:        ben wilber <ben@desync.com>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/127054: [panic] perl causes panic
Message-ID:  <20080904153436.GU99951@hoeg.nl>
In-Reply-To: <20080904094250.GA2825@exodus.desync.com>
References:  <200809031003.m83A3xAg069149@freefall.freebsd.org> <20080903112406.GO99951@hoeg.nl> <20080903144844.GP99951@hoeg.nl> <20080903202922.GA2753@exodus.desync.com> <20080904044829.GT99951@hoeg.nl> <20080904094250.GA2825@exodus.desync.com>

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

[-- Attachment #1 --]
Hello Ben,

* ben wilber <ben@desync.com> wrote:
> On Thu, Sep 04, 2008 at 06:48:29AM +0200, Ed Schouten wrote:
> > > #11 0xffffffff80524e3f in ptsdev_close (fp=0xffffff00057c5808, td=Variable "td" is not available.
> > > )   
> > >     at /usr/src/sys/kern/tty_pts.c:436
> 
> Sorry, I lost my dump again trying to make DDB scripts work.  This is
> yet another new one.

It seems we're dealing with a very obscure case here:

> $4 = {t_mtx = 0xffffff000587c008, t_mtxobj = {lock_object = {
>       lo_name = 0xffffffff808952c6 "tty lock", lo_flags = 16908288, lo_data = 0, 
>       lo_witness = 0x0}, mtx_lock = 6}, t_list = {tqe_next = 0x0, tqe_prev = 0xffffff000530d028}, 
>   t_flags = 1543831584, t_revokecnt = 1, t_inq = {ti_list = {tqh_first = 0x0, 

t_flags shouldn't be this high. Converted to hexadecimal, its value is
0x5c050020. The only valid flags here are TF_GONE|TF_EXCLUDE|TF_ZOMBIE.

> <snip>
>   t_softc = 0xffffff001a30d100, t_dev = 0x0}

t_dev is 0, which means we're tearing down the TTY.

Have you got COMPAT_43TTY enabled in your kernel configuration file? If
so, can you reproduce the panic if COMPAT_43TTY is disabled? I think I
already see where the problem is. And yes, the bug is quite awful.

-- 
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkjAAAwACgkQ52SDGA2eCwWUGgCcC9Vxa2Kj/GTGmAl4dEIz+P/+
+/gAnj0UTEMTCk3+AOc6AZKM8MacoRyQ
=3aHQ
-----END PGP SIGNATURE-----
help

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