Subject: panic: trap in 2.0_RC5
To: NetBSD-current Discussion List <current-users@netbsd.org>
From: Andreas Wrede <andreas@planix.com>
List: current-users
Date: 11/27/2004 18:27:48
--Apple-Mail-7-884300752
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

I just got a panic: trap on a NetBSD/i386 2.0_RC5 machine. The machine  
then goes into an infinite loop, continuously trapping in the dump  
routine and the trying to dump again.

Without X running and no serial console, this could look like a solid  
lock-up, as reported by some people here.

panic: trap
Begin traceback...
trap() at netbsd:trap+0x155
--- trap (number 6) ---
pool_do_put(c0783940,c159fc64,c159fd74,c159fc64,c0705440) at  
netbsd:pool_do_put+0x50
rnd_sample_free(c159fc64,c159fc74,100,40,c1549100) at  
netbsd:rnd_sample_free+0x37
rnd_timeout(0,c083de40,1,0,c083de6c) at netbsd:rnd_timeout+0x83
softclock(0,c083de60,c04b80b1,c083de6c,c0116fdd) at  
netbsd:softclock+0x259
softintr_dispatch(0,c0830010,30,10,80010010) at  
netbsd:softintr_dispatch+0x73
Xsoftclock() at netbsd:Xsoftclock+0x25
--- interrupt ---
mpidle(c0785840,0,c083df28,c03e39a7,c0790420) at netbsd:mpidle
ltsleep(c07856a0,4,c067e439,0,0) at netbsd:ltsleep+0x39f
uvm_scheduler(c0785680,0,c078e6dc,c066264b,0) at  
netbsd:uvm_scheduler+0x10f
main(0,0,0,0,0) at netbsd:main+0x69b
End traceback...
syncing disks... panic: kernel diagnostic assertion "pcg->pcg_avail <=  
PCG_NOBJECTS" failed: file "/u1/netbsd-2.0/src/sys/kern/subr_pool.c",  
line 1691
Begin traceback...
__main(c0652e22,c06b6fa0,69b,c06b7640,ffffffff) at netbsd:__main
pool_cache_get_paddr(c0788620,0,0,0,4f95) at  
netbsd:pool_cache_get_paddr+0x7b
fxp_add_rfabuf(c153f000,c15502c0,1,c153f000,20) at  
netbsd:fxp_add_rfabuf+0x31
fxp_rxintr(c153f000,c083dc50,d,100,c0664598) at netbsd:fxp_rxintr+0x7ca
fxp_intr(c153f000,0,10,c0820030,10) at netbsd:fxp_intr+0x1d0
Xintr_legacy9() at netbsd:Xintr_legacy9+0xa8
--- interrupt ---
Xspllower(0,5,0,0,100) at netbsd:Xspllower+0xe
vfs_shutdown(c0669972,0,c083dc90,c0351d18,100) at  
netbsd:vfs_shutdown+0xae
cpu_reboot(100,0,c083dc80,c0352645,c15b3000) at netbsd:cpu_reboot+0x15f
panic(c0669972,10283,c15b3000,d,0) at netbsd:panic+0x108
trap() at netbsd:trap+0x155
--- trap (number 6) ---
pool_do_put(c0783940,c159fc64,c159fd74,c159fc64,c0705440) at  
netbsd:pool_do_put+0x50
rnd_sample_free(c159fc64,c159fc74,100,40,c1549100) at  
netbsd:rnd_sample_free+0x37
rnd_timeout(0,c083de40,1,0,c083de6c) at netbsd:rnd_timeout+0x83
softclock(0,c083de60,c04b80b1,c083de6c,c0116fdd) at  
netbsd:softclock+0x259
softintr_dispatch(0,c0830010,30,10,80010010) at  
netbsd:softintr_dispatch+0x73
Xsoftclock() at netbsd:Xsoftclock+0x25
--- interrupt ---
mpidle(c0785840,0,c083df28,c03e39a7,c0790420) at netbsd:mpidle
ltsleep(c07856a0,4,c067e439,0,0) at netbsd:ltsleep+0x39f
uvm_scheduler(c0785680,0,c078e6dc,c066264b,0) at  
netbsd:uvm_scheduler+0x10f
main(0,0,0,0,0) at netbsd:main+0x69b
End traceback...



The following repeats over and over.. until I hit reset:

dumping to dev 4,57 offset 788559
fatal page fault in supervisor mode
trap type 6 code 0 eip c03f371c cs 8 eflags 10282 cr2 deadbf1f ilevel d
panic: trap
Begin traceback...
trap() at netbsd:trap+0x155
--- trap (number 6) ---
sdsize(439,4,39,c084f,3fd) at netbsd:sdsize+0x48
dumpsys(c0669972,0,c083da64,c0351d18,104) at netbsd:dumpsys+0xc0
cpu_reboot(104,0,c0332fb9,5,5) at netbsd:cpu_reboot+0x14b
panic(c06ea4c0,c0652e22,c06b7640,c06b6fa0,69b) at netbsd:panic+0x108
__main(c0652e22,c06b6fa0,69b,c06b7640,ffffffff) at netbsd:__main
pool_cache_get_paddr(c0788620,0,0,0,4f95) at  
netbsd:pool_cache_get_paddr+0x7b
fxp_add_rfabuf(c153f000,c15502c0,1,c153f000,20) at  
netbsd:fxp_add_rfabuf+0x31
fxp_rxintr(c153f000,c083dc50,d,100,c0664598) at netbsd:fxp_rxintr+0x7ca
fxp_intr(c153f000,0,10,c0820030,10) at netbsd:fxp_intr+0x1d0
Xintr_legacy9() at netbsd:Xintr_legacy9+0xa8
--- interrupt ---
Xspllower(0,5,0,0,100) at netbsd:Xspllower+0xe
vfs_shutdown(c0669972,0,c083dc90,c0351d18,100) at  
netbsd:vfs_shutdown+0xae
cpu_reboot(100,0,c083dc80,c0352645,c15b3000) at netbsd:cpu_reboot+0x15f
panic(c0669972,10283,c15b3000,d,0) at netbsd:panic+0x108
trap() at netbsd:trap+0x155
--- trap (number 6) ---
pool_do_put(c0783940,c159fc64,c159fd74,c159fc64,c0705440) at  
netbsd:pool_do_put+0x50
rnd_sample_free(c159fc64,c159fc74,100,40,c1549100) at  
netbsd:rnd_sample_free+0x37
rnd_timeout(0,c083de40,1,0,c083de6c) at netbsd:rnd_timeout+0x83
softclock(0,c083de60,c04b80b1,c083de6c,c0116fdd) at  
netbsd:softclock+0x259
softintr_dispatch(0,c0830010,30,10,80010010) at  
netbsd:softintr_dispatch+0x73
Xsoftclock() at netbsd:Xsoftclock+0x25
--- interrupt ---
mpidle(c0785840,0,c083df28,c03e39a7,c0790420) at netbsd:mpidle
ltsleep(c07856a0,4,c067e439,0,0) at netbsd:ltsleep+0x39f
uvm_scheduler(c0785680,0,c078e6dc,c066264b,0) at  
netbsd:uvm_scheduler+0x10f
main(0,0,0,0,0) at netbsd:main+0x69b
End traceback...


  At the time of the crash, the machine had been up for about 36 hours.  
It was copying (via netatalk's afpd) a large collection of files (80Gb)  
from a remote Mac to
an isp(4) attached Xserve RAID array on /dev/sd1a. The copy was about  
3/4 complete.sd1a is a UFS2 filesystem, in case it matters.

df -m
Filesystem  1M-blocks     Used     Avail Capacity  Mounted on
/dev/raid1a      1454     1149       232    83%    /
/dev/raid1e      2019      710      1207    37%    /var
/dev/raid1f      3945        2      3745     0%    /u1
/dev/sd1a     1051858   306876    692388    30%    /u5
kernfs              0        0         0   100%    /kern
procfs              0        0         0   100%    /proc

The kernel is compiled with DEBUG and DIAGNOSTIC enabled.

Boot messages:

NetBSD 2.0_RC5 (PLANIX) #11: Tue Nov 23 10:49:49 EST 2004
      
root@willy.wrede.pvt:/u1/netbsd-2.0/obj/sys/arch/i386/compile.i386/ 
PLANIX
total memory = 639 MB
avail memory = 617 MB
BIOS32 rev. 0 found at 0xfd7d2
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 920.68 MHz, id 0x683
cpu0: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-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: serial number 0000-0683-0003-B1AD-7648-C2F3
cpu0: 8 page colors
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: ServerWorks CNB20-HE PCI/AGP bridge (rev. 0x05)
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CNB20-HE PCI/AGP bridge (rev. 0x05)
pci1 at pchb1 bus 3
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
isp0 at pci1 dev 4 function 0: QLogic FC-AL and Fabric HBA
isp0: interrupting at irq 11
scsibus0 at isp0: 256 targets, 8 luns per target
isp1 at pci1 dev 5 function 0: QLogic FC-AL and Fabric HBA
isp1: interrupting at irq 11
scsibus1 at isp1: 256 targets, 8 luns per target
esiop0 at pci1 dev 6 function 0: Symbios Logic 53c896 (ultra2-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at irq 5
esiop0: alloc new tag DSA table at PHY addr 0x2184000
scsibus2 at esiop0: 16 targets, 8 luns per target
esiop1 at pci1 dev 6 function 1: Symbios Logic 53c896 (ultra2-wide scsi)
esiop1: using on-board RAM
esiop1: interrupting at irq 5
esiop1: alloc new tag DSA table at PHY addr 0x2185000
scsibus3 at esiop1: 16 targets, 8 luns per target
fxp0 at pci0 dev 4 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at irq 9
fxp0: Ethernet address 00:10:83:fd:80:7b
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 5 function 0: ATI Technologies 3D Rage IIC (rev. 0x7a)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 15 function 0
pcib0: ServerWorks OSB4 ISA bridge (rev. 0x4f)
rccide0 at pci0 dev 15 function 1
rccide0: ServerWorks OSB4 IDE Controller (rev. 0x00)
rccide0: bus-master DMA support present
rccide0: primary channel configured to compatibility mode
rccide0: primary channel interrupting at irq 14
atabus0 at rccide0 channel 0
rccide0: secondary channel configured to compatibility mode
rccide0: secondary channel interrupting at irq 15
atabus1 at rccide0 channel 1
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
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
pmsprobe: reset error 5
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
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
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
raidattach: Asked for 8 units
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
scsibus3: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <HITACHI CDR-8435, , 0010> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(rccide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data  
transfers)
sd0 at scsibus0 target 0 lun 0: <APPLE, Xserve RAID, 1.21> disk fixed
sd0: 1035 GB, 132522 cyl, 128 head, 128 sec, 512 bytes/sect x  
2171240448 sectors
sd1 at scsibus1 target 0 lun 0: <APPLE, Xserve RAID, 1.21> disk fixed
sd1: 1035 GB, 132522 cyl, 128 head, 128 sec, 512 bytes/sect x  
2171240448 sectors
esiop0: alloc newcdb at PHY addr 0x2246000
sd2 at scsibus2 target 0 lun 0: <COMPAQ, AB01831AC4, 3A05> disk fixed
sd2: 17366 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35566000  
sectors
sd2: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged  
queueing
sd3 at scsibus2 target 1 lun 0: <COMPAQ, AB01831AC4, 3A05> disk fixed
sd3: 17366 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35566000  
sectors
sd3: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged  
queueing
sd4 at scsibus2 target 2 lun 0: <COMPAQ, AB0183346B, 3A05> disk fixed
sd4: 17366 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35566000  
sectors
sd4: sync (50.00ns offset 31), 16-bit (40.000MB/s) transfers, tagged  
queueing
sd5 at scsibus2 target 3 lun 0: <COMPAQ, HB01831B95, A195> disk fixed
sd5: 17366 MB, 7001 cyl, 20 head, 254 sec, 512 bytes/sect x 35566000  
sectors
esiop0: alloc new tag DSA table at PHY addr 0x224f000
sd5: sync (50.00ns offset 31), 16-bit (40.000MB/s) transfers, tagged  
queueing
ses0 at scsibus2 target 5 lun 0: <HP, SAFTE; U160/M BP, 1021> processor  
fixed
ses0: SAF-TE Compliant Device
ses0: async, 8-bit transfers
sd6 at scsibus2 target 8 lun 0: <IBM, DNES-318350Y, SAH0> disk fixed
sd6: 17501 MB, 11474 cyl, 10 head, 312 sec, 512 bytes/sect x 35843670  
sectors
sd6: sync (50.00ns offset 31), 16-bit (40.000MB/s) transfers, tagged  
queueing
esiop1: alloc newcdb at PHY addr 0x225c000
sd7 at scsibus3 target 0 lun 0: <HP, 9.10GB A 80-DC1B, DC1B> disk fixed
sd7: 8678 MB, 8387 cyl, 10 head, 211 sec, 512 bytes/sect x 17773524  
sectors
sd7: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged  
queueing
sd8 at scsibus3 target 1 lun 0: <HP, 9.10GB A 80-DC1B, DC1B> disk fixed
sd8: 8678 MB, 8387 cyl, 10 head, 211 sec, 512 bytes/sect x 17773524  
sectors
sd8: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged  
queueing



-- 
	aew

--Apple-Mail-7-884300752
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBqQ10Eh/h9J/TQyERAjMQAJsFVDBg+3kMXh2tKsBay1yzduUSWgCeJC2g
rEL+gt30eeLF4FflgeDfWnA=
=usth
-----END PGP SIGNATURE-----

--Apple-Mail-7-884300752--