[SciPy-user] bug crash

Pearu Peterson pearu at scipy.org
Tue Jun 15 11:46:25 CDT 2004



On Tue, 15 Jun 2004, Olivier Ravard wrote:

> Hi,
> 
> I used scipy under windows, and this simple code crashes python
> with no error message :
> 
> from scipy import *
> b=arange(1000000).astype('f')
> b=b*1j
> 
> but this one works :
> 
> from scipy import *
> b=arange(100000).astype('f')
> b=b*1j
> 
> Looks like a memory problem...

Indeed..

> Anyone have an idea ?

Try installing more memory to your machine. On a machine with 1GB physical 
RAM I have:

In [1]: from scipy import *

In [2]: b=arange(1000000).astype('f')

In [3]: b=b*1j

In [4]: b=arange(10000000).astype('f')

In [5]: b=b*1j

In [6]: b=arange(100000000).astype('f')

In [7]: b=b*1j
Segmentation fault

Regards,
Pearu



More information about the SciPy-user mailing list