This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients benjamin.peterson, brett.cannon, hadimene, josh.r, ncoghlan, terry.reedy, yselivanov
Date 2018-02-09.23:58:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518220713.87.0.467229070634.issue32757@psf.upfronthosting.co.za>
In-reply-to
Content
I am pretty sure that if one deletes the prefix 'exec(' and suffic ')' and just executes argument expression that has something on the order of 10000 chr(nn) calls added together, one would get the same result.  In other words, I believe that the outer exec and the origin of the expression and the individual nn values are irrelevant.

It is known that the Python compiler handles at least some recursive expressions with recursion and therefore has limits on the complexity of expressions it can handle.  The stackoverflow crash, instead of an exception, *is* a bug.  It was fixed sometime in 3.x.  With 3.6.4:

C:\Users\Terry>python f:/dev/tem/poc.py
RecursionError: maximum recursion depth exceeded during compilation

Perhaps one of the compiler experts knows whether the fix cannot be backported (within reasonable effort) or just has not been.
History
Date User Action Args
2018-02-09 23:58:33terry.reedysetrecipients: + terry.reedy, brett.cannon, ncoghlan, benjamin.peterson, yselivanov, josh.r, hadimene
2018-02-09 23:58:33terry.reedysetmessageid: <1518220713.87.0.467229070634.issue32757@psf.upfronthosting.co.za>
2018-02-09 23:58:33terry.reedylinkissue32757 messages
2018-02-09 23:58:33terry.reedycreate