[Python-bugs-list] [ python-Bugs-576419 ] Infinite recursion in Pickle

noreply@sourceforge.net noreply@sourceforge.net
Tue, 02 Jul 2002 08:02:46 -0700


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

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Oleg Broytmann (phd)
Assigned to: Nobody/Anonymous (nobody)
Summary: Infinite recursion in Pickle

Initial Comment:
Pickle falls into infininite recursion, cPickle crashed
(segfault on Linux, bus error on FreeBSD). See the
attached file. There is initial pickle (just a very
simple though somewhat large tree of bookmarks;
unfortunately lesser tree does not trigger the bug);
bkmk_objects.py module that includes class definitions
for the pickled object, and simple test program that
demonstrates the bug.

The program loads initial pickle, runs a function upon
it and saves the pickle back. The function runs through
the entire tree and creates backlinks - every object
got a link to its parent folder.

So it seems the bug is related to pickling objects with
loops.

When I changed builtin list as a parent class of Folder
to UserList (and recreated initial pickle) the bug
disappeared, so I think the bug is related to pickling
new classes.

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

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