Mailing List Archive

python/dist/src/Python ceval.c,2.336,2.337
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv1712/src/Python

Modified Files:
ceval.c
Log Message:
Fix for the recursion_level bug Armin Rigo reported in sf
patch #617312, both on the trunk and the 22-maint branch.

Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).



Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.336
retrieving revision 2.337
diff -C2 -d -r2.336 -r2.337
*** ceval.c 11 Sep 2002 15:36:31 -0000 2.336
--- ceval.c 2 Oct 2002 13:13:46 -0000 2.337
***************
*** 637,640 ****
--- 637,642 ----
f, PyTrace_CALL, Py_None)) {
/* Trace function raised an error */
+ --tstate->recursion_depth;
+ tstate->frame = f->f_back;
return NULL;
}
***************
*** 647,650 ****
--- 649,654 ----
f, PyTrace_CALL, Py_None)) {
/* Profile function raised an error */
+ --tstate->recursion_depth;
+ tstate->frame = f->f_back;
return NULL;
}