Subject: kern/12404: panic: ffs_alloccg: map corrupted
To: None <gnats-bugs@gnats.netbsd.org>
From: None <he@runit.no>
List: netbsd-bugs
Date: 03/13/2001 20:44:36
>Number: 12404
>Category: kern
>Synopsis: panic: ffs_alloccg: map corrupted
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 13 11:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Havard Eidnes
>Release: NetBSD-current Mar 10 20:14 UTC 2001
>Organization:
RUNIT AS
>Environment:
NetBSD/i386
System:
NetBSD pt.runit.no 1.5S NetBSD 1.5S (PT) #13: Sat Mar 10 23:07:47 CET 2001 he@pt.runit.no:/usr/src/sys/arch/i386/compile/PT i386
>Description:
Found my machine crashed in the middle of "make build":
db> trace
cpu_Debugger(0,1a7,c27db000,c39e79a4,c0177d8c) at cpu_Debugger+0x4
panic(c01e3c2e,c01e3c1f,200,200,d30) at panic+0x64
ffs_mapsearch(c037e000,c27db000,d30,8,2000) at ffs_mapsearch+0x238
ffs_alloccgblk(c38c42ac,c1b39cd0,d30,1d,2000) at ffs_alloccgblk+0x4e6
ffs_alloccg(c38c42ac,1d,39eb0,2000,c037e000) at ffs_alloccg+0x132
ffs_hashalloc(c38c42ac,1d,39eb0,2000,c0175248) at ffs_hashalloc+0x23
ffs_alloc(c38c42ac,1,39eb0,2000,c039ce80) at ffs_alloc+0x108
ffs_balloc(c39e7c0c,34,c39e7ca8,0,c01dea00) at ffs_balloc+0x5cf
VOP_BALLOC(c3949050,2000,0,34,c039ce80) at VOP_BALLOC+0x4c
ffs_ballocn(c39e7ca8,c39490f8,2000,c3949050,c01dea40) at ffs_ballocn+0x9b
VOP_BALLOCN(c3949050,2000,0,34,0) at VOP_BALLOCN+0x4c
ufs_balloc_range(c3949050,2000,0,34,0) at ufs_balloc_range+0x368
ffs_write(c39e7e80,c3965aa0,2000,c3965aa0,c39e7e84) at ffs_write+0x200
layer_bypass(c39e7e80,1,c01de2e0,c3949050,c39e7f0c) at layer_bypass+0xe3
VOP_WRITE(c3965aa0,c39e7f0c,1,c039ce80,c3965aa0) at VOP_WRITE+0x38
vn_write(c38b4cf0,c38b4d0c,c39e7f0c,c039ce80,1) at vn_write+0x9e
dofilewrite(c38beca4,3,c38b4cf0,81b5000,2000) at dofilewrite+0x94
sys_write(c38beca4,c39e7f88,c39e7f80) at sys_write+0x67
syscall_plain(1f,1f,81b5000,4817d840,bfbfd07c) at syscall_plain+0x98
db> x/s 0xc01e3c2e
tcp_ctlvars+0xb2e: ffs_alloccg: map corrupted
db>
At boot-up the following minor inconsistencies were fixed:
swapctl: adding /dev/wd0b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/rwd0a: 1260 files, 25795 used, 26292 free (284 frags, 3251 blocks, 0.5% fragmentation)
/dev/rwd0a: MARKING FILE SYSTEM CLEAN
/dev/rwd0e: 329 files, 4488 used, 53991 free (87 frags, 6738 blocks, 0.1% fragmentation)
/dev/rwd0e: MARKING FILE SYSTEM CLEAN
/dev/rwd0f: UNREF FILE I=126 OWNER=root MODE=100444
/dev/rwd0f: SIZE=10499 MTIME=Mar 6 04:42 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=181 OWNER=root MODE=100444
/dev/rwd0f: SIZE=13424 MTIME=Mar 6 12:37 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=193 OWNER=root MODE=100444
/dev/rwd0f: SIZE=70092 MTIME=Mar 6 12:43 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=225 OWNER=root MODE=100444
/dev/rwd0f: SIZE=23943 MTIME=Mar 6 05:42 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=237 OWNER=root MODE=100444
/dev/rwd0f: SIZE=33597 MTIME=Mar 6 05:48 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=243 OWNER=root MODE=100444
/dev/rwd0f: SIZE=123083 MTIME=Mar 6 10:39 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=247 OWNER=root MODE=100444
/dev/rwd0f: SIZE=201660 MTIME=Mar 6 11:21 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=281 OWNER=root MODE=100444
/dev/rwd0f: SIZE=43426 MTIME=Mar 6 10:10 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=291 OWNER=root MODE=100444
/dev/rwd0f: SIZE=26379 MTIME=Mar 6 05:50 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=298 OWNER=root MODE=100444
/dev/rwd0f: SIZE=84740 MTIME=Mar 6 12:31 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=310 OWNER=root MODE=100444
/dev/rwd0f: SIZE=9561 MTIME=Mar 6 05:43 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=316 OWNER=root MODE=100444
/dev/rwd0f: SIZE=52698 MTIME=Mar 6 05:56 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=400 OWNER=root MODE=100444
/dev/rwd0f: SIZE=5310 MTIME=Mar 6 10:10 2001 (CLEARED)
/dev/rwd0f: UNREF FILE I=452 OWNER=root MODE=100444
/dev/rwd0f: SIZE=795757 MTIME=Mar 6 09:30 2001 (CLEARED)
/dev/rwd0f: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rwd0f: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rwd0f: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rwd0f: 13100 files, 227780 used, 88475 free (7627 frags, 10106 blocks, 2.4% fragmentation)
/dev/rwd0f: MARKING FILE SYSTEM CLEAN
/dev/rwd1a: UNREF FILE I=115360 OWNER=root MODE=100644
/dev/rwd1a: SIZE=5448 MTIME=Mar 12 14:56 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115465 OWNER=root MODE=100644
/dev/rwd1a: SIZE=11424 MTIME=Mar 12 14:56 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115473 OWNER=root MODE=100644
/dev/rwd1a: SIZE=7500 MTIME=Mar 12 14:56 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115477 OWNER=root MODE=100644
/dev/rwd1a: SIZE=23580 MTIME=Mar 12 14:57 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115514 OWNER=root MODE=100644
/dev/rwd1a: SIZE=105012 MTIME=Mar 12 15:00 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115516 OWNER=root MODE=100644
/dev/rwd1a: SIZE=10974 MTIME=Mar 6 22:47 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115518 OWNER=root MODE=100644
/dev/rwd1a: SIZE=5388 MTIME=Mar 6 22:47 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115520 OWNER=root MODE=100644
/dev/rwd1a: SIZE=7152 MTIME=Mar 6 22:47 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115522 OWNER=root MODE=100644
/dev/rwd1a: SIZE=23412 MTIME=Mar 6 22:48 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115564 OWNER=root MODE=100644
/dev/rwd1a: SIZE=101943 MTIME=Mar 6 22:50 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115697 OWNER=root MODE=100644
/dev/rwd1a: SIZE=83784 MTIME=Mar 12 15:02 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115699 OWNER=root MODE=100644
/dev/rwd1a: SIZE=23208 MTIME=Mar 12 15:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115701 OWNER=root MODE=100644
/dev/rwd1a: SIZE=24660 MTIME=Mar 12 15:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115703 OWNER=root MODE=100644
/dev/rwd1a: SIZE=1116 MTIME=Mar 12 15:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115709 OWNER=root MODE=100644
/dev/rwd1a: SIZE=26732 MTIME=Mar 12 15:04 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115713 OWNER=root MODE=100644
/dev/rwd1a: SIZE=19368 MTIME=Mar 12 15:04 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115717 OWNER=root MODE=100644
/dev/rwd1a: SIZE=11492 MTIME=Mar 12 15:04 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115719 OWNER=root MODE=100644
/dev/rwd1a: SIZE=37664 MTIME=Mar 12 15:05 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115725 OWNER=root MODE=100644
/dev/rwd1a: SIZE=102872 MTIME=Mar 12 15:08 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115728 OWNER=root MODE=100644
/dev/rwd1a: SIZE=28040 MTIME=Mar 12 15:08 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115730 OWNER=root MODE=100644
/dev/rwd1a: SIZE=31084 MTIME=Mar 12 15:09 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115733 OWNER=root MODE=100644
/dev/rwd1a: SIZE=51852 MTIME=Mar 12 15:11 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115736 OWNER=root MODE=100644
/dev/rwd1a: SIZE=48676 MTIME=Mar 12 15:12 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115738 OWNER=root MODE=100644
/dev/rwd1a: SIZE=40868 MTIME=Mar 12 15:12 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115742 OWNER=root MODE=100644
/dev/rwd1a: SIZE=4496 MTIME=Mar 12 15:13 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115744 OWNER=root MODE=100644
/dev/rwd1a: SIZE=1272 MTIME=Mar 12 15:13 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115746 OWNER=root MODE=100644
/dev/rwd1a: SIZE=80996 MTIME=Mar 6 22:52 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115747 OWNER=root MODE=100644
/dev/rwd1a: SIZE=17268 MTIME=Mar 12 15:13 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115752 OWNER=root MODE=100644
/dev/rwd1a: SIZE=55524 MTIME=Mar 12 15:14 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115757 OWNER=root MODE=100644
/dev/rwd1a: SIZE=21998 MTIME=Mar 6 22:53 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115761 OWNER=root MODE=100644
/dev/rwd1a: SIZE=23828 MTIME=Mar 6 22:53 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115763 OWNER=root MODE=100644
/dev/rwd1a: SIZE=1119 MTIME=Mar 6 22:53 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115765 OWNER=root MODE=100644
/dev/rwd1a: SIZE=26263 MTIME=Mar 6 22:54 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115770 OWNER=root MODE=100644
/dev/rwd1a: SIZE=18384 MTIME=Mar 6 22:54 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115782 OWNER=root MODE=100644
/dev/rwd1a: SIZE=11415 MTIME=Mar 6 22:54 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115786 OWNER=root MODE=100644
/dev/rwd1a: SIZE=36971 MTIME=Mar 6 22:55 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115794 OWNER=root MODE=100644
/dev/rwd1a: SIZE=100991 MTIME=Mar 6 22:58 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115800 OWNER=root MODE=100644
/dev/rwd1a: SIZE=26893 MTIME=Mar 6 22:58 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115812 OWNER=root MODE=100644
/dev/rwd1a: SIZE=30094 MTIME=Mar 6 22:59 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115817 OWNER=root MODE=100644
/dev/rwd1a: SIZE=50809 MTIME=Mar 6 23:01 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115821 OWNER=root MODE=100644
/dev/rwd1a: SIZE=47457 MTIME=Mar 6 23:02 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115825 OWNER=root MODE=100644
/dev/rwd1a: SIZE=36061 MTIME=Mar 6 23:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115826 OWNER=root MODE=100644
/dev/rwd1a: SIZE=7884 MTIME=Mar 12 15:14 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115829 OWNER=root MODE=100644
/dev/rwd1a: SIZE=51276 MTIME=Mar 12 15:15 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115831 OWNER=root MODE=100644
/dev/rwd1a: SIZE=4469 MTIME=Mar 6 23:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115835 OWNER=root MODE=100644
/dev/rwd1a: SIZE=1220 MTIME=Mar 6 23:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115837 OWNER=root MODE=100644
/dev/rwd1a: SIZE=15986 MTIME=Mar 6 23:03 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115840 OWNER=root MODE=100644
/dev/rwd1a: SIZE=55066 MTIME=Mar 6 23:04 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115843 OWNER=root MODE=100644
/dev/rwd1a: SIZE=10096 MTIME=Mar 12 15:15 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115844 OWNER=root MODE=100644
/dev/rwd1a: SIZE=7840 MTIME=Mar 6 23:04 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115847 OWNER=root MODE=100644
/dev/rwd1a: SIZE=5460 MTIME=Mar 12 15:15 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115849 OWNER=root MODE=100644
/dev/rwd1a: SIZE=51266 MTIME=Mar 6 23:05 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115858 OWNER=root MODE=100644
/dev/rwd1a: SIZE=10063 MTIME=Mar 6 23:05 2001 (CLEARED)
/dev/rwd1a: UNREF FILE I=115862 OWNER=root MODE=100644
/dev/rwd1a: SIZE=5463 MTIME=Mar 6 23:05 2001 (CLEARED)
/dev/rwd1a: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rwd1a: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rwd1a: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rwd1a: 107551 files, 1094807 used, 116430 free (34254 frags, 10272 blocks, 2.8% fragmentation)
/dev/rwd1a: MARKING FILE SYSTEM CLEAN
>How-To-Repeat:
I'm presently not certain how repeatable this is.
I'll restart the build, to see if the problem resurfaces.
Boot log and file systems:
NetBSD 1.5S (PT) #13: Sat Mar 10 23:07:47 CET 2001
he@pt.runit.no:/usr/src/sys/arch/i386/compile/PT
cpu0: Intel 486DX (486-class)
total memory = 16000 KB
avail memory = 13244 KB
using 225 buffers containing 900 KB of memory
mainbus0 (root)
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <QUANTUM FIREBALL540A>
wd0: drive supports 8-sector PIO transfers, LBA addressing
wd0: 519 MB, 1056 cyl, 16 head, 63 sec, 512 bytes/sect x 1064448 sectors
wd0: drive supports PIO mode 4, DMA mode 2
wd1 at wdc0 channel 0 drive 1: <ST51270A>
wd1: drive supports 32-sector PIO transfers, LBA addressing
wd1: 1223 MB, 2485 cyl, 16 head, 63 sec, 512 bytes/sect x 2504880 sectors
wd1: drive supports PIO mode 4, DMA mode 2
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0
joy0 at isa0 port 0x201
joy0: joystick not connected
lpt0 at isa0 port 0x378-0x37b irq 7
we0 at isa0 port 0x280-0x29f iomem 0xd0000-0xd3fff irq 9
we0: SMC8216/SMC8216C Ethernet (16-bit)
we0: Ethernet address 00:00:c0:cb:c7:6f
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
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
biomask fd65 netmask ff65 ttymask ffe7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
wskbd0: connecting to wsdisplay0
pckbc: cmd failed
pt# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 52087 25795 23687 52% /
/dev/wd0e 58479 9749 45806 17% /var
/dev/wd0f 316255 227780 72662 75% /usr
mfs:97 24151 116 22827 0% /tmp
/dev/wd1a 1211237 1097545 53130 95% /local
kernfs 1 1 0 100% /kern
/local/nb/src 1211237 1097545 53130 95% /usr/src
/local/nb/obj 1211237 1097545 53130 95% /usr/obj
pt# cat /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0b /tmp mfs rw,-s=50000,nosuid,nodev 0 0
/dev/wd0e /var ffs rw 1 2
/dev/wd0f /usr ffs rw 1 3
/dev/wd1a /local ffs rw 1 3
/kern /kern kernfs rw
/local/nb/src /usr/src null rw 0 0
/local/nb/obj /usr/obj null rw 0 0
pt#
>Fix:
Don't know.
Kernel core dump saved; kernel rebuilt with full debugging
information, so groveling in the remains is possble.
>Release-Note:
>Audit-Trail:
>Unformatted: