Subject: bin/19693: /bin/sh broken on arm
To: None <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 01/05/2003 12:09:27
>Number:         19693
>Category:       bin
>Synopsis:       /bin/sh broken on arm
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 05 03:10:00 PST 2003
>Originator:     Martin Husemann
>Release:        NetBSD 1.6L
System: NetBSD 1.6L NetBSD 1.6L (DROWSY) #0: Sat Jan  4 11:49:31 MET 2003 shark
Architecture: arm
Machine: shark

(I would have send-pr'd this from the shark itself, but that shell can't even
execute send-pr anymore...)

I updated my shark to -current the day before. Ever since then /bin/sh fails
in mysterious ways. It can't execute scripts that are not changed and used to
work forever. One example is "send-pr", another one is 
"sh /etc/rc.d/ntpd status", where a -x version outputs this (boring defaults at
the start left out):

+ named=YES
+ dhcpd=YES
+ rpcbind=YES
+ rpcbind_flags=-l
+ ntpd=YES
+ sendmail=YES
+ sshd=YES
+ nfs_client=YES
+ nfs_server=NO
+ upsmon=YES
+ upslog=NO
+ upsdriver=NO
+ upsd=NO
+ _rc_conf_loaded=YES
+ [ -f /etc/rc.conf.d/ntpd ]
+ run_rc_command status
+ rc_arg=status
+ [ -z ntpd ]
+ _keywords=start stop restart rcvar 
+ rc_pid=
+ _pidcmd=
+ _procname=/usr/sbin/ntpd
+ [ -z  -a -n /usr/sbin/ntpd ]
+ [ -n /var/run/ ]
+ _pidcmd=rc_pid=$(check_pidfile /var/run/ /usr/sbin/ntpd )
+ [ -n rc_pid=$(check_pidfile /var/run/ /usr/sbin/ntpd ) ]
+ _keywords=start stop restart rcvar  status poll
+ [ -z status ]
+ [ -n  ]
+ eval rc_flags=$ntpd_flags
eval: Out of space

Before the last line there is a long pause (so it's not the limits being to
small, but it's realy doing something recursive or whatever)


Update your shark (or probably any arm machine) to -current and invoke

This is arm specific, I built a release from the same source for sparc and
i386, both work just fine. All compilations done on i386, in case that