[Numpy-tickets] [NumPy] #1033: build for r6530 on Solaris doesn't reference -lm properly
NumPy
numpy-tickets@scipy....
Tue Mar 3 07:45:51 CST 2009
#1033: build for r6530 on Solaris doesn't reference -lm properly
-------------------------+--------------------------------------------------
Reporter: gbburkhardt | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: Other | Version: none
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by gbburkhardt):
For build and install, I am using:
python setup.py build --fcompiler=gnu95
python setup.py install
I changed the permissions, and the test ran:
numpy $ pwd
/opt/gnu/python-2.5.2/lib/python2.5/site-packages/numpy
numpy $ find . -name "test*.py" -exec chmod -x {} \;
But there's a new seg fault:
... lines omitted...
Tests median w/ 3D ... ok
Tests notmasked_contiguous ... ok
Tests unmasked_edges ... ok
Tests polyfit ... ok
test_atleast1d (test_extras.TestShapeBase) ... ok
Test creation by view ... ok
Test that 'exotic' formats are processed properly ... ok
Test filling the array ... ok
Tests fields retrieval ... Segmentation Fault (core dumped)
glenn.burkhardt $ gdb /opt/gnu/python-2.5.2/bin/python core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...
Core was generated by `python -c import numpy; numpy.test(verbose=2)'.
Program terminated with signal 11, Segmentation fault.
[New process 82357 ]
#0 0xfef48ec8 in _copy_from_same_shape (dest=0x1558690, src=0x99e718,
myfunc=0xfef22e10 <_unaligned_strided_byte_copy>, swap=0)
at numpy/core/src/arrayobject.c:972
972 if ((dit == NULL) || (sit == NULL)) {
(gdb) p dit
No symbol "dit" in current context.
(gdb) p sit
$1 = (PyArrayIterObject *) 0x15df5a0
(gdb) l
967 sit = (PyArrayIterObject *)
968 PyArray_IterAllButAxis((PyObject *)src, &maxaxis);
969
970 maxdim = dest->dimensions[maxaxis];
971
972 if ((dit == NULL) || (sit == NULL)) {
973 Py_XDECREF(dit);
974 Py_XDECREF(sit);
975 return -1;
976 }
(gdb) p maxaxis
$2 = -1
I recompiled without optimization, and ran under 'gdb'. The log 'numpy-
segfault-3.3.09' is attached.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/1033#comment:4>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list