[Python-bugs-list] [ python-Bugs-576084 ] Sig11 in cPickle (stack overflow)

noreply@sourceforge.net noreply@sourceforge.net
Mon, 01 Jul 2002 11:34:39 -0700


Bugs item #576084, was opened at 2002-07-01 13:34
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=576084&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Epler (jepler)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sig11 in cPickle (stack overflow)

Initial Comment:
The following program dies for me with a sig11.  It
appears that cPickle overflows the stack of the thread
where it executes.  (In my platform, the main thread's
stack is very large, but other threads' stacks are
fairly small)

Should some kind of guard be added in cPickle to stop
the overflow?
This does safely die with a "RuntimeError: maximum
recursion depth exceeded" when using regular pickle.

(I wrote this simple program after a python-dev poster
wrote that a "deeply recursive data structure" was
sometimes causing a sig11 inside cPickle.  I do not
know if this is the same problem as his or not)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=576084&group_id=5470