[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I have twice in the last week had a "problem".  It is likely my fault, 
but I have no idea what the problem really is, I just know the symptoms.
To exacerbate the problem, I have not been able to consistently reproduce 
it (sorry, I've tried).

I wrote a perl script to pkg_delete all the ports I have installed,
fetch the updated distfiles, and then rebuild the ports.  Everything
goes fine until kdelibs2, when "virtual memory exhausted".  At
this point I su to root and 
funk# limit -h memoryuse 500m
funk# limit -u memorylocked 500m
funk# unlimit
funk# sh
# /home/jakemsr/bin/ports_update -r 

The last line is the perl script.  Basically, as the ports are pkg_deleted,
the pkgname is written to file.  In the rebuild phase (-r), the pkg_name
minus the version number if fed to pkg_info.  If the pkg is not installed,
cd to the port directory, and "make clean && make install && make clean".

It starts going until it gets to kdelibs, or more precisely, the "make
checksum" portion of "make install", and then it stops.  I ran top to see
what was going on, nothing looked odd.  Then I tried ps.  I found two 
processes which seemed relevent:
make /usr/ports/distfiles/kde/kdelibs-2.2.1.tar.bz2

I tried killing them.  No dice, not even kill -9.  I was running the 
script in a xterm, so I thought perhaps shutting down X would "clean
the away".  Nope.  So I decided to "halt -p".  After a while (about 5 
times longer than normal), the "syncing disks" message appeared.  I
left the room, and when I came back 10 minutes later, it had not 
changed.  I have machdep.kdbreset=1, so I hit Ctl-Alt-Del.  Then

rc.shutdown in progress ... 
rc.shudown complete

System halted
Press any key to reboot

Upon reboot, it claimed the disk was not properly unmounted.  Like I said,
this has happened to me twice, the first time, in between the "rc.shutdown
complete" and "System halted" messages, there was a message something to
the effect of "process won't die", (that time I had used the "reboot" command
and it flashed only for a second). 

I realize this is not a very good "bug report".  However, something is,
or at least was not right, possibly it is my fault.  What I would
like to know is, has anyone seen something like this, and how would
I go about diagnosing the problem better.  top and ps didn't seem to
show anything odd, but maybe I missed something subtle?

Oh yeah, /usr/ports/distfiles is an nfs mount from a 2.9-stable
system.  Perhaps that has something to do with it?

OpenBSD 3.0-beta (GENERIC) #19: Sat Oct 13 16:25:05 PDT 2001
cpu0: AMD Athlon Model 4 (Thunderbird) ("AuthenticAMD" 686-class) 751 MHz
real mem  = 402173952 (392748K)
avail mem = 367001600 (358400K)
using 4934 buffers containing 20209664 bytes (19736K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4e) BIOS, date 09/06/00, BIOS32 rev. 0 @ 0xfb410
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xb890
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfde80/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A PCI-ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "VIA VT8363 PCI-AGP" rev 0x00
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "VIA VT82C686 PCI-ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD153AA-00BAA0>
wd0: 16-sector PIO, LBA, 14679MB, 16383 cyl, 16 head, 63 sec, 30064608 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAF, CD-RW4432A, 1.1A> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30
auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC-97 Audio" rev 0x20: irq 5
ac97: codec id 0x414c4325
ac97: codec features Realtek 3D
auvia0: warning: codec doesn't support hardware AC'97 2.0 Variable Rate Audio
audio0 at auvia0
vga1 at pci0 dev 9 function 0 "3DFX Interactive Voodoo3" rev 0x01
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
dc0 at pci0 dev 12 function 0 "ADMtek AN983" rev 0x11: irq 11 address 00:20:78:1d:93:11
ukphy0 at dc0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000895, model 0x0001, rev. 0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask c840 netmask c840 ttymask d8c2
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted
wd0a:  aborted command, interface CRC error reading fsbn 64 of 64-79 (wd0 bn 127; cn 0 tn 2 sn 1), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
wd0a:  aborted command, interface CRC error reading fsbn 64 of 64-79 (wd0 bn 127; cn 0 tn 2 sn 1), retrying
wd0: soft error (corrected)


Visit your host, monkey.org