zsh-workers
 help / color / mirror / code / Atom feed
* 'make check' failures on Solaris 2.5 and 5.8
@ 2003-03-17 17:42 Vin Shelton
  2003-03-17 17:50 ` Vin Shelton
  2003-03-17 20:47 ` Bart Schaefer
  0 siblings, 2 replies; 5+ messages in thread
From: Vin Shelton @ 2003-03-17 17:42 UTC (permalink / raw)
  To: Zsh hackers list

I am getting test failures from the latest CVS sources on my Solaris
5.5 and 5.8 machines here at work.

Here are the test results:

cd Test ; make check
make[1]: Entering directory `/u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test'
if test -n "gcc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules
mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules/zsh
mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules/zsh/net
for f in /u/shelton2/software/src/zsh-2003-03-17/Test/*.ztst; do \
  ../Src/zsh +Z -f /u/shelton2/software/src/zsh-2003-03-17/Test/ztst.zsh $f; \
done
/u/shelton2/software/src/zsh-2003-03-17/Test/A01grammar.ztst: starting.
This test hangs the shell when it fails...
/u/shelton2/software/src/zsh-2003-03-17/Test/A01grammar.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/A02alias.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/A02alias.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/A03quoting.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/A03quoting.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/A04redirect.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/A04redirect.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst: starting.
*** /tmp/zsh.ztst.out.24518	Mon Mar 17 05:43:37 2003
--- /tmp/zsh.ztst.tout.24518	Mon Mar 17 05:43:37 2003
***************
*** 6,10 ****
  1 arguments:
  aus unrühigen Träumen erwachte
  2 arguments:
! fand er sich in seinem Bett
  zu einem ungeheuren Ungeziefer verwandelt.
--- 6,10 ----
  1 arguments:
  aus unrühigen Träumen erwachte
  2 arguments:
! fand er sich in seinem Bzu 
  zu einem ungeheuren Ungeziefer verwandelt.
Test /u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst failed: output differs from expected as shown above for:
  functst() { print $# arguments:; print -l $*; }
  functst "Eines Morgens" "als Gregor Samsa"
  functst ""
  functst "aus unrühigen Träumen erwachte"
  foo="fand er sich in seinem Bett"
  bar=
  rod="zu einem ungeheuren Ungeziefer verwandelt."
  functst $foo $bar $rod
  alias foo='print This is alias one'
Was testing: function argument passing
/u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst: test failed.
/u/shelton2/software/src/zsh-2003-03-17/Test/A06assign.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/A06assign.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/B01cd.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/B01cd.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/B02typeset.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/B02typeset.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/B03print.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/B03print.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/C01arith.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/C01arith.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst: starting.
Test /u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst failed: bad status 1, expected 0 from:
  sleep 1
  cat unmodified
  touch newnewnew
  if [[ $OSTYPE == "cygwin" ]]; then
    print -u8 "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
    true
  else
    [[ -N newnewnew && ! -N unmodified ]]
  fi
Was testing: -N cond
/u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst: test failed.
The following may (or may not) help identifying the cause:
  This test can fail on NFS-mounted filesystems as the access and
  modification times are not updated separately.  This does not indicate
  a problem in the shell.
/u/shelton2/software/src/zsh-2003-03-17/Test/C03traps.ztst: starting.
This test takes at least three seconds...
This test, too, takes at least three seconds...
/u/shelton2/software/src/zsh-2003-03-17/Test/C03traps.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/C04funcdef.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/C04funcdef.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/D01prompt.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/D01prompt.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/D02glob.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/D02glob.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/D03procsubst.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/D03procsubst.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst: starting.
*** /tmp/zsh.ztst.out.25346	Mon Mar 17 05:44:17 2003
--- /tmp/zsh.ztst.tout.25346	Mon Mar 17 05:44:17 2003
***************
*** 1 ****
! expletive deleted boldly claws dogs expletive deleted fight
--- 1 ----
! expletive deleteb boldly claws dogs expletive deletef fight
Test /u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst failed: output differs from expected as shown above for:
  print ${array1:/[aeiou]*/expletive deleted}
Was testing: array ${...:/...}
/u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst: test failed.
/u/shelton2/software/src/zsh-2003-03-17/Test/D05array.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/D05array.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst: starting.
*** /tmp/zsh.ztst.out.25507	Mon Mar 17 05:44:21 2003
--- /tmp/zsh.ztst.tout.25507	Mon Mar 17 05:44:21 2003
***************
*** 1,4 ****
  1 26 1 26 26
! Twinkle, twinkle, little *, [how] I [wonder] what? ?  You are!
  *, [how] I [wonder] what?  You are!
  ] I [
--- 1,4 ----
  1 26 1 26 26
! Twinkle, twinkle, little *, [how] I [wonder] wha?  ?  You are!
  *, [how] I [wonder] what?  You are!
  ] I [
Test /u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst failed: output differs from expected as shown above for:
  x='*'
  print $s[(i)*] $s[(i)\*] $s[(i)$x*] $s[(i)${(q)x}*] $s[(I)$x\*]
  print $s[(r)?,(R)\?] $s[(r)\?,(R)?]
  print $s[(r)\*,(R)*]
  print $s[(r)\],(R)\[]
Was testing: Scalar pattern subscripts with wildcards
/u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst: test failed.
/u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst: starting.
*** /tmp/zsh.ztst.out.25517	Mon Mar 17 05:44:27 2003
--- /tmp/zsh.ztst.tout.25517	Mon Mar 17 05:44:27 2003
***************
*** 1,8 ****
! var=/any/old/name
  anything goes/here=/any/old/name
  split=maybe
  not
! var=/any/old/name
  anything goes/here=/any/old/name
  split=maybe not
  var=~
--- 1,8 ----
! var=/any/old/nama
  anything goes/here=/any/old/name
  split=maybe
  not
! var=/any/old/nama
  anything goes/here=/any/old/name
  split=maybe not
  var=~
Test /u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst failed: output differs from expected as shown above for:
  fn() {
    local HOME=/any/old/name
    print -l var=~ 'anything goes/here'=~ split=`echo maybe not`;
  }
  setopt magicequalsubst
  fn
  setopt kshtypeset
  fn
  unsetopt magicequalsubst kshtypeset
  fn
Was testing: MAGIC_EQUAL_SUBST option
/u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst: test failed.
/u/shelton2/software/src/zsh-2003-03-17/Test/E02xtrace.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/E02xtrace.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/V01zmodload.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/V01zmodload.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/V02zregexparse.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/V02zregexparse.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y01completion.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y01completion.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y02compmatch.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y02compmatch.ztst: all tests successful.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y03arguments.ztst: starting.
/u/shelton2/software/src/zsh-2003-03-17/Test/Y03arguments.ztst: all tests successful.
rm -rf Modules .zcompdump
make[1]: Leaving directory `/u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test'


I am seeing no test failures on my Linux machine at home.

Here are the details of my configuration info:

zsh configuration
-----------------
zsh version               : 4.1.0-dev-7
host operating system     : sparc-sun-solaris2.5.1
source code location      : /u/shelton2/software/src/zsh-2003-03-17
compiler                  : gcc
preprocessor flags        : 
executable compiler flags :  -Wall -Wmissing-prototypes -O2
module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
executable linker flags   :   -s 
module linker flags       :   -s -G
library flags             : -lsocket -ldl -lnsl -lcurses -lm  -lc
installation basename     : zsh
binary install path       : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/bin
man page install path     : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/man
info install path         : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/info
functions install path    : /u/shelton2/software/share/zsh/4.1.0-dev-7/functions
See config.modules for installed modules and functions.


Regards,
  Vin

-- 
In a minute there is time
For decisions and revisions which a minute will reverse.         T.S. Eliot
[URL: http://www.cs.amherst.edu/~ccm/prufrock.html]


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 'make check' failures on Solaris 2.5 and 5.8
  2003-03-17 17:42 'make check' failures on Solaris 2.5 and 5.8 Vin Shelton
@ 2003-03-17 17:50 ` Vin Shelton
  2003-03-18 12:09   ` Oliver Kiddle
  2003-03-17 20:47 ` Bart Schaefer
  1 sibling, 1 reply; 5+ messages in thread
From: Vin Shelton @ 2003-03-17 17:50 UTC (permalink / raw)
  To: Zsh hackers list

Sorry to followup my own post, but I forgot to mention that the
failures started appearing on 2003-03-14.  My 2003-03-13 build passed
'make check' fine, except for the expected C02cond failure.

  - Vin

Vin Shelton <shelton@icd.teradyne.com> writes:
> I am getting test failures from the latest CVS sources on my Solaris
> 5.5 and 5.8 machines here at work.
>
> Here are the test results:
>
> cd Test ; make check
> make[1]: Entering directory `/u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test'
> if test -n "gcc"; then \
>   cd .. && DESTDIR= \
>   make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
> fi
> mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules
> mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules/zsh
> mkdir /u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test/Modules/zsh/net
> for f in /u/shelton2/software/src/zsh-2003-03-17/Test/*.ztst; do \
>   ../Src/zsh +Z -f /u/shelton2/software/src/zsh-2003-03-17/Test/ztst.zsh $f; \
> done
> /u/shelton2/software/src/zsh-2003-03-17/Test/A01grammar.ztst: starting.
> This test hangs the shell when it fails...
> /u/shelton2/software/src/zsh-2003-03-17/Test/A01grammar.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A02alias.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A02alias.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A03quoting.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A03quoting.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A04redirect.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A04redirect.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst: starting.
> *** /tmp/zsh.ztst.out.24518	Mon Mar 17 05:43:37 2003
> --- /tmp/zsh.ztst.tout.24518	Mon Mar 17 05:43:37 2003
> ***************
> *** 6,10 ****
>   1 arguments:
>   aus unrühigen Träumen erwachte
>   2 arguments:
> ! fand er sich in seinem Bett
>   zu einem ungeheuren Ungeziefer verwandelt.
> --- 6,10 ----
>   1 arguments:
>   aus unrühigen Träumen erwachte
>   2 arguments:
> ! fand er sich in seinem Bzu 
>   zu einem ungeheuren Ungeziefer verwandelt.
> Test /u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst failed: output differs from expected as shown above for:
>   functst() { print $# arguments:; print -l $*; }
>   functst "Eines Morgens" "als Gregor Samsa"
>   functst ""
>   functst "aus unrühigen Träumen erwachte"
>   foo="fand er sich in seinem Bett"
>   bar=
>   rod="zu einem ungeheuren Ungeziefer verwandelt."
>   functst $foo $bar $rod
>   alias foo='print This is alias one'
> Was testing: function argument passing
> /u/shelton2/software/src/zsh-2003-03-17/Test/A05execution.ztst: test failed.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A06assign.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/A06assign.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B01cd.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B01cd.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B02typeset.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B02typeset.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B03print.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/B03print.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C01arith.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C01arith.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst: starting.
> Test /u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst failed: bad status 1, expected 0 from:
>   sleep 1
>   cat unmodified
>   touch newnewnew
>   if [[ $OSTYPE == "cygwin" ]]; then
>     print -u8 "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
>     true
>   else
>     [[ -N newnewnew && ! -N unmodified ]]
>   fi
> Was testing: -N cond
> /u/shelton2/software/src/zsh-2003-03-17/Test/C02cond.ztst: test failed.
> The following may (or may not) help identifying the cause:
>   This test can fail on NFS-mounted filesystems as the access and
>   modification times are not updated separately.  This does not indicate
>   a problem in the shell.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C03traps.ztst: starting.
> This test takes at least three seconds...
> This test, too, takes at least three seconds...
> /u/shelton2/software/src/zsh-2003-03-17/Test/C03traps.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C04funcdef.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/C04funcdef.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D01prompt.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D01prompt.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D02glob.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D02glob.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D03procsubst.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D03procsubst.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst: starting.
> *** /tmp/zsh.ztst.out.25346	Mon Mar 17 05:44:17 2003
> --- /tmp/zsh.ztst.tout.25346	Mon Mar 17 05:44:17 2003
> ***************
> *** 1 ****
> ! expletive deleted boldly claws dogs expletive deleted fight
> --- 1 ----
> ! expletive deleteb boldly claws dogs expletive deletef fight
> Test /u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst failed: output differs from expected as shown above for:
>   print ${array1:/[aeiou]*/expletive deleted}
> Was testing: array ${...:/...}
> /u/shelton2/software/src/zsh-2003-03-17/Test/D04parameter.ztst: test failed.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D05array.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D05array.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst: starting.
> *** /tmp/zsh.ztst.out.25507	Mon Mar 17 05:44:21 2003
> --- /tmp/zsh.ztst.tout.25507	Mon Mar 17 05:44:21 2003
> ***************
> *** 1,4 ****
>   1 26 1 26 26
> ! Twinkle, twinkle, little *, [how] I [wonder] what? ?  You are!
>   *, [how] I [wonder] what?  You are!
>   ] I [
> --- 1,4 ----
>   1 26 1 26 26
> ! Twinkle, twinkle, little *, [how] I [wonder] wha?  ?  You are!
>   *, [how] I [wonder] what?  You are!
>   ] I [
> Test /u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst failed: output differs from expected as shown above for:
>   x='*'
>   print $s[(i)*] $s[(i)\*] $s[(i)$x*] $s[(i)${(q)x}*] $s[(I)$x\*]
>   print $s[(r)?,(R)\?] $s[(r)\?,(R)?]
>   print $s[(r)\*,(R)*]
>   print $s[(r)\],(R)\[]
> Was testing: Scalar pattern subscripts with wildcards
> /u/shelton2/software/src/zsh-2003-03-17/Test/D06subscript.ztst: test failed.
> /u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst: starting.
> *** /tmp/zsh.ztst.out.25517	Mon Mar 17 05:44:27 2003
> --- /tmp/zsh.ztst.tout.25517	Mon Mar 17 05:44:27 2003
> ***************
> *** 1,8 ****
> ! var=/any/old/name
>   anything goes/here=/any/old/name
>   split=maybe
>   not
> ! var=/any/old/name
>   anything goes/here=/any/old/name
>   split=maybe not
>   var=~
> --- 1,8 ----
> ! var=/any/old/nama
>   anything goes/here=/any/old/name
>   split=maybe
>   not
> ! var=/any/old/nama
>   anything goes/here=/any/old/name
>   split=maybe not
>   var=~
> Test /u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst failed: output differs from expected as shown above for:
>   fn() {
>     local HOME=/any/old/name
>     print -l var=~ 'anything goes/here'=~ split=`echo maybe not`;
>   }
>   setopt magicequalsubst
>   fn
>   setopt kshtypeset
>   fn
>   unsetopt magicequalsubst kshtypeset
>   fn
> Was testing: MAGIC_EQUAL_SUBST option
> /u/shelton2/software/src/zsh-2003-03-17/Test/E01options.ztst: test failed.
> /u/shelton2/software/src/zsh-2003-03-17/Test/E02xtrace.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/E02xtrace.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/V01zmodload.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/V01zmodload.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/V02zregexparse.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/V02zregexparse.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y01completion.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y01completion.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y02compmatch.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y02compmatch.ztst: all tests successful.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y03arguments.ztst: starting.
> /u/shelton2/software/src/zsh-2003-03-17/Test/Y03arguments.ztst: all tests successful.
> rm -rf Modules .zcompdump
> make[1]: Leaving directory `/u/shelton2/software/build/SunOS-5.5/zsh-2003-03-17/Test'
>
>
> I am seeing no test failures on my Linux machine at home.
>
> Here are the details of my configuration info:
>
> zsh configuration
> -----------------
> zsh version               : 4.1.0-dev-7
> host operating system     : sparc-sun-solaris2.5.1
> source code location      : /u/shelton2/software/src/zsh-2003-03-17
> compiler                  : gcc
> preprocessor flags        : 
> executable compiler flags :  -Wall -Wmissing-prototypes -O2
> module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
> executable linker flags   :   -s 
> module linker flags       :   -s -G
> library flags             : -lsocket -ldl -lnsl -lcurses -lm  -lc
> installation basename     : zsh
> binary install path       : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/bin
> man page install path     : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/man
> info install path         : /u/shelton2/software/SunOS-5.5/zsh-2003-03-17/info
> functions install path    : /u/shelton2/software/share/zsh/4.1.0-dev-7/functions
> See config.modules for installed modules and functions.
>
>
> Regards,
>   Vin
>
> -- 
> In a minute there is time
> For decisions and revisions which a minute will reverse.         T.S. Eliot
> [URL: http://www.cs.amherst.edu/~ccm/prufrock.html]
>

-- 
In a minute there is time
For decisions and revisions which a minute will reverse.         T.S. Eliot
[URL: http://www.cs.amherst.edu/~ccm/prufrock.html]


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 'make check' failures on Solaris 2.5 and 5.8
  2003-03-17 17:42 'make check' failures on Solaris 2.5 and 5.8 Vin Shelton
  2003-03-17 17:50 ` Vin Shelton
@ 2003-03-17 20:47 ` Bart Schaefer
  1 sibling, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 2003-03-17 20:47 UTC (permalink / raw)
  To: Zsh hackers list

On Mar 17, 12:42pm, Vin Shelton wrote:
} Subject: 'make check' failures on Solaris 2.5 and 5.8
}
} I am getting test failures from the latest CVS sources on my Solaris
} 5.5 and 5.8 machines here at work.
} 
} ! fand er sich in seinem Bett
} --- 6,10 ----
} ! fand er sich in seinem Bzu 

} ! expletive deleted boldly claws dogs expletive deleted fight
} --- 1 ----
} ! expletive deleteb boldly claws dogs expletive deletef fight

} ! Twinkle, twinkle, little *, [how] I [wonder] what? ?  You are!
} --- 1,4 ----
} ! Twinkle, twinkle, little *, [how] I [wonder] wha?  ?  You are!

These all look like some kind of memory management screwup to me.  Bits of
the next "word" are creeping onto the end of the previous word.

Try reconfiguring with --enable-zsh-debug --enable-zsh-mem-debug ??


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 'make check' failures on Solaris 2.5 and 5.8
  2003-03-17 17:50 ` Vin Shelton
@ 2003-03-18 12:09   ` Oliver Kiddle
  2003-03-18 14:10     ` Vin Shelton
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Kiddle @ 2003-03-18 12:09 UTC (permalink / raw)
  To: Vin Shelton; +Cc: Zsh hackers list

Vin Shelton wrote:
> Sorry to followup my own post, but I forgot to mention that the
> failures started appearing on 2003-03-14.  My 2003-03-13 build passed
> 'make check' fine, except for the expected C02cond failure.

That narrows it down to being my fault in the \u/\U change. Thanks for
reporting it.

The problem is that MB_LEN_MAX is less than 6 on Solaris so it wasn't
allocating enough memory. UTF-8 has characters up to 6 bytes in length
so this suprised me. Solaris 8 pretends to offer UTF-8 locales but I
can't get them to work. The patch below is a quick fix. MB_LEN_MAX is
defined to be 16 in recent glibc which seems high. Anyone know why or
what character sets need that? Handling of $'...' will need rethinking if
'\unnnn' can produce more than 6 bytes because $'...' is done by modifying
the string in place.

If anyone has access to any operating systems other than Linux
and Solaris 8, it would be really useful to know whether it defines
__STDC_ISO_10646__, the value of MB_LEN_MAX and, even more valuably, what
iconv conversions it allows. iconv doesn't necessarily use the same names
for character sets as nl_langinfo(CODESET). unicode can be ISO-10646,
ISO646, 646, UCS4 and other variants so I perhaps should manually convert
to UTF-8 as that has fewer names and then try converting to WCHAR_T and
then nl_langinfo(CODESET).

Oliver

Index: utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.45
diff -u -r1.45 utils.c
--- utils.c	14 Mar 2003 13:36:16 -0000	1.45
+++ utils.c	18 Mar 2003 11:33:59 -0000
@@ -3311,15 +3311,12 @@
     char *inptr, *outptr;
 #  endif
     size_t count;
-    size_t buflen = MB_LEN_MAX * (strlen(s) / 6) + (strlen(s) % 6) + 1;
-#else
-    size_t buflen = strlen(s) + 1;
 #endif
 
     if (fromwhere == 6)
 	t = buf = tmp;
     else if (fromwhere != 4)
-	t = buf = zhalloc(buflen);
+	t = buf = zhalloc(strlen(s) + 1);
     else {
 	t = buf = s;
 	s += 2;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 'make check' failures on Solaris 2.5 and 5.8
  2003-03-18 12:09   ` Oliver Kiddle
@ 2003-03-18 14:10     ` Vin Shelton
  0 siblings, 0 replies; 5+ messages in thread
From: Vin Shelton @ 2003-03-18 14:10 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: Zsh hackers list

Oliver Kiddle <okiddle@yahoo.co.uk> writes:

> Vin Shelton wrote:
>> Sorry to followup my own post, but I forgot to mention that the
>> failures started appearing on 2003-03-14.  My 2003-03-13 build passed
>> 'make check' fine, except for the expected C02cond failure.
>
> That narrows it down to being my fault in the \u/\U change. Thanks for
> reporting it.
>
> The problem is that MB_LEN_MAX is less than 6 on Solaris so it wasn't
> allocating enough memory. UTF-8 has characters up to 6 bytes in length
> so this suprised me. Solaris 8 pretends to offer UTF-8 locales but I
> can't get them to work. The patch below is a quick fix. MB_LEN_MAX is
> defined to be 16 in recent glibc which seems high. Anyone know why or
> what character sets need that? Handling of $'...' will need rethinking if
> '\unnnn' can produce more than 6 bytes because $'...' is done by modifying
> the string in place.
>
> If anyone has access to any operating systems other than Linux
> and Solaris 8, it would be really useful to know whether it defines
> __STDC_ISO_10646__, the value of MB_LEN_MAX and, even more valuably, what
> iconv conversions it allows. iconv doesn't necessarily use the same names
> for character sets as nl_langinfo(CODESET). unicode can be ISO-10646,
> ISO646, 646, UCS4 and other variants so I perhaps should manually convert
> to UTF-8 as that has fewer names and then try converting to WCHAR_T and
> then nl_langinfo(CODESET).
>
> Oliver
>
> Index: utils.c
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
> retrieving revision 1.45
> diff -u -r1.45 utils.c
> --- utils.c	14 Mar 2003 13:36:16 -0000	1.45
> +++ utils.c	18 Mar 2003 11:33:59 -0000
> @@ -3311,15 +3311,12 @@
>      char *inptr, *outptr;
>  #  endif
>      size_t count;
> -    size_t buflen = MB_LEN_MAX * (strlen(s) / 6) + (strlen(s) % 6) + 1;
> -#else
> -    size_t buflen = strlen(s) + 1;
>  #endif
>  
>      if (fromwhere == 6)
>  	t = buf = tmp;
>      else if (fromwhere != 4)
> -	t = buf = zhalloc(buflen);
> +	t = buf = zhalloc(strlen(s) + 1);
>      else {
>  	t = buf = s;
>  	s += 2;
>

Oliver,

Your quick fix solved my 'make check' problems on both Solaris 5.5 and
5.8.

Thanks,
  Vin


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-18 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-17 17:42 'make check' failures on Solaris 2.5 and 5.8 Vin Shelton
2003-03-17 17:50 ` Vin Shelton
2003-03-18 12:09   ` Oliver Kiddle
2003-03-18 14:10     ` Vin Shelton
2003-03-17 20:47 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).