Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405075 - sci-libs/scipy segfault in unit test test_linsolve.TestLinsolve
Summary: sci-libs/scipy segfault in unit test test_linsolve.TestLinsolve
Status: RESOLVED DUPLICATE of bug 364083
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-20 19:34 UTC by Martin Luessi
Modified: 2012-02-23 18:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
modified ebuild (scipy-0.10.0.ebuild,3.49 KB, patch)
2012-02-20 19:36 UTC, Martin Luessi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Luessi 2012-02-20 19:34:53 UTC
Unit test for sci-libs/scipy-0.10.0 fails with a segmentation fault in /usr/lib64/libsuperlu.so.4.










Reproducible: Always

Steps to Reproduce:
1. start python console
2. import scipy as sp
3. sp.test(verbose=10)
Actual Results:  
....
....
Solve: single precision ... SKIP: Skipping test: test_solve_without_umfpack
UMFPACK appears not to be compiled
test_non_square (test_linsolve.TestLinsolve) ... ok
test_singular (test_linsolve.TestLinsolve) ... Segmentation fault

The problem seems to be cause by libsuperlu:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffde08739e in dpivotL () from /usr/lib64/libsuperlu.so.4
(gdb) backtrace
#0  0x00007fffde08739e in dpivotL () from /usr/lib64/libsuperlu.so.4
#1  0x00007fffde083386 in dgstrf () from /usr/lib64/libsuperlu.so.4
#2  0x00007fffde07e7cc in dgssv () from /usr/lib64/libsuperlu.so.4
#3  0x00007fffde2cc78d in ?? () from /usr/lib64/python2.7/site-packages/scipy/sparse/linalg/dsolve/_superlu.so

Expected Results:  
Tests work

According to this discussion http://projects.scipy.org/scipy/ticket/1513 it is recommended to link scipy against the bundled patched version of SuperLU. 

I am attaching a modified ebuild, which links against the bundled SuperLU. All tests pass with this version. While not "pretty", I propose that we link against the scipy version of SuperLU until the scipy specific changes get merged upstream.
Comment 1 Martin Luessi 2012-02-20 19:36:38 UTC
Created attachment 302629 [details, diff]
modified ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-21 14:18:56 UTC
Comment on attachment 302629 [details, diff]
modified ebuild

--- scipy-0.10.0.ebuild 2012-01-14 17:28:18.000000000 +0100
+++ -   2012-02-21 15:18:42.127881451 +0100
@@ -25,7 +25,6 @@
 CDEPEND="dev-python/numpy
        media-libs/qhull
        sci-libs/arpack
-       >=sci-libs/superlu-4.3
        virtual/cblas
        virtual/lapack
        umfpack? ( sci-libs/umfpack )"
@@ -70,12 +69,9 @@
 
 src_prepare() {
        # remove bundled libs
-       epatch \
-               "${FILESDIR}"/${PN}-0.9.0-superlu.patch \
-               "${FILESDIR}"/${PN}-0.9.0-superlu-4.3.patch \
-               "${FILESDIR}"/${PN}-0.9.0-qhull.patch
-       rm -rf ./scipy/sparse/linalg/dsolve/SuperLU ./scipy/spatial/qhull
-       local libdir="${EPREFIX}"/usr/$(get_libdir)
+       epatch "${FILESDIR}"/${PN}-0.9.0-qhull.patch
+       rm -rf ./scipy/spatial/qhull
+
        cat >> site.cfg <<-EOF
                [blas]
                include_dirs = $(pkg-config --cflags-only-I \
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2012-02-23 18:14:56 UTC

*** This bug has been marked as a duplicate of bug 364083 ***