Some more details:
- this happens for csh but not for bash-1.
- ktracing everything shows further strange behaviour. ktrace causes a
kernel printf "Out of ktrace request objects.". The login shell is
not lost immediately. You get a shell prompt, but at least tty echo is
broken, and hitting return a few times causes all the shells to exit.
With zsh the login shell doesn't die but the suspended su
stays suspended after repeated fg attempts.
The bug is actually in su. It happens with a pre-KSEIII kernel. Backing
out rev.1.54 of su.c (which was apparently supposed to fix a related bug
tcsh's fg command) fixes it.
Thanks very much for tracking this down! Should've suspected su
first (sorry, Julian!).
It would be nice if we had a regression test for most
commands to prevent such breakage. If there is a framework
in place people can add tests for individual commands.
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message