Problem with Cookie module and cPickle

Piers Lauder piers at cs.su.oz.au
Wed Jun 2 02:38:44 EDT 1999


I wonder if anyone has a fix for the following problem?

We've been using the Cookie.py module (by Timothy O'Malley)
successfully for some time, but ever since the conversion
to Python-1.5.2, it tends to dump core. Here's an example:

	% python
	Python 1.5.2 (#10, May 11 1999, 15:32:03)  [GCC 2.8.1] on sunos5
	Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
	>>> import Cookie; C = Cookie.Cookie()
	>>> C.load("mary=ht;")
	Segmentation Fault (core dumped)

My system is:
	% uname -a
	SunOS staff 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-2

(It also dumps core on Linux, so it's not just a sparc problem.)

It seems to me that this is probably a cPickle problem, as changing
the use of cPickle to Pickle, the core dump goes away.

I'm using version: cPickle.c,v 1.63 1999/02/05 01:40:06 jim Exp








More information about the Python-list mailing list