Discussion:
[ast-developers] "arith.sh" failures on Solaris 11/SPARC ... / was:
Roland Mainz
2013-06-18 15:30:36 UTC
Permalink
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
On Solaris 11/B134/SPARC64/64bit/debug I'm getting the following
failures from "arith.sh":
-- snip --
test arith begins at 2013-06-18+17:23:48
arith.sh[290]: 2**3 not working
arith.sh[293]: 2**3*2 not working
arith.sh[296]: 4**3**2 not working
arith.sh[299]: (4**3)**2 not working
arith.sh[565]: 4.**3/10!=6.4
arith.sh[573]: mysin() not close to sin()
arith.sh[769]: integer division with numbers near intmax not working
arith.sh[771]: integer division with denominator -1 fails
test arith failed at 2013-06-18+17:23:55 with exit code 8 [ 216 tests 8 errors ]
-- snip --
... the issues didn't occur in a 32bit optimised build of
ast-ksh.2013-06-11 ... either it's a new bug or an older triggered by
lack of test coverage... ;-/

Quick test...
-- snip --
$ ksh -c 'print $(( 2**3. )) $(( pow(2,3.) ))'
1 8
-- snip --
... it should print "8.8" ...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Roland Mainz
2013-06-18 15:54:01 UTC
Permalink
Post by Roland Mainz
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
On Solaris 11/B134/SPARC64/64bit/debug I'm getting the following
-- snip --
test arith begins at 2013-06-18+17:23:48
arith.sh[290]: 2**3 not working
arith.sh[293]: 2**3*2 not working
arith.sh[296]: 4**3**2 not working
arith.sh[299]: (4**3)**2 not working
arith.sh[565]: 4.**3/10!=6.4
arith.sh[573]: mysin() not close to sin()
arith.sh[769]: integer division with numbers near intmax not working
arith.sh[771]: integer division with denominator -1 fails
test arith failed at 2013-06-18+17:23:55 with exit code 8 [ 216 tests 8 errors ]
-- snip --
... the issues didn't occur in a 32bit optimised build of
ast-ksh.2013-06-11 ... either it's a new bug or an older triggered by
lack of test coverage... ;-/
Quick test...
-- snip --
$ ksh -c 'print $(( 2**3. )) $(( pow(2,3.) ))'
1 8
-- snip --
... it should print "8.8" ...
ast-ksh.2013-06-11 had the same issues with a 64bit debug build on
SPARC but not with the 32bit optimised build... still digging...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Roland Mainz
2013-06-18 16:31:44 UTC
Permalink
Post by Roland Mainz
Post by Roland Mainz
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
On Solaris 11/B134/SPARC64/64bit/debug I'm getting the following
-- snip --
test arith begins at 2013-06-18+17:23:48
arith.sh[290]: 2**3 not working
arith.sh[293]: 2**3*2 not working
arith.sh[296]: 4**3**2 not working
arith.sh[299]: (4**3)**2 not working
arith.sh[565]: 4.**3/10!=6.4
arith.sh[573]: mysin() not close to sin()
arith.sh[769]: integer division with numbers near intmax not working
arith.sh[771]: integer division with denominator -1 fails
test arith failed at 2013-06-18+17:23:55 with exit code 8 [ 216 tests 8 errors ]
-- snip --
... the issues didn't occur in a 32bit optimised build of
ast-ksh.2013-06-11 ... either it's a new bug or an older triggered by
lack of test coverage... ;-/
Quick test...
-- snip --
$ ksh -c 'print $(( 2**3. )) $(( pow(2,3.) ))'
1 8
-- snip --
... it should print "8.8" ...
ast-ksh.2013-06-11 had the same issues with a 64bit debug build on
SPARC but not with the 32bit optimised build... still digging...
ast-ksh.2013-05-24 on Solaris 11/SPARC, { 64bit/debug,
64bit/optimised, 32bit/debug, 32bit/optimised } all pass "arith.sh"
... something broke 64bit SPARC builds between ast-ksh.2013-05-24 and
ast-ksh.2013-06-11 ... ;-((

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Irek Szczesniak
2013-06-19 11:30:51 UTC
Permalink
Post by Roland Mainz
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
On Solaris 11/B134/SPARC64/64bit/debug I'm getting the following
-- snip --
test arith begins at 2013-06-18+17:23:48
arith.sh[290]: 2**3 not working
arith.sh[293]: 2**3*2 not working
arith.sh[296]: 4**3**2 not working
arith.sh[299]: (4**3)**2 not working
arith.sh[565]: 4.**3/10!=6.4
arith.sh[573]: mysin() not close to sin()
arith.sh[769]: integer division with numbers near intmax not working
arith.sh[771]: integer division with denominator -1 fails
test arith failed at 2013-06-18+17:23:55 with exit code 8 [ 216 tests 8 errors ]
-- snip --
... the issues didn't occur in a 32bit optimised build of
ast-ksh.2013-06-11 ... either it's a new bug or an older triggered by
lack of test coverage... ;-/
Quick test...
-- snip --
$ ksh -c 'print $(( 2**3. )) $(( pow(2,3.) ))'
1 8
-- snip --
... it should print "8.8" ...
ksh on SPARC has problems with the pow() function. I don't know yet
why this happens.

Irek

Loading...