[Matrix-SIG] NumPy crashes

Michael Haggerty mhagger@blizzard.harvard.edu
Thu, 17 Sep 1998 15:20:29 -0400


> >I just upgraded to the latest (?) NumPy, from the LLNLPython5
> >distribution.  I'm finding it distressingly easy to get Python to dump
> >core when reshaping arrays:
> >
> >Python 1.5 (#5, Sep 14 1998, 17:26:48)  [GCC 2.7.2.3] on linux2
> >Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>>> import Numeric
> >>>> Numeric.__version__
> >'1.4'
> >>>> w,h = 512,512
> >>>> wh = w*h
> >>>> x,y = Numeric.indices((w,h))
> >>>> x.shape = wh,1
> >Segmentation fault (core dumped)
> 
> Hmm. I am unable to reproduce this behavior on unix. The
> Numeric.reshape function also works.

When I do this on DEC Alpha under Digital Unix (64 bit machine), I get
two Unaligned access faults.  (These don't cause a core dump, but they
may on cgw's machine.  Perhaps this is the clue you are looking for.

Michael

--
Michael Haggerty
mhagger@blizzard.harvard.edu