Subject: 1.3 problems/crashes (was: RE: Building X)
To: 'port-vax@NetBSD.ORG' <port-vax@NetBSD.ORG>
From: Gunnar Helliesen <gunnar@bitcon.no>
List: port-vax
Date: 01/04/1998 06:36:59
From: Boris Gjenero:
> BTW.  The VAX port is really stable now.  It only crashes when you do
> certain well-defined things, like set the clock or fsck (or is it fsck
> -p only?)

(On my VAXstation 2000, 6MB, RD54, running the 1.3_ALPHA snapshot):

or run ps(1) with -aux:

hybelvax:~# uname -a
NetBSD hybelvax.bitcon.no 1.3_ALPHA NetBSD 1.3_ALPHA (GENERIC) #10: Fri
Oct 24 0
5:00:21 MET DST 1997
ragge@urgoriyf:/usr/src/sys/arch/vax/compile/GENERIC va
x
hybelvax:~# sync
hybelvax:~# ps
  PID TT  STAT      TIME COMMAND
  170 ??  Ss     0:24.50 (bash)
 1798 ??  R+     0:01.41 ps 
hybelvax:~# sync
hybelvax:~# ps -a
  PID TT  STAT      TIME COMMAND
  170 ??  Ss     0:24.89 (bash)
 1800 ??  R+     0:00.39 ps -a 
hybelvax:~# sync
hybelvax:~# ps -au
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root      1802 12.0  0.1   391    0 ??  R+    5:53AM    0:00.39 (ps)
root       170  4.3  0.1  1167    0 ??  Ss   Thu07AM    0:25.33 bash 
hybelvax:~# sync
hybelvax:~# ps -aux
USER       PID %CPU %MEM   VSZ  RSS TT  STAT STARTED       TIME COMMAND
root       170  4.2  0.1  1167    0 ??  Ss   Thu07AM    0:25.74 (bash)
root         1  0.0  0.0   355    0 ??  IWs   1Jan70    0:02.94
/sbin/init -s 
root         2  0.0  0.1     0    0 ??  DL    1Jan70    0:03.66
(pagedaemon)
root        87  0.0 panic: pmap_enter: lost mapping
Stopped at       0x800a1267:6AM         bicl3   $0xffbfffff, r2, r1
db> c
syncing disks... done

dumping to dev 1301, offset 21407
dump succeeded

?06 HLT INST
    PC = 800A5370
>>> 

As reported earlier I'm also unable to compile a new kernel:

[...]
cc  -O2 -Werror -I. -I../../../../arch -I../../../.. -nostdinc
-DEXEC_AOUT -DEXE
C_SCRIPT -DVAX410 -DDDB -DKTRACE -DINET -DFFS -DLFS -DMFS -DNFS -DFDESC
-DKERNFS
 -DNULLFS -DPROCFS -DUMAPFS -DUNION -DQUOTA -DFIFO -DNFSSERVER -DSYSVMSG
-DSYSVS
EM -DSYSVSHM -DCOMPAT_43 -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12
-DTCP_C
OMPAT_42 -DLKM -DMAXUSERS=8 -D_KERNEL  -D_VAX_INLINE_  -c param.c
cc: Internal compiler error: program cc1 got fatal signal 4
*** Error code 1

Stop.

I've checked my run limits and don't believe they're the problem:

hybelvax:/sys/arch/vax/compile# ulimit -a
core file size (blocks)  unlimited
data seg size (kbytes)   24576
file size (blocks)       unlimited
max memory size (kbytes) 3456
stack size (kbytes)      512
cpu time (seconds)       unlimited
max user processes       80
pipe size (512 bytes)    1
open files               548
virtual memory (kbytes)  25088
hybelvax:/sys/arch/vax/compile# 

... which is as high as they will go and the same as on my NetBSD/i386
1.3_BETA system which compiles a kernel just fine. I have 16MB swap
configured and it is active. I had no problems on this same hardware
running 1.2G.

I also have an interesting variation on the date problem. When I boot my
VS2K it is always back in 1970, but the day of year and time of day is
correct. I have to boot into single-user where I can set the date
without crashing, set the date to 1998 and continue to multi-user:

[...]
Enter pathname of shell or RETURN for sh: 
Don't login as root, use the su command.
# date
Sun Jan  4 05:06:32 GMT 1970
# date 9801040507
Sun Jan  4 05:07:00 GMT 1998
# ^D
[boot continues to multi-user where /etc/localtime is read and the time
is adjusted to the correct GMT+01]

I can't believe this is a problem with with the hardware clock as the
time and date (except year) are always correct (even after power off,
wait 30 minutes, power on)?

Anyone else with a VS2K seen this?

BTW, I also run ntpdate(8) at boot and minor adjustments (seconds) won't
crash the system:

standard daemons: update cron.
starting network daemons: printer inetd.
starting local daemons: 4 Jan 06:08:54 ntpdate[164]: step time server
193.69.224
.22 offset 3.975120 sec
 xntpd Samba.
Sun Jan  4 06:08:57 CET 1998
Jan  4 06:09:02 hybelvax init: kernel security level changed from 0 to 1

NetBSD/vax (hybelvax.bitcon.no) (console)

login: 

However, if I don't adjust the date (year) in single-user first,
ntpdate(8) will crash the system when it tries to adjust the date 28
years forward in time...

Gunnar

--
Gunnar Helliesen   | Bergen IT Consult AS  | NetBSD/VAX on a uVAX II
Systems Consultant | Bergen, Norway        | '86 Jaguar Sovereign 4.2
gunnar@bitcon.no   | http://www.bitcon.no/ | '73 Mercedes 280 (240D)