Hi,

we've found a bug in the ksh. It's related to bug that was already reported:

http://www.mail-archive.com/[email protected]/msg00630.html

seems there was used something like simplified version of the patch pasted in 
the mailing list which fixed reproducer pasted there. However this does not 
seem enough, because following reproducer makes ksh hang in the loop and 
segfault because of stack overflow:

ksh -c 'trap "touch abc" 2 13 ; echo "blah 1" ; usleep 10; echo "blah 2"; 
usleep 10' | head -n 1

This pattern is repeated in the backtrace:

sh_exec  -> sh_chktrap -> sh_trap -> sh_eval -> sh_exec ...

When complete patch from the mailing list is used, everything works.

Regards,
Michal Hlavinka
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to