Subject: kern/15048: panic: lockmgr: no context (1.5.2)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mkb@mukappabeta.de>
List: netbsd-bugs
Date: 12/25/2001 03:32:19
>Number:         15048
>Category:       kern
>Synopsis:       panic: lockmgr: no context (1.5.2)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 24 18:34:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Buelow
>Release:        NetBSD 1.5.2
>Organization:
mkb@mukappabeta.de
>Environment:
	
System: NetBSD altair.mukappabeta.net 1.5.2 NetBSD 1.5.2 (ALTAIR) #2: Fri Dec 7 01:42:35 CET 2001 root@altair.mukappabeta.net:/usr/src/sys/arch/i386/compile/ALTAIR i386

>Description:

This is a problem that appears often with 1.5.2 (never saw it
on 1.5) but I cannot reproduce it on purpose.  It usually occurs
when heavy disk-i/o is going on but I also had it when the disks
were relatively idle (seems like disk i/o only increases the
likelihood that the bug hits but is not the direct cause for it
but don't nail me on that.)  It's plain SCSI-only, softdeps is
disabled because of other bugs in that code.  Here's a trace:


panic: lockmgr: no context
Begin traceback...
lockmgr(c02bf464,10012,c02bf4e8) at lockmgr+0x71
uvm_map(c02bf460,d21d9c38,1000,c02bf400,ffffffff) at uvm_map+0x79
uvm_km_valloc(c02bf460,1000,c02b5000,c0837d00,c08a5b00) at uvm_km_valloc+0x4a
_bus_dmamem_map(c02b5000,d21d9cac,1,1000,c0837d0c) at _bus_dmamem_map+0x2e
siop_morecbd(c07a8c00) at siop_morecbd+0xf9
siop_scsicmd(c07c92e4) at siop_scsicmd+0x52
scsipi_execute_xs(c07c92e4,0,1009,c07a6200,d21d9d64) at scsipi_execute_xs+0x36
scsi_scsipi_cmd(c07a6200,d21d9db8,a,cac22000,2000) at scsi_scsipi_cmd+0xeb
scsipi_command(c07a6200,d21d9db8,a,cac22000,2000) at scsipi_command+0x59
sdstart(c07c3400,d000e764,c4d2fd5c,d21d9df8,c0229b07) at sdstart+0x1ea
scsipi_free_xs(c07c92e4,1) at scsipi_free_xs+0x8b
scsipi_done(c07c92e4,c07a8c00,8,1,1009) at scsipi_done+0x123
siop_scsicmd_end(c07c4a80,c07b1fe0,d21ca4bc,d21ca4bc,c07a8c00) at siop_scsicmd_end+0x35d
siop_intr(c07a8c00) at siop_intr+0x13f4
Xintr15() at Xintr15+0x7c
--- interrupt ---
idle(d21ca4bc) at idle+0x1c
bpendtsleep(c02d6140,28,c02774e6,0,0) at bpendtsleep
sched_sync(d21ca4bc) at sched_sync+0x203
End traceback...
syncing disks... 268 268 268 268 268 268 268 268 268 268 268 268 268 268 268 268 268 268 268 


Here's the dmesg output (it happened on different hardware also, though):


NetBSD 1.5.2 (ALTAIR) #2: Fri Dec  7 01:42:35 CET 2001
    root@altair.mukappabeta.net:/usr/src/sys/arch/i386/compile/ALTAIR
cpu0: AMD Duron (686-class), 796.64 MHz
total memory = 255 MB
avail memory = 234 MB
using 3297 buffers containing 13188 KB of memory
BIOS32 rev. 0 found at 0xfdae0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System product 0x0735 (rev. 0x01)
ppb0 at pci0 dev 1 function 0: Silicon Integrated System 86C201 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: memory space enabled
pcib0 at pci0 dev 2 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x00)
pciide0 at pci0 dev 2 function 5: Silicon Integrated System 5597/5598 IDE contro
ller (rev. 0xd0)
pciide0: device disabled (at device)
Silicon Integrated System product 0x7012 (audio multimedia, revision 0xa0) at pc
i0 dev 2 function 7 not configured
siop0 at pci0 dev 9 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at irq 15
scsibus0 at siop0: 16 targets, 8 luns per target
fxp0 at pci0 dev 11 function 0: Intel i82557 Ethernet, rev 8
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:d0:b7:3b:5f:cb, 10/100 Mb/s
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 13 function 0: Matrox MGA Mystique 1064SG (rev. 0x03)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
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: console keyboard, using 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
biomask e765 netmask ef65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
siop0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <IBM, DDRS-34560W, S97B> SCSI2 0/direct fixed
siop0: target 0 using 16bit transfers
siop0: target 0 now synchronous at 20.0Mhz, offset 15
sd0: 4357 MB, 8387 cyl, 5 head, 212 sec, 512 bytes/sect x 8925000 sectors
siop0: target 1 using tagged queuing
sd1 at scsibus0 target 1 lun 0: <IBM, DCAS-34330W, S61A> SCSI2 0/direct fixed
siop0: target 1 using 16bit transfers
siop0: target 1 now synchronous at 20.0Mhz, offset 15
sd1: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
siop0: target 2 using tagged queuing
sd2 at scsibus0 target 2 lun 0: <IBM, DNES-309170W, SA30> SCSI3 0/direct fixed
siop0: target 2 using 16bit transfers
siop0: target 2 now synchronous at 20.0Mhz, offset 16
sd2: 8748 MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sect x 17916240 sectors
cd0 at scsibus0 target 4 lun 0: <HP, CD-Writer+ 9200, 1.0c> SCSI4 5/cdrom remova
ble
siop0: target 4 now synchronous at 10.0Mhz, offset 15
st0 at scsibus0 target 5 lun 0: <HP, HP35480A, T503> SCSI2 1/sequential removabl
e
st0: siop0: target 5 now synchronous at 5.0Mhz, offset 8
drive empty
WARNING: old BSD partition ID!
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
WARNING: old BSD partition ID!
IP Filter: v3.4.9 initialized.  Default = pass all, Logging = enabled
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)
wsmux1: connecting to wsdisplay0

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: