FreeBSD 5.2C: LOR - 1st 0xca738038 filedesc structure (filedescstructure) @

Mike Schreckengost mrpolitics at
Tue Jan 27 01:37:09 PST 2004

Hi Peter,
    I also see similar LOR messages (w/ backtraces) from time to time on my 
FreeBSD 5.2-CURRENT system. I also use an SMP machine (2 AMD Athlon-MP 2100+ 
processors), I don't know if this is related to the problem or not. Anyways, 
if you discover any helpful information, I would be delighted if you'd share 
it. :)

Thanks in advance,

>From: Peter Wood <peter at>
>To: freebsd-current at
>Subject: FreeBSD 5.2C: LOR - 1st 0xca738038 filedesc structure 
>(filedescstructure) @ /usr/src/sys/kern/sys_generic.c:901
>Date: Mon, 26 Jan 2004 17:29:48 +0000
>Good Evening,
>Checked nightly logs to discover that there had been two lock order 
>last night on my SMP 5.2C machine.
>They are listed as:
>lock order reversal
>  1st 0xc7975dec vm object (vm object) @ /usr/src/sys/vm/swap_pager.c:1314
>  2nd 0xc0788d80 swap_pager swhash (swap_pager swhash) @
>  3rd 0xc1042738 vm object (vm object) @ /usr/src/sys/vm/uma_core.c:873
>Stack backtrace:
>lock order reversal
>  1st 0xca738038 filedesc structure (filedesc structure) @
>  2nd 0xc0752d80 Giant (Giant) @ /usr/src/sys/fs/specfs/spec_vnops.c:377
>Stack backtrace:
>The backtrace for the second LOR was thankfully still on screen, I've taken 
>screen shot and it can be located at:
>I'm going to cvsup to current shortly, I'm interested in trying the new
>schedular. If anyone from core needs access to the machine to poke, let me
>Kind regards,
>Machine dmesg is as follows:
>Copyright (c) 1992-2004 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 5.2-CURRENT #3: Sat Jan 17 16:15:10 GMT 2004
>     pa at xenon.talbot.lan:/usr/src/sys/i386/compile/XENON
>Preloaded elf kernel "/boot/kernel/kernel" at 0xc087a000.
>Preloaded elf module "/boot/kernel/acpi.ko" at 0xc087a294.
>Timecounter "i8254" frequency 1193182 Hz quality 0
>CPU: AMD Athlon(tm) MP 2000+ (1666.74-MHz 686-class CPU)
>   Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
>   AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
>real memory  = 2146959360 (2047 MB)
>avail memory = 2095476736 (1998 MB)
>ACPI APIC Table: <PTLTD          APIC  >
>FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  1
>  cpu1 (AP): APIC ID:  0
>ioapic0 <Version 1.1> irqs 0-23 on motherboard
>Pentium Pro MTRR support enabled
>npx0: [FAST]
>npx0: <math processor> on motherboard
>npx0: INT 16 interface
>acpi0: <PTLTD   RSDT> on motherboard
>pcibios: BIOS version 2.10
>acpi0: Power Button (fixed)
>acpi0: Sleep Button (fixed)
>Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
>acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
>acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
>acpi_cpu1: <CPU> port 0x530-0x537 on acpi0
>acpi_button0: <Power Button> on acpi0
>pcib0: <ACPI Host-PCI bridge> port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff
>  0xd8000-0xdbfff on acpi0
>pci0: <ACPI PCI bus> on pcib0
>agp0: <AMD 762 host to AGP bridge> port 0x1010-0x1013 mem
>0xf4000000-0xf7ffffff at device 0.0 on pci0
>pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
>pci1: <ACPI PCI bus> on pcib1
>pci1: <display, VGA> at device 5.0 (no driver attached)
>isab0: <PCI-ISA bridge> at device 7.0 on pci0
>isa0: <ISA bus> on isab0
>atapci0: <AMD 768 UDMA100 controller> port 0xf000-0xf00f at device 7.1 on 
>ata0: at 0x1f0 irq 14 on atapci0
>ata0: [MPSAFE]
>ata1: at 0x170 irq 15 on atapci0
>ata1: [MPSAFE]
>pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
>pcib2: <PCI-PCI bridge> at device 9.0 on pci0
>pci2: <PCI bus> on pcib2
>asr0: <Adaptec Caching SCSI RAID> mem 0xf8000000-0xfbffffff irq 21 at 
>9.1 on pci0
>asr0: major=154
>asr0: ADAPTEC 2400A FW Rev. 370L, 4 channel, 256 CCBs, Protocol I2O
>pcib3: <ACPI PCI-PCI bridge> at device 16.0 on pci0
>pci3: <ACPI PCI bus> on pcib3
>pci3: <serial bus, USB> at device 0.0 (no driver attached)
>atapci1: <Promise PDC20268 UDMA100 controller> port
>0x2498-0x249f,0x2494-0x2497,0x24a0-0x24a7 mem 0xf1000000-0xf1003fff irq 16 
>device 4.0 on pci3
>atapci1: [MPSAFE]
>ata2: at 0x24a0 on atapci1
>ata2: [MPSAFE]
>ata3: at 0x2498 on atapci1
>ata3: [MPSAFE]
>ahc0: <Adaptec 2902/04/10/15/20C/30C SCSI adapter> port 0x2000-0x20ff mem
>5000-0xf1005fff irq 17 at device 5.0 on pci3
>ahc0: Host Adapter Bios disabled.  Using default SCSI device parameters
>aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs
>pcm0: <AudioPCI ES1370> port 0x2400-0x243f irq 18 at device 6.0 on pci3
>fxp0: <Intel 82550 Pro/100 Ethernet> port 0x2440-0x247f mem
>f,0xf1006000-0xf1006fff irq 19 at device 7.0 on pci3
>fxp0: Ethernet address 00:02:b3:b4:4c:bb
>miibus0: <MII bus> on fxp0
>inphy0: <i82555 10/100 media interface> on miibus0
>inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
>atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
>kbd0 at atkbd0
>sio0 port 0x3f8-0x3ff irq 4 on acpi0
>sio0: type 16550A
>sio1 port 0x2f8-0x2ff irq 3 on acpi0
>sio1: type 16550A
>ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
>ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
>ppc0: FIFO with 16/16/9 bytes threshold
>ppbus0: <Parallel port bus> on ppc0
>lpt0: <Printer> on ppbus0
>lpt0: Interrupt-driven port
>fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
>x3f5 irq 6 drq 2 on acpi0
>fdc0: FIFO enabled, 8 bytes threshold
>fd0: <1440-KB 3.5" drive> on fdc0 drive 0
>orm0: <Option ROMs> at iomem
>0000-0xc7fff on isa0
>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
>Timecounters tick every 10.000 msec
>acd0: DVDROM <Pioneer DVD-ROM ATAPIModel DVD-117 0107> at ata0-master 
>GEOM: create disk ad4 dp=0xc77be660
>ad4: 114473MB <WDC WD1200JB-00DUA3> [232581/16/63] at ata2-master UDMA100
>GEOM: create disk ad6 dp=0xc77be460
>ad6: 58644MB <IC35L060AVER07-0> [119150/16/63] at ata3-master UDMA100
>Waiting 5 seconds for SCSI devices to settle
>sa0 at ahc0 bus 0 target 4 lun 0
>sa0: <Quantum DLT4000 CPQ DRV D473> Removable Sequential Access SCSI-2 
>sa0: 10.000MB/s transfers (10.000MHz, offset 15)
>GEOM: create disk cd0 dp=0xc7448600
>GEOM: create disk da0 dp=0xc77e5450
>da0 at asr0 bus 0 target 0 lun 0
>da0: <ADAPTEC RAID-5 370L> Fixed Direct Access SCSI-2 device
>da0: Tagged Queueing Enabled
>da0: 343419MB (703322112 512 byte sectors: 255H 63S/T 43779C)
>SMP: AP CPU #1 Launched!
>cd0 at ahc0 bus 0 target 2 lun 0
>cd0: <YAMAHA CRW8824S 1.00> Removable CD-ROM SCSI-2 device
>cd0: 10.000MB/s transfers (10.000MHz, offset 15)
>cd0: Attempt to query device size failed: NOT READY, Medium not present - 
>Mounting root from ufs:/dev/ad4s1a
>Peter Wood <peter at> :: Tel +44 7974 799440
>freebsd-current at mailing list
>To unsubscribe, send any mail to "freebsd-current-unsubscribe at"

Learn how to choose, serve, and enjoy wine at Wine @ MSN.

More information about the freebsd-current mailing list