ftbfs with python2.7

Bug #685469 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-numpy (Ubuntu)
Fix Released
High
Barry Warsaw
Tags: python27

Related branches

Revision history for this message
Barry Warsaw (barry) wrote :

Progress on this is blocked by bug 688721. pymvpa requires shogun-python-modular from the shogun package.

Changed in pymvpa (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
Barry Warsaw (barry)
Changed in pymvpa (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

I suspect this is really a numpy/python2.7 problem. Tracing through TuebingenMEG.__init__() from the test, you'll see that the call to N.fromstring() on line 90 is what's segfaulting. That's really numpy.fromstring(). It does not segfault in Python 2.6.

The crash is happening inside Python at Python/_warnings.c:449 where it tries to do:

    PyFrameObject *f = PyThreadState_GET()->frame

but the thread state is bogus. Investigations continue.

Revision history for this message
Barry Warsaw (barry) wrote :

I've verified that this is really a numpy bug. When pymvpa is built against patched numpy in pushed branch, it does not crash.

affects: pymvpa (Ubuntu) → python-numpy (Ubuntu)
Changed in python-numpy (Ubuntu):
milestone: none → natty-alpha-2
Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

Probably this one:

http://projects.scipy.org/numpy/ticket/1345

And the fix (included in Numpy >= 1.5.0):

http://projects.scipy.org/numpy/changeset/8394

Revision history for this message
Barry Warsaw (barry) wrote :

@Pauli, yes that's it. IIUC we can't upgrade to numpy 1.5 yet, so my branch (linked above) is a backport of the patch to the version we have in Ubuntu. The patch works for me and fixes the pymvpa crash, but I need a sponsor to upload it.

Revision history for this message
Barry Warsaw (barry) wrote :

debdiff for doko

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-numpy - 1:1.4.1-5ubuntu4

---------------
python-numpy (1:1.4.1-5ubuntu4) natty; urgency=low

  * Fix pymvpa crash caused by numpy incompatibility with Python 2.7.
    This is a back port of the numpy upstream changeset:
    http://projects.scipy.org/numpy/changeset/8394
    (LP: #685469)
 -- Barry Warsaw <email address hidden> Thu, 16 Dec 2010 15:57:29 -0500

Changed in python-numpy (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.