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 vstinner
Recipients amaury.forgeotdarc, vstinner
Date 2008-12-10.02:50:03
SpamBayes Score 4.6029203e-07
Marked as misclassified No
Message-id <1228877409.34.0.224572049837.issue3999@psf.upfronthosting.co.za>
In-reply-to
Content
New patch:
 - limit memory footprint: use a static buffer to store the frames, 
with a maximum of MAXDEPTH frames (default: MAXDEPTH=100)
 - if there are more than MAXDEPTH frames, jump to the frame MAXDEPTH 
on error (it's like a truncated traceback)
 - don't call segfault_exit() in PyEval_EvalFrameEx() if 
segfault_enter() was not called

On Ubuntu Gutsy, for MAXDEPTH=100 the memory footprint is 19996 bytes. 
I think that it's small, but it's possible to reduce the footprint by 
using less frames or disable the alternative stack (needed for stack 
overflow errors).
History
Date User Action Args
2008-12-10 02:50:09vstinnersetrecipients: + vstinner, amaury.forgeotdarc
2008-12-10 02:50:09vstinnersetmessageid: <1228877409.34.0.224572049837.issue3999@psf.upfronthosting.co.za>
2008-12-10 02:50:08vstinnerlinkissue3999 messages
2008-12-10 02:50:08vstinnercreate