[Numpy-discussion] Trying out Numeric3
Arnd Baecker
arnd.baecker at web.de
Thu Mar 24 01:12:52 EST 2005
Hi Travis,
I just had a quick look at Numeric3, checked
out with
cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/numpy co -D
2005-03-18 -P Numeric3
(as you already warned, the current CVS does not compile for me).
After that I saw Michiels mail, so my results
below just adds another "data-point"...
On Fri, 18 Mar 2005, Michiel Jan Laurens de Hoon wrote:
> Travis Oliphant wrote:
> > I wanted to let people who may be waiting, that now is a good time to
> > help with numeric3. The CVS version builds (although I"m sure there are
> > still bugs), but more eyes could help me track them down.
> >
> > Currently, all that remains for the arrayobject is to implement the
> > newly defined methods (really it"s just a re-organization and
> > re-inspection of the code in multiarraymodule.c to call it using methods).
> >
[...]
> When using ndarray, I got a core dump using "zeros":
>
> $ python
> Python 2.5a0 (#1, Mar 2 2005, 12:15:06)
> [GCC 3.3.3] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from ndarray import *
> >>> zeros(5)
> creating data 0xa0c03d0 associated with 0xa0d52c0
> array([0.0, 0.0, 0.0, 0.0, 0.0], 'd')
> Segmentation fault (core dumped)
>
> With Python 2.4, the segmentation fault occurs slightly later:
> $ python2.4
> Python 2.4 (#1, Dec 5 2004, 20:47:03)
> [GCC 3.3.3] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from ndarray import *
> >>> zeros(5)
> creating data 0xa0a07f8 associated with 0xa0d6230
> array([0.0, 0.0, 0.0, 0.0, 0.0], 'd')
> >>>
> >>> ^D
> freeing 0xa0a07f8 associated with array 0xa0d6230
> freeing 0xa123b88 associated with array 0xa0d6230
> Segmentation fault (core dumped)
Python 2.3.5 (#1, Mar 22 2005, 11:11:34)
Type "copyright", "credits" or "license" for more information.
IPython 0.6.13_cvs -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]:from ndarray import *
In [2]:arange(10)
Out[2]:array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 'l')
In [3]:arange(10.0)
Out[3]:array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], 'd')
In [4]:
In [4]:arange(10.0)
zsh: 7191 segmentation fault ipython
Without ipython the segfault is even earlier:
Python 2.3.5 (#1, Mar 22 2005, 11:11:34)
[GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ndarray import *
>>> arange(10)
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 'l')
>>> arange(10.0)
zsh: 7192 segmentation fault python
Have you already found the origin of this?
If so, which version should I download for further testing?
If not, if you need help in debugging this one,
just let me know (+some hints how to tackle this).
Best,
Arnd
More information about the NumPy-Discussion
mailing list