exclusive sleep mutex ... /usr/src/sys/kern/kern_synch.c:293

From: Cosmin Stroe <cosmin_at_hehipc.phy.uic.edu>
Date: Fri, 14 Nov 2003 20:15:24 -0600
Hello,

I'm getting the following messages on my console with a compile from today's (Nov 14, 2003) sources:

Nov 14 19:38:26  syslogd: /var/log/debug.log: No such file or directory
Nov 14 19:38:26 cosmin syslogd: kernel boot file is /boot/kernel/kernel
checking stopevent 2 with the following non-sleepable locks held:
exclusive sleep mutex sigacts r = 0 (0xc1cb8aa8) locked _at_ /usr/src/sys/kern/kern_synch.c:293
Debugger("witness_warn")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c0675228,c93f4b88,1,c93f4b84,0) at Debugger+0x54
witness_warn(5,c1c0fcc8,c068d494,2,c06f37a0) at witness_warn+0x19f
issignal(c1bb8dc0,2,c068fc5b,bd,c1c0fcc8) at issignal+0x16b
cursig(c1bb8dc0,0,c0690152,125,1) at cursig+0xe8
msleep(c1c0fc5c,c1c0fcc8,15c,c068fb80,0) at msleep+0x631
wait1(c1bb8dc0,c93f4d10,0,c93f4d40,c065bca0) at wait1+0x990
wait4(c1bb8dc0,c93f4d10,c06a868e,3ee,4) at wait4+0x20
syscall(2f,2f,2f,bfbfeec0,bfbfeec0) at syscall+0x2e0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (7, FreeBSD ELF32, wait4), eip = 0x280d0b1f, esp = 0xbfbfe84c, ebp = 0xbfbfe868 ---
db> 


Also, if I don't have debug.witness_ddb=1, I get the following messages:

checking stopevent 2 with the following non-sleepable locks held:
exclusive sleep mutex sigacts r = 0 (0xc1cbdaa8) locked _at_ /usr/src/sys/kern/kern_synch.c:293
checking stopevent 2 with the following non-sleepable locks held:
exclusive sleep mutex sigacts r = 0 (0xc1cbdaa8) locked _at_ /usr/src/sys/kern/subr_trap.c:260
checking stopevent 2 with the following non-sleepable locks held:
exclusive sleep mutex sigacts r = 0 (0xc1cbdaa8) locked _at_ /usr/src/sys/kern/subr_trap.c:260

I will also try to buildworld and installworld using the same sources, maybe that will fix it.
If you need more information please ask.

Here is the full dmesg:

Copyright (c) 1992-2003 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.1-CURRENT #10: Fri Nov 14 18:35:12 CST 2003
    root_at_cosmin.phy.uic.edu:/usr/obj/usr/src/sys/GALAXY
Preloaded elf kernel "/boot/kernel/kernel" at 0xc07cf000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Processor (1100.05-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 134217728 (128 MB)
avail memory = 125054976 (119 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdc90
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci_cfgintr: 0:8 INTA BIOS irq 10
pci_cfgintr: 0:9 INTA BIOS irq 7
pci_cfgintr: 0:9 INTB BIOS irq 11
pci_cfgintr: 0:9 INTC BIOS irq 5
pci_cfgintr: 0:10 INTA BIOS irq 11
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci_cfgintr: 0:1 INTA routed to irq 10
pcib1: slot 0 INTA is routed to irq 10
CPU: AMD Athlon(tm) Processor (1100.05-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 134217728 (128 MB)
avail memory = 125054976 (119 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdc90
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci_cfgintr: 0:8 INTA BIOS irq 10
pci_cfgintr: 0:9 INTA BIOS irq 7
pci_cfgintr: 0:9 INTB BIOS irq 11
pci_cfgintr: 0:9 INTC BIOS irq 5
pci_cfgintr: 0:10 INTA BIOS irq 11
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci_cfgintr: 0:1 INTA routed to irq 10
pcib1: slot 0 INTA is routed to irq 10
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686A UDMA66 controller> port 0xc000-0xc00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
nge0: <National Semiconductor Gigabit Ethernet> port 0xcc00-0xccff mem 0xdc005000-0xdc005fff irq 10 at device 8.0 on pci0
nge0: Ethernet address: 00:50:ba:39:06:d6
miibus0: <MII bus> on nge0
nsgphy0: <DP83861 10/100/1000 media interface> on miibus0
nsgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 7 at device 9.0 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 11 at device 9.1 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
pci0: <serial bus, USB> at device 9.2 (no driver attached)
atapci1: <Promise PDC20269 UDMA133 controller> port 0xe800-0xe80f,0xe400-0xe403,0xe000-0xe007,0xdc00-0xdc03,0xd800-0xd807 mem 0xdc000000-0xdc003fff irq 11 at device 10.0 on pci0
atapci1: [MPSAFE]
ata2: at 0xd800 on atapci1
ata2: [MPSAFE]
ata3: at 0xe000 on atapci1
ata3: [MPSAFE]
orm0: <Option ROMs> at iomem 0xc8000-0xca7ff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: failed to get data.
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
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
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounter "TSC" frequency 1100046119 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to acc
ept, logging disabled
GEOM: create disk ad0 dp=0xc1c53c60
ad0: 19092MB <WDC WD200BB-32CFC0> [38792/16/63] at ata0-master UDMA66
acd0: DVDROM <DVD-ROM DDU1621> at ata1-slave PIO4
GEOM: create disk ad4 dp=0xc1c53a60
ad4: 29196MB <SAMSUNG SV3064D> [59320/16/63] at ata2-master UDMA66
Mounting root from ufs:/dev/ad0s1a
Loading configuration files.
00400 reject tcp from any to any dst-port 161 via sis0
Entropy harvesting: interrupts ethernet point_to_point.
kernel dumps on /dev/ad0s1b
swapon: adding /dev/ad0s1b as swap device
Starting file system checks:
/dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 9028 free (372 frags, 1082 blocks, 0.6% fragmentation)
/dev/ad0s1e: DEFER FOR BACKGROUND CHECKING
/dev/ad0s1d: DEFER FOR BACKGROUND CHECKING
/dev/ad4s1: DEFER FOR BACKGROUND CHECKING
/dev/ad0s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1f: clean, 1965768 free (79008 frags, 23584W5 blocks, 0.9% fAragmentation)
RNING: /tmp was not properly dismounted
WARNING: /var was not properly dismounted
/var: superblock summary recomputed
WARNING: /mnt/ftp was not properly dismounted
debug.witness_ddb: 0 -> 1
Setting hostname: cosmin.phy.uic.edu.
nge0: gigabit link up
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xffffff00 
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
nge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=13<RXCSUM,TXCSUM,VLAN_HWTAGGING>
        inet 131.193.192.26 netmask 0xffffff00 broadcast 131.193.192.255
        inet6 fe80::250:baff:fe39:6d6%nge0 prefixlen 64 tentative scopeid 0x1 
        ether 00:50:ba:39:06:d6
        media: Ethernet autoselect (none)
        status: no carrier
00400 reject tcp from any to any dst-port 161 via sis0
db> panic
panic: from debugger

syncing disks, buffers remaining... 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 453 
giving up on 409 buffers
Uptime: 7s
Dumping 128 MB
 16 32 48 64 80 96 112
Dump complete
Flushed all rules.
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
Firewall rules loaded, starting divert daemons:.
net.inet.ip.fw.enable: 1 -> 1
add net default: gateway 131.193.192.1
Additional routing options:.
hw.bus.devctl_disable: 0 -> 1
Mounting NFS file systems:.
Starting syslogd.
Nov 14 19:38:26  syslogd: /var/log/debug.log: No such file or directory
Nov 14 19:38:26 cosmin syslogd: kernel boot file is /boot/kernel/kernel
checking stopevent 2 with the following non-sleepable locks held:
exclusive sleep mutex sigacts r = 0 (0xc1cb8aa8) locked _at_ /usr/src/sys/kern/kern_synch.c:293
Debugger("witness_warn")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c0675228,c93f4b88,1,c93f4b84,0) at Debugger+0x54
witness_warn(5,c1c0fcc8,c068d494,2,c06f37a0) at witness_warn+0x19f
issignal(c1bb8dc0,2,c068fc5b,bd,c1c0fcc8) at issignal+0x16b
cursig(c1bb8dc0,0,c0690152,125,1) at cursig+0xe8
msleep(c1c0fc5c,c1c0fcc8,15c,c068fb80,0) at msleep+0x631
wait1(c1bb8dc0,c93f4d10,0,c93f4d40,c065bca0) at wait1+0x990
wait4(c1bb8dc0,c93f4d10,c06a868e,3ee,4) at wait4+0x20
syscall(2f,2f,2f,bfbfeec0,bfbfeec0) at syscall+0x2e0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (7, FreeBSD ELF32, wait4), eip = 0x280d0b1f, esp = 0xbfbfe84c, ebp = 0xbfbfe868 ---
db> 



Cosmin Stroe
Received on Fri Nov 14 2003 - 17:15:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:29 UTC