In bug #700232, you wrote: > dash -c ': <<EOF; fi' segfaults The syntax error is in fact not necessary for causing a segfault. Something as simple as dash -c '<<EOF;' suffices.
See FreeBSD r210488, tools/regression/bin/sh/parser/heredoc7.0. This may not fix certain cases involving syntax errors like the one in tools/regression/bin/sh/parser/heredoc6.0: dash -c 'command eval ": <<EOF;) "' Therefore, fixing #550756 to detect the syntax errors may be useful for this bug. The result of a lone "fi" is poorly defined and the parse tree may contain here-documents with a NULL nhere.doc which subsequently cause a segfault. If an error is flagged, the partial parse tree will not be used. -- Jilles Tjoelker -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org