Re: [Numpy-discussion] Segmentation fault with pickled numpy float64 arrays since 1.8

2013-12-22 Thread Jonathan Rocher
I am not observing this with Canopy on MacOS 10.8.5 (64bit). I have numpy 1.8.0 and cPickle 1.71. My guess is that it is a problem with your setup. To figure out what is going on, I would have more questions for you so please email me privately a good email address to reach you at. Best, Jonathan

Re: [Numpy-discussion] Segmentation fault with pickled numpy float64 arrays since 1.8

2013-12-21 Thread Hugo Gagnon
Mac OS 10.8.5 -- Hugo Gagnon On 2013-12-21, at 5:20 PM, Charles R Harris wrote: > > > > On Sat, Dec 21, 2013 at 2:16 PM, Hugo Gagnon > wrote: > Hi, > > Since I've updated numpy from 1.7 to 1.8 with EPD I get segmentation faults > whenever I load back pickled float64 arrays. Here's a m

Re: [Numpy-discussion] Segmentation fault with pickled numpy float64 arrays since 1.8

2013-12-21 Thread Charles R Harris
On Sat, Dec 21, 2013 at 2:16 PM, Hugo Gagnon < opensource.nu...@user.fastmail.fm> wrote: > Hi, > > Since I've updated numpy from 1.7 to 1.8 with EPD I get segmentation > faults whenever I load back pickled float64 arrays. Here's a minimal > example: > > """ > > import numpy > import cPickle > > a

[Numpy-discussion] Segmentation fault with pickled numpy float64 arrays since 1.8

2013-12-21 Thread Hugo Gagnon
Hi, Since I've updated numpy from 1.7 to 1.8 with EPD I get segmentation faults whenever I load back pickled float64 arrays. Here's a minimal example: """ import numpy import cPickle a = numpy.arange(5, dtype='float64') with open('test.p', 'wb') as fh: cPickle.dump(a, fh) with open('tes

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-16 Thread Charles R Harris
On Mon, Apr 16, 2012 at 5:16 PM, Chris Ball wrote: > Charles R Harris gmail.com> writes: > > > > > > > On Thu, Apr 12, 2012 at 8:13 PM, Charles R Harris > gmail.com> wrote: > > > > On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris > gmail.com> wrote: > > > > On Thu, Apr 12, 2012 at 2:05 AM, Ch

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-16 Thread Chris Ball
Charles R Harris gmail.com> writes: > > > On Thu, Apr 12, 2012 at 8:13 PM, Charles R Harris gmail.com> wrote: > > On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris gmail.com> wrote: > > On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball gmail.com> wrote: > > > > Hi, > I'm trying out various

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-13 Thread Bryan Van de Ven
On 4/12/12 8:41 PM, Charles R Harris wrote: It seems that python2.7 is far, far, too recent to be part of Debian 6. I mean, finding python 2.7 in recent Debian stable would be like finding an atomic cannon in a 1'st dynasty Egyptian tomb. So it is in testing, but for replication I like to know

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 8:13 PM, Charles R Harris wrote: > > > On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: >> >>> Hi, >>> >>> I'm trying out various continuous integration options, so I happ

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 7:41 PM, Charles R Harris wrote: > > > On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > >> Hi, >> >> I'm trying out various continuous integration options, so I happen to be >> testing NumPy on several platforms that I don't normally use. >> >> Recently, I've been get

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > Hi, > > I'm trying out various continuous integration options, so I happen to be > testing NumPy on several platforms that I don't normally use. > > Recently, I've been getting a segmentation fault on Debian 6 (with Python > 2.7.2): > > Linux d

Re: [Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Charles R Harris
On Thu, Apr 12, 2012 at 2:05 AM, Chris Ball wrote: > Hi, > > I'm trying out various continuous integration options, so I happen to be > testing NumPy on several platforms that I don't normally use. > > Recently, I've been getting a segmentation fault on Debian 6 (with Python > 2.7.2): > > Linux d

[Numpy-discussion] Segmentation fault during tests with Python 2.7.2 on Debian 6?

2012-04-12 Thread Chris Ball
Hi, I'm trying out various continuous integration options, so I happen to be testing NumPy on several platforms that I don't normally use. Recently, I've been getting a segmentation fault on Debian 6 (with Python 2.7.2): Linux debian6-amd64 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Christopher Barker
On 8/2/11 10:14 AM, Thomas Markovich wrote: > Just to recap, the issue appears to stem from using the scipy superpack > with python 2.7 from python.org . This was solved by > using the apple python along with the scipy superpack. This sure sounds like a bug in the sciy superpac

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Olivier Delalleau
Maybe specify which scipy superpack. Your issue was probably because the superpack you installed was not meant to be used with Python 2.7. -=- Olivier 2011/8/2 Thomas Markovich > Oh okay, that's unfortunate but I guess not unexpected. Regardless, thank > you so much for all your help Ralf, Bruc

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
Oh okay, that's unfortunate but I guess not unexpected. Regardless, thank you so much for all your help Ralf, Bruce, and Oliver! You guys are great. Just to recap, the issue appears to stem from using the scipy superpack with python 2.7 from python.org. This was solved by using the apple python al

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Derek Homeier
On 2 Aug 2011, at 18:57, Thomas Markovich wrote: > It appears that uninstalling python 2.7 and installing the scipy > superpack with the apple standard python removes the Did the superpack installer automatically install numpy to the python2.7 directory when present? Even if so, I reckon you

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Ralf Gommers
On Tue, Aug 2, 2011 at 6:57 PM, Thomas Markovich wrote: > It appears that uninstalling python 2.7 and installing the scipy superpack > with the apple standard python removes the segfaulting behavior from numpy. > Now it appears that just scipy is segfaulting at test > "test_arpack.test_hermitian_m

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
It appears that uninstalling python 2.7 and installing the scipy superpack with the apple standard python removes the segfaulting behavior from numpy. Now it appears that just scipy is segfaulting at test "test_arpack.test_hermitian_modes(True, , 'F', 2, 'SM', None, 0.5, ) ... Segmentation fault"

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Ralf Gommers
On Tue, Aug 2, 2011 at 6:14 PM, Thomas Markovich wrote: > I just have the default "apple" version of python that comes with Snow > Leopard (Python 2.6.1 (r261:67515, Aug 2 2010, 20:10:18)) and python 2.7 > (Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) ) installed. > > Should I just r

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Bruce Southey
On 08/02/2011 11:14 AM, Thomas Markovich wrote: I just have the default "apple" version of python that comes with Snow Leopard (Python 2.6.1 (r261:67515, Aug 2 2010, 20:10:18)) and python 2.7 (Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) ) installed. Should I just remove 2.7 and

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
I just have the default "apple" version of python that comes with Snow Leopard (Python 2.6.1 (r261:67515, Aug 2 2010, 20:10:18)) and python 2.7 (Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) ) installed. Should I just remove 2.7 and reinstall everything with the standard apple python?

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Olivier Delalleau
It's a wild guess, but in the past I've had seg faults issues on Mac due to conflicting versions of Python. Do you have multiple Python installs on your Mac? -=- Olivier 2011/8/2 Thomas Markovich > Hi All, > > I installed numpy from the scipy superpack on Snow Leopard with python 2.7 > and it

[Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
Hi All, I installed numpy from the scipy superpack on Snow Leopard with python 2.7 and it all appears to work but when I do the following, I get a segmentation fault. >>> import numpy >>> print numpy.__version__, numpy.__file__ 2.0.0.dev-b5cdaee /Library/Frameworks/Python.framework/Versions/2.7/l

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-25 Thread Peter
On Sat, Jul 24, 2010 at 8:38 PM, David Cournapeau wrote: > > In general, because the packaging/build infrastructure in python is horrible. > > However, in this precise case, the issue is simply that numpy 1.4.1 > does not support python2.7. > How about a tiny update to the numpy 1.4.x on PyPi whi

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-24 Thread Geoffrey Ely
On Jul 24, 2010, at 11:39 AM, Benjamin Root wrote: > I have to wonder why this question keeps coming up. Do we need to make the > build/installation instructions on the website clearer? Yes. I was one who asked recently. I've not seen easy_install nor pip mentioned on the website nor INSTALL

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-24 Thread David Cournapeau
On Sun, Jul 25, 2010 at 6:21 AM, Benjamin Root wrote: > > On Sat, Jul 24, 2010 at 2:38 PM, David Cournapeau > wrote: >> >> On Sun, Jul 25, 2010 at 3:39 AM, Benjamin Root wrote: >> >> > I have to wonder why this question keeps coming up. >> >> In general, because the packaging/build infrastructur

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 2:38 PM, David Cournapeau wrote: > On Sun, Jul 25, 2010 at 3:39 AM, Benjamin Root wrote: > > > I have to wonder why this question keeps coming up. > > In general, because the packaging/build infrastructure in python is > horrible. > > However, in this precise case, the iss

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-24 Thread David Cournapeau
On Sun, Jul 25, 2010 at 3:39 AM, Benjamin Root wrote: > I have to wonder why this question keeps coming up. In general, because the packaging/build infrastructure in python is horrible. However, in this precise case, the issue is simply that numpy 1.4.1 does not support python2.7. cheers, Dav

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-24 Thread Benjamin Root
On Sat, Jul 24, 2010 at 1:44 AM, Ralf Gommers wrote: > > > On Fri, Jul 23, 2010 at 11:46 AM, celil wrote: > >> Hello, >> >> I just installed numpy on Snow Leopard using pip. However, running the >> tests results in a segmentation fault. Has anybody else encountered this >> problem? How did you so

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-23 Thread Ralf Gommers
On Fri, Jul 23, 2010 at 11:46 AM, celil wrote: > Hello, > > I just installed numpy on Snow Leopard using pip. However, running the > tests results in a segmentation fault. Has anybody else encountered this > problem? How did you solve it? > > Do not use pip or easy_install, these tools are not ve

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-23 Thread mdekauwe
Hi, I don't know about pip but if you use macports all the python 2.6, scipy et al libs all set up fine with problems on snow leopard. If you really want 2.7 then not sure what to say. Martin celil wrote: > > Hello, > > I just installed numpy on Snow Leopard using pip. However, running the

[Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-22 Thread celil
Hello, I just installed numpy on Snow Leopard using pip. However, running the tests results in a segmentation fault. Has anybody else encountered this problem? How did you solve it? The sequence of commands that reproduce the bug is: $ pip install numpy $ python -c "import numpy; num

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Charles R Harris
On Fri, Dec 18, 2009 at 2:02 PM, Charles R Harris wrote: > > > On Fri, Dec 18, 2009 at 10:46 AM, Keith Goodman wrote: > >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already >> known, fixed, reproducible? >> >> >> np.array(121).argsort(0).argsort(0) >> Segmentation fault >> >> > Th

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Keith Goodman
On Fri, Dec 18, 2009 at 1:02 PM, Charles R Harris wrote: > > > On Fri, Dec 18, 2009 at 10:46 AM, Keith Goodman wrote: >> >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already >> known, fixed, reproducible? >> >> >> np.array(121).argsort(0).argsort(0) >> Segmentation fault >> > > Th

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Charles R Harris
On Fri, Dec 18, 2009 at 10:46 AM, Keith Goodman wrote: > I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already > known, fixed, reproducible? > > >> np.array(121).argsort(0).argsort(0) > Segmentation fault > > The immediate problem is in scalartypes.c.src in these lines {"sort",

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Christoph Gohlke
On 12/18/2009 9:46 AM, Keith Goodman wrote: > I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already > known, fixed, reproducible? > >>> np.array(121).argsort(0).argsort(0) > Segmentation fault > > The expected result: > > AttributeError: 'np.int64' object has no attribute 'argsort' O

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Charles R Harris
On Fri, Dec 18, 2009 at 10:46 AM, Keith Goodman wrote: > I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already > known, fixed, reproducible? > > >> np.array(121).argsort(0).argsort(0) > Segmentation fault > > The expected result: > > AttributeError: 'np.int64' object has no attribute

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Skipper Seabold
On Fri, Dec 18, 2009 at 1:07 PM, Skipper Seabold wrote: > On Fri, Dec 18, 2009 at 1:00 PM, Robert Kern wrote: >> >> Can you give us a gdb backtrace? >> > > No idea what I'm doing, but I figure I should learn a bit...  Does > this look right? > > skip...@linux-desktop:~$ gdb python > GNU gdb (GDB)

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Skipper Seabold
On Fri, Dec 18, 2009 at 1:00 PM, Robert Kern wrote: > > Can you give us a gdb backtrace? > No idea what I'm doing, but I figure I should learn a bit... Does this look right? skip...@linux-desktop:~$ gdb python GNU gdb (GDB) 7.0-ubuntu Copyright (C) 2009 Free Software Foundation, Inc. License GP

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread josef . pktd
On Fri, Dec 18, 2009 at 1:01 PM, Charles R Harris wrote: > > > On Fri, Dec 18, 2009 at 10:57 AM, Skipper Seabold > wrote: >> >> On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern >> wrote: >> > On Fri, Dec 18, 2009 at 11:46, Keith Goodman >> > wrote: >> >> I am using the numpy 1.3 binary from Ubuntu

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Charles R Harris
On Fri, Dec 18, 2009 at 10:57 AM, Skipper Seabold wrote: > On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern > wrote: > > On Fri, Dec 18, 2009 at 11:46, Keith Goodman > wrote: > >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already > >> known, fixed, reproducible? > >> > np.array

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Keith Goodman
On Fri, Dec 18, 2009 at 9:52 AM, Robert Kern wrote: > On Fri, Dec 18, 2009 at 11:46, Keith Goodman wrote: >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already >> known, fixed, reproducible? >> np.array(121).argsort(0).argsort(0) >> Segmentation fault >> >> The expected result

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Robert Kern
On Fri, Dec 18, 2009 at 11:57, Skipper Seabold wrote: > On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern wrote: >> On Fri, Dec 18, 2009 at 11:46, Keith Goodman wrote: >>> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already >>> known, fixed, reproducible? >>> > np.array(121).argsor

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Skipper Seabold
On Fri, Dec 18, 2009 at 12:52 PM, Robert Kern wrote: > On Fri, Dec 18, 2009 at 11:46, Keith Goodman wrote: >> I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already >> known, fixed, reproducible? >> np.array(121).argsort(0).argsort(0) >> Segmentation fault >> >> The expected resul

Re: [Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Robert Kern
On Fri, Dec 18, 2009 at 11:46, Keith Goodman wrote: > I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already > known, fixed, reproducible? > >>> np.array(121).argsort(0).argsort(0) > Segmentation fault > > The expected result: > > AttributeError: 'np.int64' object has no attribute 'args

[Numpy-discussion] Segmentation fault with argsort

2009-12-18 Thread Keith Goodman
I am using the numpy 1.3 binary from Ubuntu 9.10. Is this already known, fixed, reproducible? >> np.array(121).argsort(0).argsort(0) Segmentation fault The expected result: AttributeError: 'np.int64' object has no attribute 'argsort' ___ NumPy-Discussi

Re: [Numpy-discussion] Segmentation fault on large arrays

2009-05-26 Thread Charles R Harris
On Tue, May 26, 2009 at 1:55 AM, Nicolas Rougier wrote: > > Hello, > > I've come across what is probably a bug in size check for large arrays: > > >>> import numpy > >>> z1 = numpy.zeros((255*256,256*256)) > Traceback (most recent call last): > File "", line 1, in > ValueError: dimensions too la

[Numpy-discussion] Segmentation fault on large arrays

2009-05-26 Thread Nicolas Rougier
Hello, I've come across what is probably a bug in size check for large arrays: >>> import numpy >>> z1 = numpy.zeros((255*256,256*256)) Traceback (most recent call last): File "", line 1, in ValueError: dimensions too large. >>> z2 = numpy.zeros((256*256,256*256)) >>> z2.shape (65536, 65536)

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Alan McIntyre
On Wed, May 28, 2008 at 5:10 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > Yes, we have mechanisms in place to do that. I haven't merged for a > while, because I am hoping that we can move the docstrings over to the > new (web application) system soon. If that doesn't happen, I will > prob

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
Hi Alan 2008/5/28 Alan McIntyre <[EMAIL PROTECTED]>: > On Wed, May 28, 2008 at 4:19 PM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: >> A reminder: if docstrings need to be updated, it is really easy to do: >> >> http://sd-2116.dedibox.fr/doc/Docstrings/ >> >> Pauli has been hard at work at w

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Travis E. Oliphant
Charles R Harris wrote: > > > On Wed, May 28, 2008 at 11:22 AM, Stéfan van der Walt > <[EMAIL PROTECTED] > wrote: > > 2008/5/28 Charles R Harris <[EMAIL PROTECTED] > >: > > It's shape related. > > > > In [7]: x = numpy.random.

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Keith Goodman
On Wed, May 28, 2008 at 1:55 PM, Alan McIntyre <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 4:19 PM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: >> A reminder: if docstrings need to be updated, it is really easy to do: >> >> http://sd-2116.dedibox.fr/doc/Docstrings/ >> >> Pauli has be

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Alan McIntyre
On Wed, May 28, 2008 at 4:19 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > A reminder: if docstrings need to be updated, it is really easy to do: > > http://sd-2116.dedibox.fr/doc/Docstrings/ > > Pauli has been hard at work at writing a Django app to replace the > current wiki. It has prope

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Keith Goodman
On Wed, May 28, 2008 at 1:16 PM, Keith Goodman <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 1:06 PM, Alan McIntyre <[EMAIL PROTECTED]> wrote: >> On Wed, May 28, 2008 at 3:34 PM, Charles R Harris >> <[EMAIL PROTECTED]> wrote: I wonder if this is something that ought to be looked at for

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
2008/5/28 Alan McIntyre <[EMAIL PROTECTED]>: > On Wed, May 28, 2008 at 3:34 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: >>> I wonder if this is something that ought to be looked at for all >>> functions with an "out" parameter? ndarray.compress also had problems >>> with array type mismatch

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Keith Goodman
On Wed, May 28, 2008 at 1:06 PM, Alan McIntyre <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 3:34 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: >>> I wonder if this is something that ought to be looked at for all >>> functions with an "out" parameter? ndarray.compress also had problems

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Alan McIntyre
On Wed, May 28, 2008 at 3:34 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: >> I wonder if this is something that ought to be looked at for all >> functions with an "out" parameter? ndarray.compress also had problems >> with array type mismatch (#789); I can't imagine that it's safe to >> assume

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Charles R Harris
On Wed, May 28, 2008 at 1:17 PM, Alan McIntyre <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 1:37 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > I think the bug is not raising an error on shape mismatch, the assumption > on > > the first index follows from that. For the out=x paramet

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Alan McIntyre
On Wed, May 28, 2008 at 1:37 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > I think the bug is not raising an error on shape mismatch, the assumption on > the first index follows from that. For the out=x parameter, I propose the > rules: > > 1) x must have the shape of the expected output (1D in

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Charles R Harris
On Wed, May 28, 2008 at 11:22 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/5/28 Charles R Harris <[EMAIL PROTECTED]>: > > It's shape related. > > > > In [7]: x = numpy.random.rand(5,2) > > > > In [8]: y = ones((5,2)) > > > > In [9]: x.cumsum(None,out=y) > > Out[9]: > > array([[ 0.7694

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
2008/5/28 Stéfan van der Walt <[EMAIL PROTECTED]>: > 2008/5/28 Charles R Harris <[EMAIL PROTECTED]>: >> It's shape related. >> >> In [7]: x = numpy.random.rand(5,2) >> >> In [8]: y = ones((5,2)) >> >> In [9]: x.cumsum(None,out=y) >> Out[9]: >> array([[ 0.76943981, 1.], >>[ 1.126784

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
2008/5/28 Charles R Harris <[EMAIL PROTECTED]>: > It's shape related. > > In [7]: x = numpy.random.rand(5,2) > > In [8]: y = ones((5,2)) > > In [9]: x.cumsum(None,out=y) > Out[9]: > array([[ 0.76943981, 1.], >[ 1.12678411, 1.], >[ 1.69498328, 1.], >

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Charles R Harris
On Wed, May 28, 2008 at 10:39 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/5/28 Hoyt Koepke <[EMAIL PROTECTED]>: > > In my experience tracking down these sorts of things, if the effect is > > delayed and detected by glibc, it almost always means that a few bytes > > beyond the end of

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
2008/5/28 Hoyt Koepke <[EMAIL PROTECTED]>: > In my experience tracking down these sorts of things, if the effect is > delayed and detected by glibc, it almost always means that a few bytes > beyond the end of the data part of an array have been overwritten. > This causes glibc's memory management s

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Hoyt Koepke
In my experience tracking down these sorts of things, if the effect is delayed and detected by glibc, it almost always means that a few bytes beyond the end of the data part of an array have been overwritten. This causes glibc's memory management stuff to crash later on when the object is deallocat

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Pauli Virtanen
ke, 2008-05-28 kello 10:59 -0400, Scott Ransom kirjoitti: > Hmmm. Interesting. I'm on a 64-bit Debian Unstable system with numpy > 1.0.4 and python 2.5.2 and I don't get this: > > In [1]: import numpy as np > > In [2]: np.__version__ > Out[2]: '1.0.4' > > In [3]: def fn(): >...: x = n

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Keith Goodman
On Wed, May 28, 2008 at 7:30 AM, Keith Goodman <[EMAIL PROTECTED]> wrote: > Does anyone else get this seg fault? > >>> def fn(): >x = np.random.rand(5,2) >x.cumsum(None, out=x) >return x > : >>> fn() > *** glibc detected *** /usr/bin/python: double free or corruption > (out): 0x08

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Nils Wagner
On Wed, 28 May 2008 11:07:16 -0400 Scott Ransom <[EMAIL PROTECTED]> wrote: > > On Wednesday 28 May 2008 10:51:20 am Alan McIntyre >wrote: >> On Wed, May 28, 2008 at 10:30 AM, Keith Goodman >><[EMAIL PROTECTED]> > wrote: >> > Does anyone else get this seg fault? >> > >> >>> def fn(): >> > >> >

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Scott Ransom
On Wednesday 28 May 2008 10:51:20 am Alan McIntyre wrote: > On Wed, May 28, 2008 at 10:30 AM, Keith Goodman <[EMAIL PROTECTED]> wrote: > > Does anyone else get this seg fault? > > > >>> def fn(): > > > >x = np.random.rand(5,2) > >x.cumsum(None, out=x) > >return x > > > > : > >>>

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Scott Ransom
Hmmm. Interesting. I'm on a 64-bit Debian Unstable system with numpy 1.0.4 and python 2.5.2 and I don't get this: In [1]: import numpy as np In [2]: np.__version__ Out[2]: '1.0.4' In [3]: def fn(): ...: x = np.random.rand(5,2) ...: x.cumsum(None, out=x) ...: return x .

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Stéfan van der Walt
2008/5/28 Keith Goodman <[EMAIL PROTECTED]>: > Does anyone else get this seg fault? > >>> def fn(): >x = np.random.rand(5,2) >x.cumsum(None, out=x) >return x > : >>> fn() > *** glibc detected *** /usr/bin/python: double free or corruption > (out): 0x08212dc8 *** > > I'm running 1.

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Alan McIntyre
On Wed, May 28, 2008 at 10:30 AM, Keith Goodman <[EMAIL PROTECTED]> wrote: > Does anyone else get this seg fault? > >>> def fn(): >x = np.random.rand(5,2) >x.cumsum(None, out=x) >return x > : >>> fn() > *** glibc detected *** /usr/bin/python: double free or corruption > (out): 0x0

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Joris De Ridder
On 28 May 2008, at 16:30, Keith Goodman wrote: > Does anyone else get this seg fault? > >>> def fn(): >x = np.random.rand(5,2) >x.cumsum(None, out=x) >return x > : >>> fn() > *** glibc detected *** /usr/bin/python: double free or corruption > (out): 0x08212dc8 *** > > I'm runnin

[Numpy-discussion] segmentation fault

2008-05-28 Thread Keith Goodman
Does anyone else get this seg fault? >> def fn(): x = np.random.rand(5,2) x.cumsum(None, out=x) return x : >> fn() *** glibc detected *** /usr/bin/python: double free or corruption (out): 0x08212dc8 *** I'm running 1.0.4 from Debian Lenny with python 2.5.2 compiled with gcc 4.2

Re: [Numpy-discussion] "Segmentation fault (core dumped)" as re: segmentation fault

2008-05-07 Thread Marius Nijhuis
Hi, The array I was using is indeed from a pickle. I ran the c example, and got the following: $ LD_PRELOAD=/usr/lib/sse2/libcblas.so.3.0 ./sse2-crash-test good_align: ok bad_align: Segmentation fault (core dumped) $ LD_PRELOAD=/usr/lib/libcblas.so.3.0 ./sse2-crash-test good_align: ok bad_align:

Re: [Numpy-discussion] "Segmentation fault (core dumped)" as result of matrix multiplication

2008-05-06 Thread Pauli Virtanen
ti, 2008-05-06 kello 14:15 +0200, Marius Nijhuis kirjoitti: > Hello, > > I encountered the error "Segmentation fault (core dumped)" during a > rather standard multiplication, without excessive memory us. This > looks likes a bug to me? > I am using Python 2.5, Numpy 1.0.4 under Ubuntu 7.10. >

[Numpy-discussion] "Segmentation fault (core dumped)" as result of matrix multiplication

2008-05-06 Thread Marius Nijhuis
Hello, I encountered the error "Segmentation fault (core dumped)" during a rather standard multiplication, without excessive memory us. This looks likes a bug to me? I am using Python 2.5, Numpy 1.0.4 under Ubuntu 7.10. Here is what I am doing: i have two arrays, points1 and points2. points1.sh

Re: [Numpy-discussion] Segmentation fault

2008-04-17 Thread Anne-Sophie Sertier
Thanks a lot for your answer ! I will try another way ! Anne-Sophie David Cournapeau a écrit : > David Cournapeau wrote: >> Unless you are executing this on a gigantic computer, this won't work >> very well: you are asking to create an array which has ~ 2e5^2 elements, >> that is around 40 Gb.

Re: [Numpy-discussion] Segmentation fault

2008-04-17 Thread David Cournapeau
David Cournapeau wrote: > > Unless you are executing this on a gigantic computer, this won't work > very well: you are asking to create an array which has ~ 2e5^2 elements, > that is around 40 Gb. > > There is a bug, but the bug happens at the above line: the zeros call > did not fail whereas it

Re: [Numpy-discussion] Segmentation fault

2008-04-17 Thread David Cournapeau
Anne-Sophie Sertier wrote: > Hello ! > > I'm a new user of Numpy. I want to use it to work with matrices (very > huge matrices), select column, make product, etc ... > Configuration : Debian, python 2.4.4 and numpy 1.0.1 > > So here is my problem: > I initialize a matrix which will contain only 0 a

[Numpy-discussion] Segmentation fault

2008-04-17 Thread Anne-Sophie Sertier
Hello ! I'm a new user of Numpy. I want to use it to work with matrices (very huge matrices), select column, make product, etc ... Configuration : Debian, python 2.4.4 and numpy 1.0.1 So here is my problem: I initialize a matrix which will contain only 0 and 1 >>> from numpy import * >>> matCon

[Numpy-discussion] Segmentation fault check_float_repr

2008-03-25 Thread Nils Wagner
Hi all, Is this a known issue with latest svn numpy.test(verbosity=2) segfaults with check_float_repr (numpy.core.tests.test_scalarmath.TestRepr) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182894186368 (LWP 6930)] 0x003390e3d5e5 in __mpn_mul_1 () from /lib64/