Bug 617384 - Segfault in %check when building numpy against python 2.7
Summary: Segfault in %check when building numpy against python 2.7
Alias: None
Product: Fedora
Classification: Fedora
Component: numpy
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-22 21:35 UTC by Dave Malcolm
Modified: 2010-07-22 23:39 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2010-07-22 23:39:29 UTC

Attachments (Terms of Use)
Backtrace from segfault (5.44 KB, text/plain)
2010-07-22 21:38 UTC, Dave Malcolm
no flags Details

Description Dave Malcolm 2010-07-22 21:35:25 UTC
Description of problem:
Attemping to rebuild numpy against 2.7 thus:
  koji build dist-f14-py27-rebuild $(make cvsurl)
(from tagged CVS checkout)

dies with a segfault in %check:

I'll attach a backtrace.

I did some searching and found some references to porting numpy to 2.7

It's not clear to me what API/ABI approaches they're following, and is this is applicable to 1.4.1.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Simulate the %check from the build thus:
1. cd rpmbuild/BUILD/numpy-1.4.1/doc
2. PYTHONPATH=/root/rpmbuild/BUILDROOT/numpy-1.4.1-4.fc14.x86_64/usr/lib64/python2.7/site-packages gdb --args /usr/bin/python -c "import pkg_resources, numpy ; numpy.test()"

Unfortunately symbols have been stripped at this point; I wonder what the best way to regenerate this one is

Comment 1 Dave Malcolm 2010-07-22 21:38:02 UTC
Created attachment 433816 [details]
Backtrace from segfault

Comment 2 Dave Malcolm 2010-07-22 23:00:59 UTC
Seems to be this:

Comment 4 Dave Malcolm 2010-07-22 23:11:06 UTC
changeset 8387 is layered on top of http://projects.scipy.org/numpy/changeset/7926/trunk/numpy/core/src/multiarray/numpyos.c

Comment 5 Dave Malcolm 2010-07-22 23:34:02 UTC
I've committed a version of this to CVS as numpy-1.4.1-6.fc14

Attempting a rebuild:

Comment 6 Dave Malcolm 2010-07-22 23:39:29 UTC
The build succeeded.

There are a lot of failures in the selftest in the %check, but that doesn't seem to stop the build:
see e.g. http://koji.fedoraproject.org/koji/getfile?taskID=2343685&name=build.log

> Ran 2395 tests in 10.666s
> FAILED (KNOWNFAIL=4, errors=9, failures=3)

and a lot of noise due to deprecation.  At least some of this seems to have been fixed upstream.

Note You need to log in before you can comment on or make changes to this bug.