Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 11:16:25 +0200
From:      martin hudec <corwin@aeternal.net>
To:        freebsd-current@freebsd.org
Subject:   LOR during bootup on 6.0-BETA4
Message-ID:  <20050915091625.GB44389@pleiades.aeternal.net>

next in thread | raw e-mail | index | archive | help

--iFRdW5/EC4oqxDHL
Content-Type: multipart/mixed; boundary="KFztAG8eRSV9hGtP"
Content-Disposition: inline


--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

  I am getting lock order reversal during bootup on one of my servers
  after mounting from root:

  lock order reversal
   1st 0xc073b5e0 UMA lock (UMA lock) @ /usr/src/sys/vm/uma_core.c:1494
    2nd 0xc1060144 system map (system map) @
    /usr/src/sys/vm/vm_kern.c:295
    KDB: stack backtrace:
    kdb_backtrace(0,ffffffff,c06f0780,c06f08c0,c06b69e4) at
    kdb_backtrace+0x29
    witness_checkorder(c1060144,9,c069443e,127) at
    witness_checkorder+0x564
    _mtx_lock_flags(c1060144,0,c069443e,127) at _mtx_lock_flags+0x5b
    _vm_map_lock(c10600c0,c069443e,127) at _vm_map_lock+0x26
    kmem_malloc(c10600c0,1000,1,e6b4bba4,c05fcd59) at kmem_malloc+0x32
    page_alloc(c104a960,1000,e6b4bb97,1,c05118e4) at page_alloc+0x1a
    slab_zalloc(c104a960,1,0,c3ba2980,c104917c) at slab_zalloc+0xa1
    uma_zone_slab(c104a960,1,1,10,168f) at uma_zone_slab+0xe8
    uma_zalloc_bucket(c104a960,1) at uma_zalloc_bucket+0x12c
    uma_zalloc_arg(c104a960,0,1) at uma_zalloc_arg+0x2dc
    malloc(800,c06c9480,1,1a4,c1044460) at malloc+0xae
    hash_alloc(e6b4bc74,c1044468,0,c06936f7,1ab) at hash_alloc+0x29
    zone_timeout(c1042b40) at zone_timeout+0x7e
    zone_foreach(c05fc590,e6b4bce8,c04fb6df,0,c05fc55c) at
    zone_foreach+0x37
    uma_timeout(0) at uma_timeout+0x12
    softclock(0) at softclock+0x1e7
    ithread_loop(c3567480,e6b4bd38,c3567480,c04ddcc8,0) at
    ithread_loop+0x11c
    fork_exit(c04ddcc8,c3567480,e6b4bd38) at fork_exit+0xa0
    fork_trampoline() at fork_trampoline+0x8
    --- trap 0x1, eip =3D 0, esp =3D 0xe6b4bd6c, ebp =3D 0 ---

  If I could be of any assistance, let me know. I am attaching dmesg.

--=20
martin hudec


   * 421 907 303 393
   * corwin@aeternal.net
   * http://www.aeternal.net

"Nothing travels faster than the speed of light with the possible=20
exception of bad news, which obeys its own special laws."

   Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.plech.txt"
Content-Transfer-Encoding: quoted-printable

Copyright (c) 1992-2005 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.0-BETA4 #0: Tue Sep 13 21:23:27 CEST 2005
    hudec@plech.markiza.sk:/usr/obj/usr/src/sys/PLECH
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.40GHz (3400.14-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0xf41  Stepping =3D 1
  Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=3D0x649d<SSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,<b14>>
  AMD Features=3D0x20000000<LM>
  Hyperthreading: 2 logical CPUs
real memory  =3D 2147430400 (2047 MB)
avail memory =3D 2096496640 (1999 MB)
ACPI APIC Table: <HP     00000083>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
ioapic3 <Version 2.0> irqs 72-95 on motherboard
ioapic4 <Version 2.0> irqs 96-119 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <HP P51> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 5 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 5 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 5 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 5 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 0 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 5 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 5 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 5 on acpi0
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x908-0x90b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 0.0 on pci2
pci3: <ACPI PCI bus> on pcib2
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xfde=
f0000-0xfdefffff irq 25 at device 1.0 on pci3
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000b=
aseTX-FDX, auto
bge0: Ethernet address: 00:13:21:6b:8d:19
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xfde=
e0000-0xfdeeffff irq 26 at device 1.1 on pci3
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000b=
aseTX-FDX, auto
bge1: Ethernet address: 00:13:21:6b:8d:18
pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci2
pci4: <ACPI PCI bus> on pcib3
ciss0: <HP Smart Array 6i> port 0x4000-0x40ff mem 0xfdff0000-0xfdff1fff,0xf=
df80000-0xfdfbffff irq 51 at device 3.0 on pci4
ciss0: [GIANT-LOCKED]
pcib4: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci5: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 0.0 on pci5
pci6: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 0.2 on pci5
pci10: <ACPI PCI bus> on pcib6
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0x2000-0x201f irq 1=
6 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0x2020-0x203f irq 1=
9 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0x2040-0x205f irq 1=
8 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0x2060-0x207f irq 1=
6 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfbef0000-0xfbef03ff irq 23=
 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib7: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib7
pci1: <display, VGA> at device 3.0 (no driver attached)
pci1: <base peripheral> at device 4.0 (no driver attached)
pci1: <base peripheral> at device 4.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177=
,0x376,0x500-0x50f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
acpi_tz0: <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]
sio0: <Standard PC COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
fdc0: <floppy drive controller (FDE)> port 0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0x=
cd7ff,0xee000-0xeffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
acd0: CDROM <COMPAQ CD-ROM SN-124/N104> at ata0-master PIO4
da0 at ciss0 bus 0 target 0 lun 0
da0: <COMPAQ RAID 1  VOLUME OK> Fixed Direct Access SCSI-0 device=20
da0: 135.168MB/s transfers
da0: 34727MB (71122560 512 byte sectors: 255H 32S/T 8716C)
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
Trying to mount root from ufs:/dev/da0s1a
lock order reversal
 1st 0xc073b5e0 UMA lock (UMA lock) @ /usr/src/sys/vm/uma_core.c:1494
 2nd 0xc1060144 system map (system map) @ /usr/src/sys/vm/vm_kern.c:295
KDB: stack backtrace:
kdb_backtrace(0,ffffffff,c06f0780,c06f08c0,c06b69e4) at kdb_backtrace+0x29
witness_checkorder(c1060144,9,c069443e,127) at witness_checkorder+0x564
_mtx_lock_flags(c1060144,0,c069443e,127) at _mtx_lock_flags+0x5b
_vm_map_lock(c10600c0,c069443e,127) at _vm_map_lock+0x26
kmem_malloc(c10600c0,1000,1,e6b4bba4,c05fcd59) at kmem_malloc+0x32
page_alloc(c104a960,1000,e6b4bb97,1,c05118e4) at page_alloc+0x1a
slab_zalloc(c104a960,1,0,c3ba2980,c104917c) at slab_zalloc+0xa1
uma_zone_slab(c104a960,1,1,10,168f) at uma_zone_slab+0xe8
uma_zalloc_bucket(c104a960,1) at uma_zalloc_bucket+0x12c
uma_zalloc_arg(c104a960,0,1) at uma_zalloc_arg+0x2dc
malloc(800,c06c9480,1,1a4,c1044460) at malloc+0xae
hash_alloc(e6b4bc74,c1044468,0,c06936f7,1ab) at hash_alloc+0x29
zone_timeout(c1042b40) at zone_timeout+0x7e
zone_foreach(c05fc590,e6b4bce8,c04fb6df,0,c05fc55c) at zone_foreach+0x37
uma_timeout(0) at uma_timeout+0x12
softclock(0) at softclock+0x1e7
ithread_loop(c3567480,e6b4bd38,c3567480,c04ddcc8,0) at ithread_loop+0x11c
fork_exit(c04ddcc8,c3567480,e6b4bd38) at fork_exit+0xa0
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip =3D 0, esp =3D 0xe6b4bd6c, ebp =3D 0 ---

--KFztAG8eRSV9hGtP--

--iFRdW5/EC4oqxDHL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDKTvpZYEZIv+rgggRAkP/AJ47euxzHAYZF1Juo7DFmShycES1bQCcCL9m
3MtZAtnXQ4pb4v6jpFUdIkA=
=8+Oc
-----END PGP SIGNATURE-----

--iFRdW5/EC4oqxDHL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050915091625.GB44389>