Hi, we found two memory leaks in ksh.
1) first one is related to an alias.
### set up
alias ls='/bin/ls -ltr'
### and call it in a loop
a=`ls some_file_that_does_not_exist 2>/dev/null`
as a result, ksh eats more and more memory
2) second one is related to autoloaded functions
### set up
cat >test48_autoload <<EOF
#!/bin/ksh
function test48_autoload
{
echo "function call"
}
EOF
FPATH=.
autoload test48_autoload
### and call it in a loop
a=`test48_autoload`
again, ksh eats more and more memory.
Complete reproducers are attached.
Michal
reproducer1.sh
Description: application/shellscript
reproducer3.sh
Description: application/shellscript
_______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
