After upgrading my laptop do 3.7, I figured to give my Atheros
wireless NIC a go. The card works, albeit only in 11b mode. While
maybe not optimal, that is not really an issue. Besides, that would be
a different thread.

It seems I'm not allowed to unplug the card from the PCMCIA slot.
Doing so instantly provides a kernel panic. It does not appear to make
a difference whether I have the card in up or down state, nor does
enabling/disabling WEP seem to have an effect. Also, it does not
matter whether I boot up with the card inserted: the problem also
occurs when I plug in the card after booting.

Thanks to anyone who can shed some light on this issue. If anyone
would like to see the registers' contents or a dump, please let me
know.

Cheers,

Rogier


Hooking up a serial console provides the following kernel output upon
removing the card from the cardbus slot:

# multiply freed item 0xd17a1000
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> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT       COMMAND
 31309      1  31309     77  3       0x184  poll       dhclient
  7916      1  21009      0  3        0x86  poll       dhclient
  8109      1   8109      0  3     0x40184  select     sendmail
 25618      1  25618      0  3      0x4086  ttyin      ksh
 22707      1  22707      0  3      0x4086  ttyin      getty
 18776      1  18776      0  3      0x4086  ttyin      getty
 24590      1  24590      0  3      0x4086  ttyin      getty
 27271      1  27271      0  3      0x4086  ttyin      getty
 19488      1  19488      0  3      0x4086  ttyin      getty
 16778      1  16778      0  3        0x84  select     cron
 30646      1  30646      0  3       0x184  select     inetd
  6835      1   6835      0  3        0x84  poll       ntpd
 23907      1   3795     83  3       0x186  poll       ntpd
 11694  19357  19357     73  2       0x184             syslogd
 19357      1  19357      0  3        0x84  netio      syslogd
    15      0      0      0  3    0x100204  crypto_wa  crypto
    14      0      0      0  3    0x100204  aiodoned   aiodoned
    13      0      0      0  3    0x100204  syncer     update
    12      0      0      0  3    0x100204  cleaner    cleaner
    11      0      0      0  3    0x100204  reaper     reaper
    10      0      0      0  3    0x100204  pgdaemon   pagedaemon
     9      0      0      0  3    0x100204  cardslote  cardslot1
*    8      0      0      0  7    0x100204             cardslot0
     7      0      0      0  3    0x100204  usbevt     usb3
     6      0      0      0  3    0x100204  usbevt     usb2
     5      0      0      0  3    0x100204  usbevt     usb1
     4      0      0      0  3    0x100204  usbtsk     usbtask
     3      0      0      0  3    0x100204  usbevt     usb0
     2      0      0      0  3    0x100204  kmalloc    kmthread
     1      0      1      0  3      0x4084  wait       init
     0     -1      0      0  3     0x80204  scheduler  swapper
ddb> trace
Debugger(d0563264,0,e904ae1c,d17a1000,2) at Debugger+0x4
panic(d04dc2df,d17a1000,e904ae5c,d022434f,1) at panic+0x63
free(d17a1000,2,1,0,d17a1000) at free+0x40
ar5k_ar5212_detach(d17a1000,0,0,0,0) at ar5k_ar5212_detach+0x1d
ath_detach(d179f000,0,202,d179f000) at ath_detach+0x63
ath_cardbus_detach(d179f000,0,10,22460,d05b23e0) at ath_cardbus_detach+0x1e
config_detach(d179f000,0,0,d176e800) at config_detach+0x200
cardbus_detach_card(d176e780,7f,0,0,0) at cardbus_detach_card+0x2d
cardslot_event_throw(d176e800) at cardslot_event_throw+0x12c
Bad frame pointer: 0xd06d3e98
ddb> continue
syncing disks... 16 14 done
rebooting...


Dmesg from the boot-up in question:
>> OpenBSD/i386 BOOT 2.06
boot> boot
booting hd0a:/bsd:4686240+945680 [52+241328+223324]=0x5d0864
entry point at 0x100120

[ using 465076 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2005 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.80GHz ("GenuineIntel"
686-class) 1.80 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1800 MHz (1340 mV): speeds: 1800, 1600, 1400,
1200, 1000, 800, 600 MHz
real mem  = 1072988160 (1047840K)
avail mem = 972591104 (949796K)
using 4278 buffers containing 53751808 bytes (52492K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 09/07/04, BIOS32 rev. 0 @ 0xffe90
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc580/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371 ISA and IDE" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0x10000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82855PE Hub" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82855PE AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M9 Lf" rev 0x02
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x01: irq 11
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x81
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5705M" rev 0x01, BCM5705 A1
(0x3001): irq 11 address 00:11:43:3b:c6:eb
brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 1
cbb0 at pci2 dev 1 function 0 vendor "O2 Micro", unknown product
0x7113 rev 0x20: irq 11
cbb1 at pci2 dev 1 function 1 vendor "O2 Micro", unknown product
0x7113 rev 0x20: irq 11
iwi0 at pci2 dev 3 function 0 "Intel PRO/2200BG 3B" rev 0x05: irq 11,
address 00:0e:35:be:7c:51
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK6026GAX>
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <_NEC, DVD+RW ND-6100A, 104D> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x01: irq
11, ICH4 AC97
ac97: codec id 0x83847650 (SigmaTel STAC9750/51)
ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
audio0 at auich0
"Intel 82801DB Modem" rev 0x01 at pci0 dev 31 function 6 not configured
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 (mux 1 ignored for console): console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask ef6d netmask ef6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ath0 at cardbus0 dev 0 function 0 "3Com Corp., 3CRPAG175 Wireless LAN
PC Card, ": irq 11
ath0: mac 80.6 phy 4.1 radio 1.7 2.3, 802.11a/b/g, WOR0W, address
00:0e:6a:d7:96:d4
gpio at ath0 not configured
"O2Micro, SmartCardBus Reader, V1.0" at pcmcia1 function 0 not configured
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
ugen0 at uhub0 port 2
ugen0: Dell product 0x8000, rev 2.00/12.66, addr 2
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
/dev/rwd0h: file system is clean; not checking
/dev/rwd0i: 3982 files, 227072 free (276336 clusters)
setting tty flags
machdep.allowaperture: 0 -> 2
vm.swapencrypt.enable: 0 -> 1
starting network
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPACK from 192.168.200.1
bound to 192.168.200.25 -- renewal in 43200 seconds.
starting system logger
starting rpc daemons: ntpd.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files
starting network daemons: sendmail inetd.
starting local daemons:.
standard daemons: cron.
Mon Jul 11 15:42:20 CEST 2005


-- 
If you don't know where you're going, any road will get you there.

Reply via email to