ural(4) and panic on sleeping thread (6.1-R)
"José M. Fandiño"
freebsd4 at fadesa.es
Tue Aug 1 15:59:11 UTC 2006
Hello,
I get a panic each time I try to create an access point
with the ural driver.
only by running this commands the machine panic:
kldload bridge
sysctl net.link.ether.bridge.enable=1
net.link.ether.bridge_cfg="rl0,ural0"
I'm not very familiarized with 'kgdb' so if some developper
gets interested in this panic I can execute all commands
they are interested in.
thank you.
# kgdb -c /var/crash/vmcore.3 /usr/obj/usr/src/sys/GENERIC/kernel.debug
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
Unread portion of the kernel message buffer:
<6>rl0: promiscuous mode enabled
Sleeping thread (tid 100079, pid 783) owns a non-sleepable lock
panic: sleeping thread
Uptime: 1m22s
Dumping 254 MB (2 chunks)
chunk 0: 1MB (159 pages) ... ok
chunk 1: 254MB (65008 pages) 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14
#0 doadump () at pcpu.h:165
165 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt full
#0 doadump () at pcpu.h:165
No locals.
#1 0xc064dee1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402
first_buf_printf = 1
#2 0xc064e178 in panic (fmt=0xc08a8dda "sleeping thread") at /usr/src/sys/kern/kern_shutdown.c:558
td = (struct thread *) 0xc2535300
bootopt = 260
newpanic = 0
ap = 0xc2535300 "\fS�
buf = "sleeping thread", '\0' <repeats 240 times>
#3 0xc066da08 in propagate_priority (td=0xc283e900) at /usr/src/sys/kern/subr_turnstile.c:196
tc = (struct turnstile_chain *) 0xc2535300
ts = (struct turnstile *) 0xc252d440
pri = 4
#4 0xc066e1ea in turnstile_wait (lock=0xc2d15620, owner=0xc283e900) at /usr/src/sys/kern/subr_turnstile.c:634
tc = (struct turnstile_chain *) 0xc09801f0
ts = (struct turnstile *) 0xc252d440
td = (struct thread *) 0xc2535300
td1 = (struct thread *) 0xc2535300
#5 0xc06456c8 in _mtx_lock_sleep (m=0xc2d15620, tid=3260240640, opts=0, file=0xc2d1490a "/usr/src/sys/modules/bridge/../../net/bridge.c",
line=778) at /usr/src/sys/kern/kern_mutex.c:565
v = 0
#6 0xc064552c in _mtx_lock_flags (m=0x0, opts=0, file=0xc2d1490a "/usr/src/sys/modules/bridge/../../net/bridge.c", line=778)
at /usr/src/sys/kern/kern_mutex.c:286
No locals.
#7 0xc2d140dc in ?? ()
No symbol table info available.
#8 0xc2d15620 in ?? ()
No symbol table info available.
#9 0x00000000 in ?? ()
No symbol table info available.
#10 0xc2d1490a in ?? ()
No symbol table info available.
#11 0x0000030a in ?? ()
No symbol table info available.
#12 0xc06b5e63 in bpf_mtap (bp=0xc2802a42, m=0xc2802a00) at /usr/src/sys/net/bpf.c:1321
d = (struct bpf_d *) 0xc2670400
pktlen = 3261531136
slen = 0
#13 0xc06bc1f2 in ether_input (ifp=0xc2670400, m=0xc2802a00) at /usr/src/sys/net/if_ethersubr.c:614
eh = (struct ether_header *) 0x0
etype = 2048
#14 0xc076043b in rl_rxeof (sc=0xc265a800) at /usr/src/sys/pci/if_rl.c:1201
m = (struct mbuf *) 0xc2802a00
ifp = (struct ifnet *) 0xc2670400
rxbufpos = (uint8_t *) 0x0
total_len = 4
wrap = 65532
rxstat = 0
cur_rx = 100
limit = 0
max_bytes = 100
rx_bytes = 100
#15 0xc07606cb in rl_intr (arg=0xc265a800) at /usr/src/sys/pci/if_rl.c:1356
sc = (struct rl_softc *) 0xc265a800
ifp = (struct ifnet *) 0xc2670400
status = 1
#16 0xc06395b5 in ithread_execute_handlers (p=0xc253b20c, ie=0xc2532880) at /usr/src/sys/kern/kern_intr.c:684
ih = (struct intr_handler *) 0xc25f6400
ihn = (struct intr_handler *) 0xc267ab80
#17 0xc06396cc in ithread_loop (arg=0xc2610ca0) at /usr/src/sys/kern/kern_intr.c:767
intr_event = (struct intr_thread *) 0xc2610ca0
ie = (struct intr_event *) 0xc2532880
td = (struct thread *) 0xc2535300
p = (struct proc *) 0xc253b20c
---Type <return> to continue, or q <return> to quit---
#18 0xc0638524 in fork_exit (callout=0xc0639678 <ithread_loop>, arg=0xc2610ca0, frame=0xcc113d38) at /usr/src/sys/kern/kern_fork.c:805
p = (struct proc *) 0xc253b20c
td = (struct thread *) 0x0
#19 0xc0830cfc in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:208
No locals.
(kgdb)
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE #0: Fri Jul 28 11:46:46 CEST 2006
root at info34.local:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Mobile Intel(R) Celeron(R) CPU 2.00GHz (1992.63-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf29 Stepping = 9
Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x4400<CNTX-ID,<b14>>
real memory = 267321344 (254 MB)
avail memory = 247910400 (236 MB)
kbd1 at kbdmux0
acpi0: <PTLTD RSDT> on motherboard
acpi0: Power Button (fixed)
acpi_ec0: <Embedded Controller: GPE 0x22> port 0x62,0x66 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link0: BIOS IRQ 11 for 0.10.INTA is invalid
pci0: <ACPI PCI bus> on pcib0
agp0: <Ali M1671 host to AGP bridge> mem 0xf0000000-0xf7ffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce2 Go> mem 0xe1000000-0xe1ffffff,0xe8000000-0xefffffff irq 10 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
pcm0: <Acer Labs M5451> port 0x1800-0x18ff mem 0xe0000000-0xe0000fff irq 11 at device 6.0 on pci0
pcm0: <Cirrus Logic CS4299 AC97 Codec>
pcm0: [GIANT-LOCKED]
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <simple comms, generic modem> at device 8.0 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0x2000-0x20ff mem 0xe0002000-0xe00020ff irq 10 at device 10.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:00:e2:90:d9:d0
fwohci0: <VIA Fire II (VT6306)> port 0x2400-0x247f mem 0xe0002800-0xe0002fff irq 11 at device 11.0 on pci0
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:11:06:00:00:0a:56:5d
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:11:06:0a:56:5d
fwe0: Ethernet address: 02:11:06:0a:56:5d
fwe0: if_start running deferred for Giant
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xe0003000-0xe0003fff irq 10 at device 15.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
atapci0: <AcerLabs M5229 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2480-0x248f at device 16.0 on pci0
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <bridge> at device 17.0 (no driver attached)
cbb0: <O2Micro OZ6912/6972 PCI-CardBus Bridge> mem 0xe0004000-0xe0004fff irq 11 at device 19.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
ohci1: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xe0005000-0xe0005fff irq 11 at device 20.0 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <Generic IRDA-compatible device> port 0x2f8-0x2ff irq 3 drq 3 on acpi0
sio1: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xd8000-0xdbfff,0xdc000-0xdffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
ural0: ANI 802.11g W, rev 2.00/0.01, addr 3
ural0: MAC/BBP RT2570 (rev 0x03), RF RT2526
ural0: Ethernet address: 00:80:5a:33:91:55
ural0: if_start running deferred for Giant
Timecounter "TSC" frequency 1992630836 Hz quality 800
Timecounters tick every 1.000 msec
rl1: <RealTek 8139 10/100BaseTX> port 0x1000-0x10ff mem 0x88000000-0x880001ff irq 11 at device 0.0 on cardbus0
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> on miibus1
rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:10:60:59:1d:47
ad0: DMA limited to UDMA33, controller found non-ATA66 cable
ad0: 28615MB <HITACHI DK23EA-30 00K4A0A2> at ata0-master UDMA33
acd0: CDROM <SR244W1/T01A> at ata1-master UDMA33
Trying to mount root from ufs:/dev/ad0s3a
More information about the freebsd-hackers
mailing list