terminal fuckage

Nicolas Souchu nsouch@free.fr
Thu, 22 Jul 2004 00:59:30 +0200


On Wed, Jul 21, 2004 at 02:54:58AM +0200, Robert Millan wrote:
> On Mon, Jul 19, 2004 at 03:45:43AM +0200, Robert Millan wrote:
> > 
> > I'm currently going through the 2734 instances of ENXIO in the kernel of
> > FreeBSD, to find out which of them is the faulty one. I expect to find it
> > in a few days using a simple build&try algorithm =)
> 
> No luck. Messing with internal return values brings kfreebsd to panic on
> boot (and I can't do any terminal testing like that :P).
> 
> Hints welcome..

The backtrace? Now we have to figure out why cttyopen() is called...

(kgdb) bt
#0  cttyopen (dev=0xc0726480, flag=1, mode=8192, td=0xc15b7140)
    at ../../../kern/tty_tty.c:54
#1  0xc04d96fb in spec_open (ap=0xc95a7a6c)
    at ../../../fs/specfs/spec_vnops.c:207
#2  0xc04d93d8 in spec_vnoperate (ap=0xc95a7a6c)
    at ../../../fs/specfs/spec_vnops.c:122
#3  0xc057b8f3 in vn_open_cred (ndp=0xc95a7bdc, flagp=0xc95a7cdc, cmode=0, 
    cred=0xc1673980, fdidx=-1066244992) at vnode_if.h:228
#4  0xc057b4f3 in vn_open (ndp=0x1, flagp=0xc0726480, cmode=-1066244992, 
    fdidx=-1066244992) at ../../../kern/vfs_vnops.c:93
#5  0xc05749ce in kern_open (td=0xc15b7140, path=0xc0726480 "\005", 
    pathseg=3228722304, flags=1, mode=0) at ../../../kern/vfs_syscalls.c:963
#6  0xc05748f0 in open (td=0xc0726480, uap=0xc95a7a6c)
    at ../../../kern/vfs_syscalls.c:933
#7  0xc068ce60 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077940740, tf_esi = 0, tf_ebp = -1077940872, tf_isp = -916816524, tf_ebx = 672397496, tf_edx = 672400088, tf_ecx = 672400064, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip = 672094743, tf_cs = 31, tf_eflags = 658, tf_esp = -1077941044, tf_ss = 47})
    at ../../../i386/i386/trap.c:1010
#8  0xc067d27d in Xint0x80_syscall () at {standard input}:136
#9  0x080484a9 in ?? ()
#10 0x2805ef47 in ?? ()
(kgdb) 

-- 
Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org
http://www.freebsd.org/~nsouch/kgi4BSD