Red Hat Bugzilla – Bug 832421
eval segmentation fault with output over 333 lines..
Last modified: 2013-07-04 04:17:37 EDT
Description of problem:
in tcsh, it seems that if the output from eval `x` is greater than 333 lines, a segmentation fault occurs.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
% cat test.sh
for i in `seq 1 1000`
echo "$ECHO $i ;"
% eval `test.sh` | egrep '.*'
also tested on a el6.2/x86_64 system, which returned no error.
bug still exists in 5.9 - the tcsh package has been updated, as far as i can tell.
bug does not seem to exist in the tcsh617 package.
Old release of tcsh-6.14.00 does not support dynamically allocated buffers (available since tcsh-6.14.03) so buffers can easily overflow like in your example.
This one issue is fixed in RHEL-6 therefore I am closing the bug as