kernel/5133: kernel panic during or after /etc/netstart

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

kernel/5133: kernel panic during or after /etc/netstart

Pawel Wieleba
>Number:         5133
>Category:       kernel
>Synopsis:       kernel panic during or after /etc/netstart
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 24 11:00:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Wieleba
>Release:        3.8 and 3.9
>Organization:
net
>Environment:
        System      : OpenBSD 3.9
        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        Kernel panics after running /etc/netstart preceeded by some of vlan pseudo interfaces.
        Usually it happens after a few 'ifconfig vlan destroy' and '/etc/netstart' commands.
        The platform used is: Intel_SE7221BK1
        The kernel is modified by:
$ diff GENERIC SRV
649a650,653
>
> pseudo-device raid            4
> options               RAID_AUTOCONFIG

        The kernel has a disabled pcibios with the following commands:
# config -o bsd.new -e /bsd
UKC> help
UKC> disable pcibios
UKC> quit
        The pcibios had to be disabled because otherwise only one gigabit ethernet interface was discovered (em0).
        The same thing happend on 3.8 stable.

>How-To-Repeat:
        The JPEG photos of kernel panic screens are available on my web (sorry for the quality).        
        http://www.iem.pw.edu.pl/~wielebap/OpenBSD/kernel1/
        Do you have any idea what could be a problem?
        If you need further information please let me know.

# ifconfig vlan999 destroy
# /etc/netstart

On console apears:

multiply freed item 0xd1ff8d00
panic: free: duplicated free
Stopped at   Debugger+0x4:    leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
Debugger(d05fe4e4,a9e8e855,e9819aa0,d1ff8d00,9) at Debugger+0x4
panic(d056d971,d1ff8d00,2,aae8e855,a9e8e855) at panic+0x63
free(d1ff8d00,9,0,ea2df0f8) at free+0x40
ifafree(d1ff8d00,e9ec9f34,e9819c10,d02d9f20 at ifafree+0x27
rtfree(d729db7c,9,d7d04948,e9ec9f34) at rtfree+0x8d
ip_output(e0ec9f00,0,d7d04990,800,0) at ip_output+0xf3c
tcp_output(d79ba960,e9ec9f00,e9819d80,0,e0819e38) at tcp_output+0xc29
tcp_usrreq(d79a31a0,9,e9ec9f00,0,0) at tcp_usrreq+0x236
sosend(d79a31a0,0,e9819e38,e9ec9f00,0,0,e9819e34,0) at sosend+0x389
sendit(d7d2bb44,5,e9819ed8,0,e9819f58) at sendit+0x157
sys_sendmsg(d7d2bb44,e9819f68,e9819f58,13,151ff) at sys_sendmsg+0x79
syscall() at syscall+0x2ea
--- syscall (number 28) ---
0x8f40331:
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
[...]
*10381 13965 13965 75 7 0x104 bgpd
 29688 13965 13965 75 2 0x104 bgpd
[...]
     0    -1     0  0 3 0x80204 scheduler swapper
ddb> boot sync
syncing disks... rtfree: 0xd729db7c not freed (neg refs)
 {and it hangs forever}

My dmesg is:
% cat dmesg
OpenBSD 3.9 (SRV) #0: Wed May 10 17:56:31 CEST 2006
    root@srv:/usr/src/sys/arch/i386/compile/SRV
cpu0: Intel(R) Celeron(R) CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,TM2,CNXT-ID
real mem  = 1064824832 (1039868K)
avail mem = 964476928 (941872K)
using 4278 buffers containing 53342208 bytes (52092K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/24/05, BIOS32 rev. 0 @ 0xf0010
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0x9400!
ipmi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7221 MCH Host" rev 0x05
vga1 at pci0 dev 2 function 0 "Intel E7221 Video" rev 0x05: aperture at 0xdfb00000, size 0x8000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci1 at ppb0 bus 2
ppb1 at pci1 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci2 at ppb1 bus 4
em0 at pci2 dev 3 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: irq 11, address 00:0e:0c:4a:8c:a5
ppb2 at pci1 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 3
em1 at pci3 dev 1 function 0 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 10, address 00:04:23:ab:31:70
em2 at pci3 dev 1 function 1 "Intel PRO/1000MT (82546GB)" rev 0x03: irq 7, address 00:04:23:ab:31:71
ppb3 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xd3
pci4 at ppb3 bus 1
em3 at pci4 dev 3 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: irq 5, address 00:0e:0c:4a:8c:a4
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MITSUMI, CD-ROM SR244W, T01A> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801FR SATA" rev 0x03: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD360GD-00FLC0>
wd0: 16-sector PIO, LBA48, 35304MB, 72303840 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide1 channel 1 drive 0: <WDC WD360GD-00FLC0>
wd1: 16-sector PIO, LBA48, 35304MB, 72303840 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 11
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask fb45 netmask ffe5 ttymask ffe7
pctr: user-level cycle counter enabled
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
raid0 (root): (RAID Level 1) total number of sectors is 71244032 (34787 MB) as root
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
rootdev=0x1300 rrootdev=0x3600 rawdev=0x3602
raid0: Device already configured!
>Fix:
        Unknown


>Release-Note:
>Audit-Trail:
>Unformatted: