Subject: memory management fault in install(1)?
To: None <port-alpha@netbsd.org>
From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
List: port-alpha
Date: 04/25/2004 15:20:58
Hi list,
I was just running three concurrent builds (system, mozilla and xpdf) when
after ~30h I suddenly got a memory management fault in install. See the
dmesg output way down at the bottom for the error vectors etc. This is on
an AlphaPC 164SX running XFree86-4.4.0, but not much else (see below).
Any idea what might be wrong? I'm restarting now to see if it happens again ;)
cu Jo
db> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x4
comintr() at netbsd:comintr+0x880
alpha_shared_intr_dispatch() at netbsd:alpha_shared_intr_dispatch+0x6c
sio_iointr() at netbsd:sio_iointr+0x4c
interrupt() at netbsd:interrupt+0x278
XentInt() at netbsd:XentInt+0x1c
--- interrupt (from ipl 0) ---
pmap_emulate_reference() at netbsd:pmap_emulate_reference+0x70
trap() at netbsd:trap+0x588
XentMM() at netbsd:XentMM+0x20
--- memory management fault ---
memcpy() at netbsd:memcpy+0x18
copyin() at netbsd:copyin+0x4c
uiomove() at netbsd:uiomove+0x1e4
ffs_write() at netbsd:ffs_write+0x35c
VOP_WRITE() at netbsd:VOP_WRITE+0x40
vn_write() at netbsd:vn_write+0x128
dofilewrite() at netbsd:dofilewrite+0xb0
sys_write() at netbsd:sys_write+0xa8
syscall_plain() at netbsd:syscall_plain+0xb4
XentSys() at netbsd:XentSys+0x5c
--- syscall (4) ---
db> ps
PID PPID PGRP UID S FLAGS LWPS COMMAND WAIT
>25937 13157 25286 0 2 0x4002 1 install
13157 16736 25286 0 2 0x4002 1 sh wait
16736 17432 25286 0 2 0x4002 1 make wait
17432 21444 25286 0 2 0x4002 1 sh wait
16520 1116 13159 1000 2 0x4002 1 cc1
1116 22937 13159 1000 2 0x4002 1 alpha--netbsd-gc wait
22937 12793 13159 1000 2 0x4002 1 sh wait
21444 208 25286 0 2 0x4002 1 make wait
208 23386 25286 0 2 0x4002 1 sh wait
23386 14968 25286 1000 2 0x4002 1 sh wait
14968 20578 25286 1000 2 0x4002 1 make wait
20578 12822 25286 1000 2 0x4002 1 sh wait
332 3205 12466 1000 2 0x4002 1 ld
3205 8162 12466 1000 2 0x4002 1 g++ wait
8162 18442 12466 1000 2 0x4002 1 gmake wait
12793 760 13159 1000 2 0x4002 1 nbmake wait
760 26322 13159 1000 2 0x4002 1 sh wait
26322 24806 13159 1000 2 0x4002 1 nbmake wait
24806 7795 13159 1000 2 0x4002 1 sh wait
26836 15348 15348 1000 2 0x4002 1 perl
15348 9316 15348 1000 2 0x4002 1 ssfe select
17565 23511 13159 1000 2 0x4002 1 sh wait
28731 20024 28731 1000 2 0x400b 1 mutt
20024 29717 20024 1000 2 0x4002 1 sh wait
29717 1 10273 1000 2 0x4100 1 xterm select
23549 16788 23549 1000 2 0x4002 1 perl
16788 18611 16788 1000 2 0x4002 1 sh wait
18611 1 10273 1000 2 0x4100 1 xterm select
9316 6088 9316 1000 2 0x4002 1 sh wait
6088 1 10273 1000 2 0x4100 1 xterm select
12822 23649 25286 1000 2 0x4002 1 make wait
23649 23092 25286 1000 2 0x4002 1 sh wait
23092 1770 25286 1000 2 0x4002 1 make wait
1770 21930 25286 1000 2 0x4002 1 sh wait
23511 10160 13159 1000 2 0x4002 1 nbmake wait
10160 8617 13159 1000 2 0x4002 1 sh wait
21930 12588 25286 1000 2 0x4002 1 make wait
12588 25286 25286 1000 2 0x4002 1 sh wait
8575 8401 25286 1000 2 0x4002 1 tee piperd
25286 8401 25286 1000 2 0x4002 1 make wait
8401 14013 8401 1000 2 0x4002 1 sh wait
14013 1 10273 1000 2 0x4100 1 xterm select
18442 15039 12466 1000 2 0x4002 1 sh wait
8617 14626 13159 1000 2 0x4002 1 nbmake wait
14626 16412 13159 1000 2 0x4002 1 sh wait
16412 27340 13159 1000 2 0x4002 1 nbmake wait
27340 8512 13159 1000 2 0x4002 1 sh wait
1217 5657 12466 1000 2 0x4002 1 sh wait
5657 7651 12466 1000 2 0x4002 1 gmake wait
7651 15870 12466 1000 2 0x4002 1 gmake wait
15870 14524 12466 1000 2 0x4002 1 sh wait
14524 26147 12466 1000 2 0x4002 1 make wait
26147 12466 12466 1000 2 0x4002 1 sh wait
20525 5956 12466 1000 2 0x4002 1 tee piperd
12466 5956 12466 1000 2 0x4002 1 make wait
28745 29681 28745 1000 2 0x4003 1 sh ttyin
29681 1 10273 1000 2 0x4100 1 xterm select
8512 15976 13159 1000 2 0x4002 1 nbmake wait
15976 19318 13159 1000 2 0x4002 1 sh wait
19318 12059 13159 1000 2 0x4002 1 nbmake wait
12059 13391 13159 1000 2 0x4002 1 sh wait
13391 3390 13159 1000 2 0x4002 1 nbmake wait
3390 14194 13159 1000 2 0x4002 1 sh wait
14194 13159 13159 1000 2 0x4002 1 nbmake wait
11194 8309 13159 1000 2 0x4002 1 tee piperd
5956 5166 5956 1000 2 0x4002 1 sh wait
5166 1 10273 1000 2 0x4100 1 xterm select
8309 23972 8309 1000 2 0x4002 1 sh wait
1295 10273 10273 1000 2 0x4000 1 twm poll
23972 10273 10273 1000 2 0x4100 1 xterm select
10195 10273 10273 1000 2 0x4000 1 oclock
10273 18479 10273 1000 2 0x4000 1 sh wait
15184 1 17772 0 2 0 1 xconsole
18479 202 18479 0 2 0 1 xdm wait
22651 1 22651 0 2 0x100 1 sendmail
6544 1 6544 0 2 0x4002 1 getty
654 202 654 0 2 0x4000 1 XFree86
202 1 202 0 2 0x1 1 xdm select
367 1 367 0 2 0x4002 1 getty ttyin
341 1 341 0 2 0x4002 1 getty ttyin
397 1 397 0 2 0x4002 1 getty ttyin
403 1 403 0 2 0x4002 1 getty ttyin
349 1 349 0 2 0 1 cron
342 1 342 0 2 0 1 sshd select
268 223 223 0 2 0 1 nfsd nfsd
250 223 223 0 2 0 1 nfsd nfsd
247 223 223 0 2 0 1 nfsd nfsd
223 1 223 0 2 0 1 nfsd poll
222 1 222 0 2 0 1 mountd
177 1 177 0 2 0 1 rpcbind
152 1 152 0 2 0 1 syslogd
9 0 0 0 2 0x20200 1 aiodoned
8 0 0 0 2 0x20200 1 ioflush
7 0 0 0 2 0x20200 1 pagedaemon pgdaemo
6 0 0 0 2 0x20200 1 lfs_writer lfswrit
5 0 0 0 2 0x20200 1 pms0 pmsrese
4 0 0 0 2 0x20200 1 atabus1 atath
3 0 0 0 2 0x20200 1 atabus0 atath
2 0 0 0 2 0x20200 1 scsibus0 sccomp
1 0 1 0 2 0x4000 1 init wait
0 -1 0 0 2 0x20200 1 swapper
db> dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
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 2.0B (ALPHA-$Revision: 1.191 $) #10: Thu Apr 22 17:37:18 CEST 2004
joki@jaja:/home/joki/NetBSD/compile/JAJA
Digital AlphaPC 164SX 533 MHz, s/n
8192 byte page size, 1 processor.
total memory = 128 MB
(2120 KB reserved for PROM, 125 MB used by NetBSD)
avail memory = 115 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), PCA56-2
cpu0: Architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1
cia0: extended capabilities: 1<BWEN>
cia0: using BWX for PCI config access
pci0 at cia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
siop0 at pci0 dev 5 function 0: Symbios Logic 53c815 (fast scsi)
siop0: interrupting at eb164 irq 9
eap0 at pci0 dev 6 function 0: vendor 0x1274 product 0x5000 (rev. 0x00)
eap0: interrupting at eb164 irq 11
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
vga0 at pci0 dev 7 function 0: vendor 0x5333 product 0x5631 (rev. 0x06)
wsdisplay0 at vga0 kbdmux 1
wsmux1: connecting to wsdisplay0
sio0 at pci0 dev 8 function 0: vendor 0x1080 product 0xc693 (rev. 0x00)
cypide0 at pci0 dev 8 function 1
cypide0: Cypress 82C693 IDE Controller (rev. 0x00)
cypide0: bus-master DMA support present
cypide0: primary channel wired to compatibility mode
cypide0: primary channel interrupting at isa irq 14
atabus0 at cypide0 channel 0
cypide1 at pci0 dev 8 function 2
cypide1: Cypress 82C693 IDE Controller (rev. 0x00)
cypide1: hardware does not support DMA
cypide1: primary channel wired to compatibility mode
cypide1: secondary channel interrupting at isa irq 15
atabus1 at cypide1 channel 0
ohci0 at pci0 dev 8 function 3: vendor 0x1080 product 0xc693 (rev. 0x00)
ohci0: couldn't map interrupt
ne0: Ethernet address 00:50:bf:01:59:57
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: interrupting at eb164 irq 8
isa0 at sio0
lpt0 at isa0 port 0x3bc-0x3bf 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
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
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 4 lun 0: <SCSI-CD, ReWritable-2x2x6, 2.00> cdrom removabl
e
cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
wd0 at atabus0 drive 0: <IBM-DJNA-352030>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19470 MB, 39560 cyl, 16 head, 63 sec, 512 bytes/sect x 39876480 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(cypide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
root on wd0a dumps on wd0b
root file system type: ffs
/dev/wd0d: file system not clean (fs_clean=1); please fsck(8)
/dev/wd0d: lost blocks 0 files 0
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)
CPU 0: fatal kernel trap:
CPU 0 trap entry = 0x2 (memory management fault)
CPU 0 a0 = 0x25937
CPU 0 a1 = 0x1
CPU 0 a2 = 0x0
CPU 0 pc = 0xfffffc000077c770
CPU 0 ra = 0xfffffc0000554dbc
CPU 0 pv = 0xfffffc000077c760
CPU 0 curlwp = 0xfffffc00039159d8
CPU 0 pid = 25937, comm = install
CPU 0: fatal kernel trap:
CPU 0 trap entry = 0x2 (memory management fault)
CPU 0 a0 = 0x25937
CPU 0 a1 = 0x1
CPU 0 a2 = 0x0
CPU 0 pc = 0xfffffc000077c770
CPU 0 ra = 0xfffffc0000554dbc
CPU 0 pv = 0xfffffc000077c760
CPU 0 curlwp = 0xfffffc00039159d8
CPU 0 pid = 25937, comm = install
db>
--
La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
il ne reste rien à enlever. (Antoine de Saint-Exupéry)