[Numpy-discussion] Numpy Segmentation Fault

Yogesh Tomar yogesh.tomar@gmail....
Tue Apr 6 05:46:17 CDT 2010


Hi all,

I am getting numpy segmentation fault on a custom install of python to a
prefix.

I am running this example code.

*import numpy
import numpy.linalg
x=numpy.eye(1000)
for i in range(10):
    eigenvalues,eigenvectors=numpy.linalg.eig(x)
    eigenvalues,eigenvectors=numpy.linalg.eig(x)
    print str(i),'-------------------------------'*

I have been trying to debug this for the last two weeks and with no success
so far.
The same code runs fine with Python-2.6.1 and numpy-1.2.1 but seg faults in
Python-2.6.4 and numpy-1.3.0
 Also, the error occurs non-deterministically in the loop and sometimes it
does not even occur at all.

I have tried reinstalling and rebuilding python but even that does not help.
Please find attached the information which I think might be relevant for us
to figure out the root cause.

System info

*Python 2.6.4 (r264:75706, Apr  6 2010, 04:49:11)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>*

strace output tail

*) = 34
futex(0x1001f6e0, FUTEX_WAKE, 1)        = 0
futex(0x1001f6e0, FUTEX_WAKE, 1)        = 0
write(1, "here\n", 5here
)                   = 5
rt_sigaction(SIGINT, {SIG_DFL}, {0x2b78c55fec60, [], SA_RESTORER,
0x34d940de70}, 8) = 0
brk(0x117ff000)                         = 0x117ff000
brk(0x108b1000)                         = 0x108b1000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++*


Regards,
Yogesh Tomar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100406/27cc1f07/attachment.html 


More information about the NumPy-Discussion mailing list