NetBSD-Bugs archive

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

port-sparc64/44918: Recent "libc" changes break "bash" under NetBSD/sparc64



>Number:         44918
>Category:       port-sparc64
>Synopsis:       Recent "libc" changes break "bash" under NetBSD/sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 30 08:30:05 +0000 2011
>Originator:     tron%zhadum.org.uk@localhost
>Release:        NetBSD 5.99.51 2011-04-29 sources
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD sheridan.zhadum.org.uk 5.99.51 NetBSD 5.99.51 (SHERIDAN) #0: Fri 
Apr 29 16:35:56 BST 2011 
tron%excalibur.zhadum.org.uk@localhost:/Volumes/Sources/obj/sys/arch/sparc64/compile/SHERIDAN
 sparc64
Architecture: sparc64
Machine: sparc64
>Description:
It seems that the fix for PR port-sparc64/44902 causes problem in e.g. "bash".
The following simple script causes a bus error:

tron@sheridan:~>uname -a
NetBSD sheridan.zhadum.org.uk 5.99.51 NetBSD 5.99.51 (SHERIDAN) #0: Fri Apr 29 
16:35:56 BST 2011  
tron%excalibur.zhadum.org.uk@localhost:/Volumes/Sources/obj/sys/arch/sparc64/compile/SHERIDAN
 sparc64
tron@sheridan:~>cat bang.sh 
#!/usr/pkg/bin/bash
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    :
  fi
fi

tron@sheridan:~>./bang.sh 
./bang.sh: line 19:   923 Bus error               ( test "X`printf %s 
$as_echo`" = "X$as_echo" ) 2> /dev/null
tron@sheridan:~>

It works fine under NetBSD/amd64 5.1_STABLE:

tron@colwyn:~>uname -a
NetBSD colwyn.zhadum.org.uk 5.1_STABLE NetBSD 5.1_STABLE (COLWYN.64) #0: Tue 
Mar  8 09:15:48 GMT 2011  
tron%colwyn.zhadum.org.uk@localhost:/src/sys/compile/COLWYN.64 amd64
tron@colwyn:~>./bang.sh
tron@colwyn:~>

>How-To-Repeat:
cd pkgsrc/databases/mysql51-client
make configure

>Fix:
Not known.



Home | Main Index | Thread Index | Old Index