[Python-checkins] python/dist/src/Python ceval.c,2.371,2.372

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Wed Nov 5 12:29:37 EST 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv23179

Modified Files:
	ceval.c 
Log Message:
Make undetected error on stack unwind a fatal error.


Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.371
retrieving revision 2.372
diff -C2 -d -r2.371 -r2.372
*** ceval.c	28 Oct 2003 12:05:48 -0000	2.371
--- ceval.c	5 Nov 2003 17:29:35 -0000	2.372
***************
*** 2307,2314 ****
  			/* This check is expensive! */
  			if (PyErr_Occurred()) {
! 				fprintf(stderr,
! 					"XXX undetected error (why=%d)\n",
! 					why);
! 				why = WHY_EXCEPTION;
  			}
  		}
--- 2307,2314 ----
  			/* This check is expensive! */
  			if (PyErr_Occurred()) {
! 				char buf[1024];
! 				sprintf(buf, "Stack unwind with exception "
! 					"set and why=%d", why);
! 				Py_FatalError(buf);
  			}
  		}





More information about the Python-checkins mailing list