But it bumps into another bug lurking in process.c, which just happened to work okay previously because ert would bind debug-on-error while running tests. There is only one test in the Emacs test suite which triggers this, we can work around it by binding debug-on-error there: