Hi,

sorry for the sparse details, but you know how it is on these machines.
Every "quick" check and experiment takes ages...

The latest snapshot kernel (OpenBSD 5.1 (GENERIC) #39: Thu Mar  1 03:11:52 EST 
2012)
works fine on my 345, but more recent kernels seem to break the
userland. From the looks of it, it affects dynamically linked binaries
mostly, not sure why I don't get a login prompt:

1989208+55952+438856+[217692+228418] total=0xff2cdb7e start=0x1000
[ using 446116 bytes of bsd a.out symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org

uvm_km_kmem_grow: grown to 0x1c00000
uvm_km_kmem_grow: grown to 0xbffff000
OpenBSD 5.1-current (GENERIC) #0: Sun Jun  3 20:28:50 CEST 2012
    [email protected]:/usr/src/sys/arch/hp300/compile/GENERIC
HP 9000/345 (51MHz MC68030 CPU+MMU, 51MHz MC68882 FPU, 32K physical-address 
cache)
real mem = 16777216 (16MB)
avail mem = 12406784 (11MB)
Parity detection enabled
mainbus0 at root
intio0 at mainbus0
topcat0 at intio0 addr 0x560000: 1024x768x6 HP98549 catseye frame buffer
wsdisplay0 at topcat0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
hil0 at intio0 addr 0x428000 ipl 1
dio0 at mainbus0: 98620C, 2 channels, 32 bit DMA
nhpib0 at dio0 scode 7 ipl 3: internal HP-IB
hpibbus0 at nhpib0
ppi0 at hpibbus0 slave 5 punit 0
dca0 at dio0 scode 9 ipl 5: console, working fifo
spc0 at dio0 scode 14 ipl 4: 98265A SCSI, 32-bit DMA
scsibus0 at spc0: 8 targets, initiator 7
sd0 at scsibus0 targ 6 lun 0: <HP 73.4G, ST373207LW, HPC1> SCSI3 0/direct fixed 
naa.50014c3000203c18
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
le0 at dio0 scode 21 ipl 5: address 08:00:09:13:bd:5e
le0: 8 receive buffers, 2 transmit buffers
internal parallel at dio0 scode 23 not configured
interrupt levels: bio = 4, net = 5, tty = 5
boot device: sd0
hil0: no devices
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e7b47f5aad577ecb.a) swap on sd0b dump on sd0b
Automatic boot in progress: starting file system checks.
/dev/sd0a (e7b47f5aad577ecb.a): file system is clean; not checking
/dev/sd0d (e7b47f5aad577ecb.d): file system is clean; not checking
/dev/sd0e (e7b47f5aad577ecb.e): file system is clean; not checking
/dev/sd0f (e7b47f5aad577ecb.f): file system is clean; not checking
/dev/sd0g (e7b47f5aad577ecb.g): file system is clean; not checking
setting tty flags
vm.swapencrypt.enable: 1 -> 0
kern.pool_debug: 1 -> 0
kern.bufcachepercent: 20 -> 10
kern.splassert: 1 -> 2
starting network
DHCPREQUEST on le0 to 255.255.255.255 port 67
DHCPACK from 10.0.2.1 (00:30:18:a3:e2:60)
bound to 10.0.2.3 -- renewal in 21600 seconds.
starting early daemons: syslogd ntpd(failed).
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
/usr/libexec/ld.so: perl: libperl.so.12.0: Invalid argument
starting network daemons: sshd(failed) sendmail(failed) sndiod.
starting local daemons: cron.
Sun Jun  3 21:02:49 CEST 2012



A kernel build on May 21 had the exact same issue, so it's not a one off
config -ef /bsd.broken
OpenBSD 5.1-current (GENERIC) #22: Mon May 21 00:58:09 CEST 2012
    [email protected]:/usr/src/sys/arch/hp300/compile/GENERIC



Latest snapshot userland and kernel works OK:



1970132+55864+425524+[216252+226003] total=0xff2c5803 start=0x1000
[ using 442260 bytes of bsd a.out symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.1 (GENERIC) #39: Thu Mar  1 03:11:52 EST 2012
    [email protected]:/usr/src/sys/arch/hp300/compile/GENERIC
HP 9000/345 (51MHz MC68030 CPU+MMU, 51MHz MC68882 FPU, 32K physical-address 
cache)
real mem = 16777216 (16MB)
avail mem = 12443648 (11MB)
Parity detection enabled
mainbus0 at root
intio0 at mainbus0
topcat0 at intio0 addr 0x560000: 1024x768x6 HP98549 catseye frame buffer
wsdisplay0 at topcat0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
hil0 at intio0 addr 0x428000 ipl 1
dio0 at mainbus0: 98620C, 2 channels, 32 bit DMA
nhpib0 at dio0 scode 7 ipl 3: internal HP-IB
hpibbus0 at nhpib0
ppi0 at hpibbus0 slave 5 punit 0
dca0 at dio0 scode 9 ipl 5: console, working fifo
spc0 at dio0 scode 14 ipl 4: 98265A SCSI, 32-bit DMA
scsibus0 at spc0: 8 targets, initiator 7
sd0 at scsibus0 targ 6 lun 0: <HP 73.4G, ST373207LW, HPC1> SCSI3 0/direct fixed 
naa.50014c3000203c18
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
le0 at dio0 scode 21 ipl 5: address 08:00:09:13:bd:5e
le0: 8 receive buffers, 2 transmit buffers
internal parallel at dio0 scode 23 not configured
interrupt levels: bio = 4, net = 5, tty = 5
boot device: sd0
hil0: no devices
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e7b47f5aad577ecb.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.
/dev/sd0a (e7b47f5aad577ecb.a): 1259 files, 15314 used, 135450 free (66 frags, 
16923 blocks, 0.0% fragmentation)
/dev/sd0a (e7b47f5aad577ecb.a): MARKING FILE SYSTEM CLEAN
/dev/sd0d (e7b47f5aad577ecb.d): 5 files, 4 used, 514427 free (35 frags, 64299 
blocks, 0.0% fragmentation)
/dev/sd0d (e7b47f5aad577ecb.d): MARKING FILE SYSTEM CLEAN
/dev/sd0e (e7b47f5aad577ecb.e): 652 files, 2600 used, 2059719 free (231 frags, 
257436 blocks, 0.0% fragmentation)
/dev/sd0e (e7b47f5aad577ecb.e): MARKING FILE SYSTEM CLEAN
/dev/sd0f (e7b47f5aad577ecb.f): 148763 files, 1257041 used, 1837462 free (9446 
frags, 228502 blocks, 0.3% fragmentation)
/dev/sd0f (e7b47f5aad577ecb.f): MARKING FILE SYSTEM CLEAN
/dev/sd0g (e7b47f5aad577ecb.g): 239 files, 6527 used, 3088360 free (32 frags, 
386041 blocks, 0.0% fragmentation)
/dev/sd0g (e7b47f5aad577ecb.g): MARKING FILE SYSTEM CLEAN
setting tty flags
vm.swapencrypt.enable: 1 -> 0
kern.pool_debug: 0 -> 0
kern.bufcachepercent: 20 -> 10
kern.splassert: 1 -> 2
starting network
DHCPREQUEST on le0 to 255.255.255.255 port 67
DHCPACK from 10.0.2.1 (00:30:18:a3:e2:60)
bound to 10.0.2.3 -- renewal in 21600 seconds.
starting early daemons: syslogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd sendmail sndiod.
starting local daemons: cron.
Sun Jun  3 21:28:54 CEST 2012

OpenBSD/hp300 (neodym.tmux.org) (console)

login:



Single user doesn't help much:


1989208+55952+438856+[217692+228418] total=0xff2cdb7e start=0x1000
[ using 446116 bytes of bsd a.out symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org

uvm_km_kmem_grow: grown to 0x1c00000
uvm_km_kmem_grow: grown to 0xbffff000
OpenBSD 5.1-current (GENERIC) #0: Sun Jun  3 20:28:50 CEST 2012
    [email protected]:/usr/src/sys/arch/hp300/compile/GENERIC
HP 9000/345 (51MHz MC68030 CPU+MMU, 51MHz MC68882 FPU, 32K physical-address 
cache)
real mem = 16777216 (16MB)
avail mem = 12406784 (11MB)
Parity detection enabled
mainbus0 at root
intio0 at mainbus0
topcat0 at intio0 addr 0x560000: 1024x768x6 HP98549 catseye frame buffer
wsdisplay0 at topcat0 mux 1
wsdisplay0: screen 0 added (std, vt100 emulation)
hil0 at intio0 addr 0x428000 ipl 1
dio0 at mainbus0: 98620C, 2 channels, 32 bit DMA
nhpib0 at dio0 scode 7 ipl 3: internal HP-IB
hpibbus0 at nhpib0
ppi0 at hpibbus0 slave 5 punit 0
dca0 at dio0 scode 9 ipl 5: console, working fifo
spc0 at dio0 scode 14 ipl 4: 98265A SCSI, 32-bit DMA
scsibus0 at spc0: 8 targets, initiator 7
sd0 at scsibus0 targ 6 lun 0: <HP 73.4G, ST373207LW, HPC1> SCSI3 0/direct fixed 
naa.50014c3000203c18
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
le0 at dio0 scode 21 ipl 5: address 08:00:09:13:bd:5e
le0: 8 receive buffers, 2 transmit buffers
internal parallel at dio0 scode 23 not configured
interrupt levels: bio = 4, net = 5, tty = 5
boot device: sd0
hil0: no devices
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e7b47f5aad577ecb.a) swap on sd0b dump on sd0b
Enter pathname of shell or RETURN for sh:
# mount -a
mount_nfs: can't resolve address for host argonr.tmux.org
mount_nfs: can't resolve address for host argonr.tmux.org
# ifconfig
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33196
        priority: 0
        groups: lo
le0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:09:13:bd:5e
        priority: 0
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
# dhclient le0
DHCPREQUEST on le0 to 255.255.255.255 port 67
DHCPACK from 10.0.2.1 (00:30:18:a3:e2:60)
bound to 10.0.2.3 -- renewal in 21600 seconds.
# mount -a
# /etc/rc.d/sshd start
sshd(failed)
# ntpd -d
/usr/libexec/ld.so: ntpd: libutil.so.11.2: Invalid argument
# ktrace
usage: ktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t trstr]
       ktrace [-adi] [-f trfile] [-t trstr] command
# ktrace -di ntpd -d
/usr/libexec/ld.so: ntpd: libutil.so.11.2: Invalid argument
# ls
.cshrc       bsd          bsd.rd.old   ktrace.out   sbin         tmp
.profile     bsd.broken   dev          mnt          sbsd         usr
altroot      bsd.broken2  etc          newroot      stand        var
bin          bsd.rd       home         root         sys
# kdump
kdump: Cannot allocate memory
# top
/usr/libexec/ld.so: top: libcurses.so.12.1: Invalid argument
# reboot


Later in multi-user with 1G swap:

$ sudo kdump -f /ktrace.out
kdump: Cannot allocate memory

Looks like kdump is doing something strange...

Reply via email to