[Matrix-SIG] NumPy crashes

Zane Motteler zcm@llnl.gov
Mon, 14 Sep 1998 15:41:22 -0800


Charles,

You wrote:

>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.

All I can suggest is running python -v to be sure that you
are loading all of the latest modules.

Zane

-----------------------------------------------------------------
                      Zane C. Motteler, Ph. D.
Computer Scientist             | Professor Emeritus of
Lawrence Livermore National    |    Computer Science and Engineering
   Laboratory                  | California Polytechnic
P. O. Box 808, L-038           |    State University
Livermore, CA 94551-0808       | San Luis Obispo, CA 93407
925/423-2143, FAX 925/423-9969 | zmottel@hornet.csc.calpoly.edu
zcm@llnl.gov, motteler@icf.llnl.gov
(For FedEx, UPS, etc. use 7000 East Avenue, zip 94550-9234)