title: Long output lines in Emacs shell buffer (comint-mode) cause "stack overflow in regexp matcher"
body: <p>Occasionally some process will output a very long line in an Emacs shell buffer (e.g. a multi-kilobyte Java class path). This frequently leads to a "stack overflow in regexp matcher" error, leaving the whole Emacs session unresponsive. Which regexp is causing this?</p>