Subject: kern/20221: kernel hangs when starting syslogd
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@aprisoft.de>
List: netbsd-bugs
Date: 02/06/2003 11:20:22
>Number:         20221
>Category:       kern
>Synopsis:       kernel hangs when starting syslogd
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 06 02:21:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.6N
>Organization:
>Environment:

System: NetBSD 1.6N (BEASTY) #0: Thu Feb  6 10:45:46 CET 2003 martin@beasty.aprisoft.de:/usr/src/sys/arch/i386/compile/BEASTY
Architecture: i386
Machine: i386
>Description:
My i386 SMP machine hangs (deadlock?) reproducably with a -current kernel
as soon as syslogd starts. It does not answer pings.

A kernel from Jan 29 works fine.

Console log:

Adding interface aliases:
Building databases...
wsdisplay0: screen 0 added (80x25, vt100 emulation)
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsconscfg: WSMUX_ADD_DEVICE: Device not configured
Starting syslogd.

At this point it hangs. Breaking into ddb:

Stopped at      cpu_Debugger+0x4:       leave
db{0}> tr
cpu_Debugger(c08de8a0,6,d,c025cb89,0) at cpu_Debugger+0x4
comintr(c08ecc00,6,c02d0010,c08d0030,10) at comintr+0x114
Xintr_ioapic4() at Xintr_ioapic4+0x9c
--- interrupt ---
bdirty(c5a2bae8,d3d8e000,0,c01a4d6b,c5a2bae8) at bdirty+0x5f
handle_written_inodeblock(d3d6e498,c5a2bae8,c08d80d8,c01a5197,c5a2bae8) at handl
e_written_inodeblock+0x2c9
softdep_disk_write_complete(c5a2bae8,c5a2bae8,c08d80d8,c08de8a0,c08d9000) at sof
tdep_disk_write_complete+0xba
biodone(c5a2bae8,2000,0,c021c0f4,c08e7000) at biodone+0x7a
wddone(c08d9000,c02bfba0,0,c01d9ce4,c08d90d8) at wddone+0x1f2
wdc_ata_bio_done(c08d80d8,c08e7000,0,0,c08d80d8) at wdc_ata_bio_done+0x95
wdc_ata_bio_intr(c08d80d8,c08e7000,1,0,c08deae0) at wdc_ata_bio_intr+0x3e4
wdcintr(c08d80d8,c02dc8c0,400042,0,0) at wdcintr+0xdc
pciide_compat_intr(c08d80d8,0,d2f70010,d2f70030,c01b0010) at pciide_compat_intr+
0x11
Xintr_ioapic14() at Xintr_ioapic14+0x9c
--- interrupt ---
mpidle:
db{0}> mach cpu 1
using cpu 1
db{0}> tr
lockmgr(c02dc8c0,400002,0,c01b46c5,0) at lockmgr+0x62e
_kernel_proc_lock(d37ea580,d3824f80,c,c0227631,9) at _kernel_proc_lock+0x1e
syscall_plain(806001f,806001f,bfbf001f,1f,bfbff5e0) at syscall_plain+0xaf
db{0}> 


Complete dmesg, for reference:


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6N (BEASTY) #0: Thu Feb  6 10:45:46 CET 2003
    martin@beasty.aprisoft.de:/usr/src/sys/arch/i386/compile/BEASTY
total memory = 255 MB
avail memory = 234 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfb2e0
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium II (686-class), 400.93 MHz, id 0x652
cpu0: features 183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 183fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 183fbff<FXSR>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 512 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 100 MHz
cpu0: 32 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium II (686-class), 400.91 MHz, id 0x653
cpu1: features 183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 183fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu1: features 183fbff<FXSR>
cpu1: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu1: L2 cache 512 KB 32b/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0
acpi0: X/RSDT: OemId <Soltek,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0C0C at acpi0 not configured
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
PNP0C04 at acpi0 not configured
PNP0700 at acpi0 not configured
PNP0501 at acpi0 not configured
PNP0501 at acpi0 not configured
PNP0400 at acpi0 not configured
PNP0F13 at acpi0 not configured
PNP0303 at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C0B at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7190 (rev. 0x03)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x121a product 0x0003 (rev. 0x03)
wsdisplay0 at vga0 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DTTA-351010>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9671 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19807200 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd1 at pciide0 channel 0 drive 1: <WDC WD205AA>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19569 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40079088 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <LG CD-RW CED-8080B, 2000/10/12, 1.01> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at apic 2 int 19 (irq 5)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
emuxki0 at pci0 dev 9 function 0: vendor 0x1102 product 0x0002 (audio multimedia, revision 0x05)
emuxki0: interrupting at apic 2 int 17 (irq 9)
emuxki0: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at emuxki0: full duplex, mmap, independent
vendor 0x1102 product 0x7002 (miscellaneous input, revision 0x05) at pci0 dev 9 function 1 not configured
tlp0 at pci0 dev 12 function 0: DECchip 21140A Ethernet, pass 2.2
tlp0: interrupting at apic 2 int 16 (irq 11)
tlp0: Ethernet address 00:e0:29:09:af:05
nsphy0 at tlp0 phy 3: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
wskbd0: connecting to wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
boot device: wd0
root on wd0a dumps on wd0b
cpu1: CPU 1 running


>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: