[issue2548] Undetected error in exception handling

2010-08-16 Thread Mark Lawrence
Changes by Mark Lawrence : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2548] Undetected error in exception handling

2010-07-13 Thread Brett Cannon
Brett Cannon added the comment: It theoretically could be backported so it can stay open for now if someone feels adventurous to backport before 2.6.6. Once that's out the door, though, this can get closed. -- ___ Python tracker

[issue2548] Undetected error in exception handling

2010-07-13 Thread Mark Lawrence
Mark Lawrence added the comment: This has been fixed in Python 2.7, I suppose that the code could be backported to 2.6, or is it now too late so this can be closed as "won't fix"? -- nosy: +BreamoreBoy ___ Python tracker

[issue2548] Undetected error in exception handling

2010-03-19 Thread Sean Reifschneider
Sean Reifschneider added the comment: The final word on this seems to be this: - Wait until when we aren't in a beta release. (DONE) - Quoting: Well, For Py3K at least we might need to consider going through the C API and fixing it so that these incorrect assumptions that functio

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: After thinking about it a bit, I think the whole recursion checking thing has gone a bit mad. It probably deserves proper discussion on the mailing-list. In the meantime, I'm downgrading this bug to critical. -- priority: release bloc

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Ouch, there were a couple of useless lines in ceval.h. New patch. Added file: http://bugs.python.org/file11314/excrecurse.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11313/excrecurse.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- keywords: +needs review ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-lis

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Ok, here is a patch which seems to cover all bases. It fixes the present bug, adds tests for the aforementioned ex-crashers, backports the somewhat smarter recursion checking from py3k, and improves the latter by fixing a nasty recursion bug w

[issue2548] Undetected error in exception handling

2008-08-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: The crashers which were deleted in rev58032 should at least have been turned into unittests... well. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2548] Undetected error in exception handling

2008-08-21 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: For what it's worth, py3k has a subtler recursion checking algorithm which would probably fix this problem if backported properly. See _Py_CheckRecursiveCall() in ceval.c (lines 462+), and especially the role played by the tstate->overflowed f

[issue2548] Undetected error in exception handling

2008-08-21 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- priority: critical -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue2548] Undetected error in exception handling

2008-08-13 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Wed, Aug 13, 2008 at 12:49 PM, Daniel Diniz <[EMAIL PROTECTED]> wrote: > > Daniel Diniz <[EMAIL PROTECTED]> added the comment: > > FWIW, rev58032 introduced this: >tstate = PyThreadState_GET(); >if (++tstate->recursion_depth > Py_GetR

[issue2548] Undetected error in exception handling

2008-08-13 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: FWIW, rev58032 introduced this: tstate = PyThreadState_GET(); if (++tstate->recursion_depth > Py_GetRecursionLimit()) { --tstate->recursion_depth; PyErr_SetObject(PyExc_RuntimeError, PyExc_RecursionErrorInst); ret

[issue2548] Undetected error in exception handling

2008-07-30 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Ping -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2548] Undetected error in exception handling

2008-06-11 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: This is a bug that can be fixed after beta, so I'm knocking it back to critical for beta 1. -- priority: release blocker -> critical ___ Python tracker <[EMAIL PROTECTED]>

[issue2548] Undetected error in exception handling

2008-05-13 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- priority: critical -> release blocker __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mai

[issue2548] Undetected error in exception handling

2008-05-07 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I'm not going to hold up the 2.6 alpha release for this, but will bump it up for the first 2.6 beta. -- nosy: +barry priority: release blocker -> critical __ Tracker <[EMAIL PROTECTED]>

[issue2548] Undetected error in exception handling

2008-04-06 Thread Daniel Diniz
Daniel Diniz <[EMAIL PROTECTED]> added the comment: I've identified rev58032 [1] as the one introducing this issue. It's Brett's code, fixing a nasty crasher and adding a pre-built exception (PyExc_RecursionErrorInst). [1] http://svn.python.org/view?rev=58032&view=rev P.S.: Thanks Thomas for c

[issue2548] Undetected error in exception handling

2008-04-05 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Neal has the memory of an elephant or something. Yes, I dealt with a similar issue where the recursion limit was hit, but then normalizing the exception just caused it to hit it again. I thought I changed it such that normalizing an exception

[issue2548] Undetected error in exception handling

2008-04-04 Thread Daniel Diniz
Changes by Daniel Diniz <[EMAIL PROTECTED]>: -- nosy: +ajaksu2 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2548] Undetected error in exception handling

2008-04-04 Thread Neal Norwitz
Neal Norwitz <[EMAIL PROTECTED]> added the comment: Brett, didn't you have a similar problem you fixed a while ago? I assigned to you for more input, feel free to reset to nobody. -- assignee: -> brett.cannon nosy: +brett.cannon, nnorwitz priority: -> release blocker

[issue2548] Undetected error in exception handling

2008-04-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Analysis: the primary recursion error is correctly raised, but then there is a call to PyErr_NormalizeException, which calls PyEval_CallObject, which increases the stack depth and hit the recursion limit again... python2.5 don't have the

[issue2548] Undetected error in exception handling

2008-04-04 Thread Thomas Heller
New submission from Thomas Heller <[EMAIL PROTECTED]>: [Found by Daniel Diniz (ajaksu2), see issue #2542] The following code triggers an undetected error with a debug build: """ import sys def g(): try: return g() except: return sys.exc_info() g() print 42 """ Running the code prin