segmentation fault when unpickling an object in another Python instance

Michael Hudson mwh at python.net
Thu Nov 7 06:24:57 EST 2002


Raik Gruenberg <graik at web.de> writes:

> It's not cPickle specific - I got the same segmentation fault when
> using normal pickle.
> 
> Getting a minimum example will take some time and it can get quite
> long. I can switch off the error by deleting a line in the constructor
> of the pickled object...
> 
> Summary so far, I can not unpickle my object if:
> - The constructor of this object called (before pickling) a certain
> method of an internally referenced object
> - this internal object encapsulates an Numeric array
> - the certain method deletes parts of this array (via Numeric.compress )
> 
> Rings a bell for someone??

I'd like to apply my SEP[1] field and say this is likely to be a bug
in Numeric.  Not sure though.  Can you try just pickling & unpickling
a Numeric.array that has had bits chopped out of it with .compress()?

Cheers,
M.
[1] Someone Else's Problem: I'm a developer on the Python project, but
    not NumPy :)

-- 
  A difference which makes no difference is no difference at all.
                        -- William James (I think.  Reference anyone?)



More information about the Python-list mailing list