Panic in 5.1-R

Matthew D. Fuller fullermd at over-yonder.net
Tue Jul 22 18:31:15 PDT 2003


System runs ppp(8) for a PPPoE DSL connection.  I fired up another copy
of ppp for unrelated purposes (no args, just `ppp`), and got this panic:

panic: Resource & flags out-of-sync
cpuid = 1; lapic.id = 0c000000
boot() called on cpu#1

#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
#1  0xc0242863 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:370
#2  0xc0242c1f in panic () at /usr/src/sys/kern/kern_shutdown.c:543
#3  0xc02ae257 in tunopen (dev=0xc2818200, flag=3, mode=8192, td=0x0)
    at /usr/src/sys/net/if_tun.c:275
#4  0xc02089b9 in spec_open (ap=0xce7d2a64)
    at /usr/src/sys/fs/specfs/spec_vnops.c:203
#5  0xc0208778 in spec_vnoperate (ap=0x0)
    at /usr/src/sys/fs/specfs/spec_vnops.c:123
#6  0xc02a13b9 in vn_open_cred (ndp=0xce7d2bd8, flagp=0xce7d2cd8, cmode=3456, 
    cred=0xc2edd000) at vnode_if.h:213
#7  0xc02a0f79 in vn_open (ndp=0x0, flagp=0x0, cmode=0)
    at /usr/src/sys/kern/vfs_vnops.c:85
#8  0xc029a96d in kern_open (td=0xc2a18980, path=0x0, pathseg=UIO_USERSPACE, 
    flags=3, mode=134794642) at /usr/src/sys/kern/vfs_syscalls.c:684
#9  0xc029a820 in open (td=0x0, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:649
#10 0xc03bb1ce in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134883928, tf_esi = 2, tf_ebp = -1077938856, tf_isp = -830657164, tf_ebx = -1077938840, tf_edx = 9, tf_ecx = 134794646, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip = 405215043, tf_cs = 31, tf_eflags = 531, tf_esp = -1077938900, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1021
#11 0xc03a2c5d in Xint0x80_syscall () at {standard input}:139
---Can't read userspace from dump, or kernel process---



Actual source is at:
#3  0xc02ae257 in tunopen (dev=0xc2818200, flag=3, mode=8192, td=0x0)
    at /usr/src/sys/net/if_tun.c:275
275             KASSERT(!(tp->tun_flags & TUN_OPEN), ("Resource & flags out-of-sync"));
(kgdb) print dev->si_name
$6 = 0xc2818290 "tun0"


Keeping the dump around, if there's anything else useful I can pull out.



-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"


More information about the freebsd-current mailing list