kern/116837: [tun] [panic] [patch] ifconfig tunX destroy: panic

Bob Van Zant bvanzant at ironport.com
Wed Jan 23 23:40:04 PST 2008


The following reply was made to PR kern/116837; it has been noted by GNATS.

From: Bob Van Zant <bvanzant at ironport.com>
To: <bug-followup at FreeBSD.org>
Cc:  
Subject: Re: kern/116837: [tun] [panic] [patch] ifconfig tunX destroy: panic
Date: Thu, 24 Jan 2008 12:40:19 +0530

 I applied the patch in the prior comment and now I get this, different,
 kernel panic (yanked from dmesg):
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address    = 0xdeadc0e6
 fault code        = supervisor write, page not present
 instruction pointer    = 0x20:0xc07903b5
 stack pointer            = 0x28:0xd62a2ab4
 frame pointer            = 0x28:0xd62a2ac8
 code segment        = base 0x0, limit 0xfffff, type 0x1b
             = DPL 0, pres 1, def32 1, gran 1
 processor eflags    = interrupt enabled, resume, IOPL = 0
 current process        = 3091 (ppp)
 trap number        = 12
 panic: page fault
 cpuid = 0
 Uptime: 1h58m15s
 Physical memory: 499 MB
 Dumping 154 MB: 139 123 107 91 75 59 43 27 11
 Dump complete
 
 
 Plopping into kgdb:
 
 (kgdb) list *0xc07903b5
 0xc07903b5 is in clear_selinfo_list (/usr/src/sys/kern/sys_generic.c:1066).
 1061    {
 1062        struct selinfo *si;
 1063    
 1064        mtx_assert(&sellock, MA_OWNED);
 1065        TAILQ_FOREACH(si, &td->td_selq, si_thrlist)
 1066            si->si_thread = NULL;
 1067        TAILQ_INIT(&td->td_selq);
 1068    }
 1069    
 1070    /*
 
 
 (kgdb) bt
 #0  doadump () at pcpu.h:195
 #1  0xc075957f in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
 #2  0xc075984b in panic (fmt=Variable "fmt" is not available.
 ) at /usr/src/sys/kern/kern_shutdown.c:563
 #3  0xc0a41913 in trap_fatal (frame=0xd62a2a74, eva=3735929062)
     at /usr/src/sys/i386/i386/trap.c:899
 #4  0xc0a41af0 in trap_pfault (frame=0xd62a2a74, usermode=0, eva=3735929062)
     at /usr/src/sys/i386/i386/trap.c:812
 #5  0xc0a42432 in trap (frame=0xd62a2a74) at
 /usr/src/sys/i386/i386/trap.c:490
 #6  0xc0a289bb in calltrap () at /usr/src/sys/i386/i386/exception.s:139
 #7  0xc07903b5 in clear_selinfo_list (td=0xc321d220)
     at /usr/src/sys/kern/sys_generic.c:1065
 #8  0xc0791168 in kern_select (td=0xc321d220, nd=11, fd_in=0x28413c00,
     fd_ou=0x28414000, fd_ex=0x28414400, tvp=0x0)
     at /usr/src/sys/kern/sys_generic.c:794
 #9  0xc079131e in select (td=0xc321d220, uap=0xd62a2cfc)
     at /usr/src/sys/kern/sys_generic.c:663
 #10 0xc0a41dc3 in syscall (frame=0xd62a2d38)
     at /usr/src/sys/i386/i386/trap.c:1035
 #11 0xc0a28a20 in Xint0x80_syscall () at
 /usr/src/sys/i386/i386/exception.s:196
 #12 0x00000033 in ?? ()
 


More information about the freebsd-net mailing list