Follow the steps to reproduce the coredump.
*Step 1*
Create the following ksh script 'a'
#!/bin/ksh93
echo \#!/bin/ksh
for i in {1..325}
do
echo echo "!!!!Hello World!!!!"
done
echo "eval \"\$("
echo " { sed '/a/ s|/b/[^/]*/\(.*\)|/b/c/\1|'; } <<MARKER"
echo " echo The End"
echo "MARKER"
echo " )\""
*Step 2*
chmod +x a
**
*Step 3*
a>nested_script
*Step 4*
Create the main ksh script 'm'
#!/bin/ksh93
. nested_script
*Step 5*
chmod +x m
*Step 6*
m
Segmentation fault(coredump)
When the first 8192 bytes are read from nested_scirpt the last characters
are "<<MA" which is later causing a crash. It looks like the crash is
occuring when the partial << marker is read in a buffer. When I shorten
nested script by >= 5 characters or increase by >=2 char. right before <<
then everything is fine.
I wonder if this is a known problem which was already fixed. Please let me
know if you won't be able to reproduce it.
Zbigniew S.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users