Subject: 1.6.2 and crashing programs
To: None <port-vax@netbsd.org>
From: Rhialto <rhialto@azenomei.knuffel.net>
List: port-vax
Date: 06/05/2004 03:52:36
I wanted to do some system-independent testing and I didn't want to do
it on a production machine, so I started on my VAX (a VAXstation 3100
m38 with serial console). It had a beta of 1.6 on it and could not
quickly find corresponding source, so I put 1.6.2 on it.

I encountered several programs.

With the install.ram kernel, and also once with GENERIC, console output
stopped after the kernal messages. At the point where one would expect
that it would switch to "the wrong" console. Either it just hangs, or
the output is lost.  Strangely enough this does not happen with a
self-compiled kernel, either of 1.6.2 or older, nor with previous
GENERIC and install kernels I had used. When I re-test this, GENERIC
does not exhibit this problem anymore.

With a self-compiled kernel (or GENERIC), console output is ok, but
various programs dump core during multiuser startup, and it becomes
impossible to login since sshd and login are two of them.

Fortunately I can still run with the 1.6_BETA2 kernel and 1.6.2
userland.

Any ideas? I thought it might be some COMPAT option but I turned them
all on but it didn't help. After that, retrying GENERIC also failed in
the same way, so it doesn't seem to be a kernel building problem.

Output from self-compiled kernel:

>>> b
p

-DKB0
>> NetBSD/vax boot [1.11 Wed Feb 11 09:14:20 UTC 2004] <<
>> Press any key to abort autoboot 5
nfs_open: must mount first.
open netbsd.vax: Device not configured
> boot netbsd
1349320+196868 [128176+91888]=0x1af558
[ using 220556 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    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 1.6.2 (XZAN) #1: Sat Jun  5 03:05:21 CEST 2004
    rhialto@xzan:/home/rhialto/usr/src/sys/arch/vax/compile/XZAN

VAXstation 3100/m{38,48}
cpu: KA41/42
cpu: Enabling primary cache, secondary cache
total memory = 32640 KB
avail memory = 27000 KB
using 433 buffers containing 1732 KB of memory
mainbus0 (root)
vsbus0 at mainbus0
vsbus0: interrupt mask 8
le0 at vsbus0 csr 0x200e0000 vec 120 ipl 14 maskbit 5 buf 0x599000-0x5a8fff
le0: address 08:00:2b:1b:4b:9e
le0: 32 receive buffers, 8 transmit buffers
dz0 at vsbus0 csr 0x200a0000 vec 304 ipl 14 maskbit 6
dz0: 4 lines
lkkbd0 at dz0
wskbd0 at lkkbd0 (mux ignored)
lkms0 at dz0
wsmouse0 at lkms0 (mux ignored)
si0 at vsbus0 csr 0x200c0080 vec 770 ipl 14 maskbit 1
si0: NCR5380, SCSI ID 6
scsibus0 at si0: 8 targets, 8 luns per target
si1 at vsbus0 csr 0x200c0180 vec 774 ipl 14 maskbit 0
si1: NCR5380, SCSI ID 6
scsibus1 at si1: 8 targets, 8 luns per target
smg0 at vsbus0 csr 0x200f0000 vec 104 ipl 14 maskbit 3
wsdisplay0 at smg0 (kbdmux ignored)
wsdisplay0: screen 0-7 added (128x57, vt100 emulation)
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <SEAGATE, ST52160N, 0344> SCSI2 0/direct fixed
sd0: 2069 MB, 6536 cyl, 4 head, 162 sec, 512 bytes/sect x 4238282 sectors
sd0: async, 8-bit transfers
IPsec: Initialized Security Association Processing.
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
Sat Jun  5 01:12:54 GMT 2004
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
Setting tty flags.
Installing ipsec manual keys/policies.
Setting sysctl variables:
net.key.larval_lifetime: 30 -> 300
net.key.debug: 0 -> 1
Starting network.
Hostname: xzan
NIS domainname: falu-nl
IPv6 mode: autoconfigured host
Configuring network interfaces: le0.
add net default: gateway 10.0.0.5
Adding interface aliases:
Sending router solicitation...
Building databases...
Segmentation fault - core dumped
Trimming log files: done.
Starting syslogd.
Checking for core dump...
Segmentation fault - core dumped
Setting date via ntp.
Starting rpcbind.
Starting ypserv.
Starting ypbind.
Starting yppasswdd.
Mounting all filesystems...
mount_nfs: can't access /cdrom: Permission denied
Clearing /tmp.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Starting mountd.
Starting nfsd.
Starting statd.
Starting lockd.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
starting local daemons:.
Updating motd.
Starting ntpd.
Starting sshd.
Segmentation fault - core dumped
Starting sendmail.
Segmentation fault - core dumped
Starting inetd.

NetBSD/vax (xzan) (console)

login: Jun  5 03:18:05 xzan ntpd[141]: kernel pll status change 41


Somewhat pruned config file:

# $NetBSD: GENERIC,v 1.97.4.4 2002/12/07 21:25:02 he Exp $
#
# GENERIC machine description file
# 
# This machine description file is used to generate the default NetBSD
# kernel.  The generic kernel does not include all options, subsystems
# and device drivers, but should be useful for most applications.
#
# The machine description file can be customised for your specific
# machine to reduce the kernel size and improve its performance.
#
# For further information on compiling NetBSD kernels, see the config(8)
# man page.
#
# For further information on hardware support for this architecture, see
# the intro(4) man page.  For further information about kernel options
# for this architecture, see the options(4) man page.  For an explanation
# of each device driver in this file see the section 4 man page for the
# device.

include		"arch/vax/conf/std.vax"

options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary

#ident 		"GENERIC-$Revision: 1.97.4.4 $"

# Here are all different supported CPU types listed.
#options 	VAX8800		# VAX 8500, 8530, 8550, 8700, 8800
#options 	VAX8600
#options 	VAX8200
#options 	VAX6400
#options 	VAX780
#options 	VAX750
#options 	VAX630		# MV II
#options 	VAX650		# MV III, 3300, 3400, 3500, 3600, 3800, 3900
#options 	VAX660		# VAX 4000/200
#options 	VAX670		# VAX 4000/300
#options 	VAX680		# VAX 4000/[45]00
options 	VAX410		# VS 2000
#options 	VAX43		# VS 3100/76
#options 	VAX46		# VS 4000/60
#options 	VAX48		# VS 4000 VLC
#options 	VAX49		# VS 4000/90
#options 	VAX53		# VAX 4000/10[058], MicroVAX 3100/m96

# Max users on system; this is just a hint
maxusers	8

# Kernel compiled-in symbolic debugger & system call tracer
#makeoptions	DEBUG="-g"
options 	DDB
#options 	DDB_HISTORY_SIZE=100	# enable history editing in DDB
options 	KTRACE
#options 	DIAGNOSTIC
#options 	DEBUG,KMEMSTATS,PMAPDEBUG,TRAPDEBUG,LOCKDEBUG

options 	SCSIVERBOSE		# Verbose SCSI errors

# Networking options
options 	GATEWAY		# packet forwarding
options 	NTP		# NTP kernel support
options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6
options 	IPSEC		# IP security
options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
options 	IPSEC_DEBUG	# debug for IP security
#options 	MROUTING	# IP multicast routing
#options 	NS		# XNS
#options 	NSIP		# XNS tunneling over IP
#options 	ISO,TPIP	# OSI
#options 	EON		# OSI tunneling over IP
#options 	CCITT,LLC,HDLC	# X.25
#options 	NETATALK	# AppleTalk networking protocols
#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
#options 	PPP_DEFLATE	# Deflate compression support for PPP
#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
options 	PFIL_HOOKS	# pfil(9) packet filter hooks
options 	IPFILTER_LOG	# ipmon(8) log support
#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default

# All supported filesystem types
file-system 	FFS
#file-system 	LFS
#file-system 	MFS
file-system 	NFS
file-system 	FDESC
file-system 	KERNFS
file-system 	NULLFS
#file-system 	OVERLAY		# overlay file system
file-system 	PROCFS
#file-system 	PORTAL
file-system 	UMAPFS
file-system 	UNION
file-system 	CD9660

options 	QUOTA
#options 	FFS_EI		# FFS Endian Independant support
options 	SOFTDEP		# FFS soft updates support.
options 	NFSSERVER
options 	NFS_BOOT_BOOTP,NFS_BOOT_DHCP	# Use bootp <> dhcp
options 	NFS_BOOT_BOOTPARAM	# Use the Sun way for netbooting.

# WS console uses VT100 terminal emulation
options 	WSEMUL_VT100
options 	WSDISPLAY_DEFAULTSCREENS=8
options 	FONT_QVSS8x15

# System V shared memory & semaphores support.
options 	SYSVMSG
options 	SYSVSEM
#options 	SEMMNI=10	# number of semaphore identifiers
#options 	SEMMNS=60	# number of semaphores in system
#options 	SEMUME=10	# max number of undo entries per process
#options 	SEMMNU=30	# number of undo structures in system
options 	SYSVSHM

# Old compat stuff; needed to run 4.3BSD Reno programs.
# Note that if COMPAT_ULTRIX is set, you lose compatibility with
# 4.3BSD Reno programs and get Ultrix compatibility instead.
# (They cannot coexist).
options 	COMPAT_VAX1K	# Must be present to run pre-1.4 binaries.
options 	COMPAT_43
options 	COMPAT_09
options 	COMPAT_10
options 	COMPAT_11
options 	COMPAT_12
options 	COMPAT_13
options 	COMPAT_14
#options 	COMPAT_ULTRIX
#options 	COMPAT_IBCS2	# DEC SVR.3 compatilibity
#options 	NO_INSN_EMULATE	# CPU does not lack some hardware instructions.

options 	LKM

#options 	USERCONF	# userconf(4) support
#options	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)

# Kernel(s) to compile
config		netbsd root on ? type ?

mainbus0	at root

# All buses; from the beginning attached to mainbus.
#abus0		at mainbus0		# Master bus on VAX 8600
#sbi0		at mainbus0		# SBI, master bus on 11/780.
#cmi0		at mainbus0		# 11/750 internal bus.
#bi0		at mainbus0		# VAX 8200
vsbus0		at mainbus0		# All VAXstations
ibus0		at mainbus0		# All MicroVAX
#nbi0		at mainbus0		# VAX 8800
#xmi0		at mainbus0		# VAX 6000

# Vsbus, the virtual VAXstation bus, and possible devices.
le0		at vsbus0 csr 0x200e0000 # LANCE ethernet
#ze0		at vsbus0 csr 0x20008000 # SGEC ethernet
dz0		at vsbus0 csr 0x200a0000 # DC-367 DZ-11 lookalike ctlr
#dz0		at vsbus0 csr 0x25000000 # VS4000/90 and 4000/10x serial line
si0		at vsbus0 csr 0x200c0080 # VS2000/3100 SCSI-ctlr
si1		at vsbus0 csr 0x200c0180 # VS2000/3100 SCSI-ctlr
#asc0		at vsbus0 csr 0x200c0080 # VS4000/60 (or VLC) SCSI-ctlr
#asc0		at vsbus0 csr 0x26000080 # VS4000/90 and 4000/10x SCSI-ctlr
smg0		at vsbus0 csr 0x200f0000 # Small monochrome display ctlr.
#clr0		at vsbus0 csr 0x30000000 # 4- or 8-bitplans color graphics

#hdc0		at vsbus0 csr 0x200c0000 # HDC9224 MFM/floppy ctlr
#rd*		at hdc0 drive?		# RD5x disks
#ry*		at hdc0 drive?		# RX floppies

# Ibus, the internal bus on most Microvaxen
#uba0		at ibus0 		# Qbus adapter
#ze0		at ibus0 		# SGEC on-board ethernet
#le0		at ibus0		# LANCE ethernet (MV3400)
#shac0		at ibus0 		# DSSI controller

# SCSI devices
#scsibus*	at asc?
scsibus*	at si?

sd*		at scsibus? target? lun?
st*		at scsibus? target? lun?
cd*		at scsibus? target? lun?
ch*		at scsibus? target? lun?
ss*		at scsibus? target? lun?
uk*		at scsibus? target? lun?

# VAXstation graphics support
wsdisplay0	at smg0
#wsdisplay0	at clr0
#wsdisplay0	at qd0
#wsdisplay0	at qv0
lkkbd0		at dz0 line 0
wskbd*		at lkkbd? console ?
lkms0		at dz0 line 1
wsmouse*	at lkms?

pseudo-device	loop	1
pseudo-device	pty			# pseudo-terminals
pseudo-device	bpfilter 8		# Not supported by de yet.
pseudo-device	ipfilter		# IP filter (firewall) and NAT
#pseudo-device	sl	2
#pseudo-device	ppp	2
#pseudo-device	pppoe			# PPP over Ethernet (RFC 2516)
pseudo-device	tun	2
#pseudo-device	gre	2		# generic L3 over IP tunnel
pseudo-device	gif	4		# IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device	faith	1		# IPv[46] tcp relay translation i/f
#pseudo-device	stf	1		# 6to4 IPv6 over IPv4 encapsulation
#pseudo-device	vlan			# IEEE 802.1q encapsulation
#pseudo-device	bridge			# simple inter-network bridging
#pseudo-device	tb	1
pseudo-device	vnd	4
#pseudo-device	ccd	4
#pseudo-device	raid	8		# RAIDframe disk driver
#options 	RAID_AUTOCONFIG		# auto-configuration of RAID components
# Options to enable various other RAIDframe RAID types.
# options	RF_INCLUDE_EVENODD=1
# options	RF_INCLUDE_RAID5_RS=1
# options	RF_INCLUDE_PARITYLOGGING=1
# options	RF_INCLUDE_CHAINDECLUSTER=1
# options	RF_INCLUDE_INTERDECLUSTER=1
# options 	RF_INCLUDE_PARITY_DECLUSTERING=1
# options	RF_INCLUDE_PARITY_DECLUSTERING_DS=1
pseudo-device	rnd			# /dev/random and in-kernel generator
#pseudo-device	leds			# control the leds on vaxstations.
pseudo-device	clockctl		# user control of clock subsystem

Output from the install kernel:

> boot install.ram.gz
2371692+117752=0x25fe00
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    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 1.6.2 (INSTALL) #0: Wed Feb 11 09:24:13 UTC 2004
    autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/vax/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/vax/compile/INSTALL

VAXstation 3100/m{38,48}
cpu: KA41/42
cpu: Enabling primary cache, secondary cache
total memory = 32640 KB
avail memory = 26356 KB
using 433 buffers containing 1732 KB of memory
mainbus0 (root)
vsbus0 at mainbus0
vsbus0: interrupt mask 8
le0 at vsbus0 csr 0x200e0000 vec 120 ipl 14 maskbit 5 buf 0x635000-0x644fff
le0: address 08:00:2b:1b:4b:9e
le0: 32 receive buffers, 8 transmit buffers
dz0 at vsbus0 csr 0x200a0000 vec 304 ipl 14 maskbit 6
dz0: 4 lines
lkkbd0 at dz0
wskbd0 at lkkbd0 (mux ignored)
si0 at vsbus0 csr 0x200c0080 vec 770 ipl 14 maskbit 1
si0: NCR5380, SCSI ID 6
scsibus0 at si0: 8 targets, 8 luns per target
si1 at vsbus0 csr 0x200c0180 vec 774 ipl 14 maskbit 0
si1: NCR5380, SCSI ID 6
scsibus1 at si1: 8 targets, 8 luns per target
smg0 at vsbus0 csr 0x200f0000 vec 104 ipl 14 maskbit 3
wsdisplay0 at smg0 (kbdmux ignored)
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <SEAGATE, ST52160N, 0344> SCSI2 0/direct fixed
sd0: 2069 MB, 6536 cyl, 4 head, 162 sec, 512 bytes/sect x 4238282 sectors
sd0: async, 8-bit transfers
md0: internal 1536 KB image area
boot device: sd0
root on md0a dumps on md0b
Clock has gained 114 days - CHECK AND RESET THE DATE.
root file system type: ffs

and no more.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.