[SciPy-user] Re: bug crash

Berthold Höllmann bhoel at web.de
Tue Jun 15 12:22:03 CDT 2004


Pearu Peterson <pearu at scipy.org> writes:

> 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

Hello,

My machine has only 512MB RAM, but I get:

>python
Python 2.3.4 (#2, May 28 2004, 22:06:09) 
[GCC 3.3.1 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy import *
>>> b=arange(1000000).astype('f')
>>> b=b*1j
>>> b=arange(10000000).astype('f')
>>> b=b*1j
>>> 
>free -m
             total       used       free     shared    buffers     cached
Mem:           502        177        325          0         16         34
-/+ buffers/cache:        126        375
Swap:         2445        223       2222

OK, it's Linux

Kind Regards
Berthold
-- 
bhoel at web.de / http://starship.python.net/crew/bhoel/



More information about the SciPy-user mailing list