[Numpy-discussion] shelve and object arrays

Stefan van der Walt stefan at sun.ac.za
Sat May 26 03:07:21 EDT 2007


Hi Mark

On Fri, May 25, 2007 at 04:53:12PM -0600, Mark.Miller wrote:
> I recently experimented with changing from use of string arrays in some 
> of my code to object arrays.  This change speeds up my simulations and 
> produces identical numerical results relative to use of string arrays. 
> However, it now appears that my code is having issues at the ends of my 
> simulations when all data (and simulation parameters) are archived using 
> shelve.
> 
> Here's the message:
> 
> /var/lib/torque/mom_priv/jobs/539356.uint.SC: line 9: 18640 Segmentation 
> fault

If you are running on a platform where valgrind is supported, you can
attempt to use that to localise the problem.  Instructions are here:

http://www.scipy.org/Cookbook/C_Extensions#head-9d3c4f5894aa215af47ea7784a33ab0252d230d8

Cheers
Stéfan



More information about the NumPy-Discussion mailing list