On Sun, May 27, 2012 at 12:25 AM, Roland Mainz <[email protected]> wrote: > Hi! > > ---- > > Attached (as "ksh_valgrind_arith_sh_compound_var_arithmetic_failed.sh.txt") > is a test script (derived from the "arith.sh" test module) which fails > when running ast-ksh.2012-05-18 on SuSE 12.1/AMD64 under valgrind > control like this: > -- snip -- > $ valgrind --trace-children=yes --log-file=/dev/null ksh xxx.sh > compound var arithmetic failed, expected '( bar=2 baz=3 foo=1 )', got '' > compound var arithmetic failed, expected '( faz=0 )', got '' > compound var arithmetic failed, expected '( foz=777 )', got '' > compound var arithmetic failed, expected '( foz=777 )', got '' > compound var arithmetic failed, expected '( fuz=777 )', got '' > compound var arithmetic failed, expected 0, got '' > compound var arithmetic failed, expected 0, got '' > -- snip -- > Note that "valgrind" does not report any hits... the example uses > --log-file=/dev/null only to avoid noise in this example. > > I assume this is a bug (and not something caused by valgrinds > interference with fd usage) because if I change the script and > uncomment the line containing the '#force_subshell_fork="ulimit -c 0"' > (the use of "ulimit -c 0" in a subshell will trigger a |fork()| to > make sure this subshell really runs in a seperate process (this is > neccesary since calls to "ulimit" can't be undone)) the script works.
... this still fails with ast-ksh.2012-06-26: -- snip -- $ valgrind --tool=none ~/bin/ksh valgr_ksh_cmdsubfail.sh ==23175== Nulgrind, the minimal Valgrind tool ==23175== Copyright (C) 2002-2011, and GNU GPL'd, by Nicholas Nethercote. ==23175== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==23175== Command: /home/test001/bin/ksh valgr_ksh_cmdsubfail.sh ==23175== ==23178== compound var arithmetic failed, expected '( bar=2 baz=3 foo=1 )', got '' ==23179== compound var arithmetic failed, expected '( faz=0 )', got '' ==23180== compound var arithmetic failed, expected '( foz=777 )', got '' ==23181== compound var arithmetic failed, expected '( foz=777 )', got '' ==23182== compound var arithmetic failed, expected '( fuz=777 )', got '' ==23183== compound var arithmetic failed, expected 0, got '' ==23184== compound var arithmetic failed, expected 0, got '' ==23175== -- snip -- ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
