mirror of https://github.com/python/cpython
Make undetected error on stack unwind a fatal error.
This commit is contained in:
parent
92bee36045
commit
904ed86a77
|
@ -2306,10 +2306,10 @@ eval_frame(PyFrameObject *f)
|
||||||
else {
|
else {
|
||||||
/* This check is expensive! */
|
/* This check is expensive! */
|
||||||
if (PyErr_Occurred()) {
|
if (PyErr_Occurred()) {
|
||||||
fprintf(stderr,
|
char buf[1024];
|
||||||
"XXX undetected error (why=%d)\n",
|
sprintf(buf, "Stack unwind with exception "
|
||||||
why);
|
"set and why=%d", why);
|
||||||
why = WHY_EXCEPTION;
|
Py_FatalError(buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue