Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404401 - [science-overlay] sci-libs/gsl-1.15-r2 fails test with segfault
Summary: [science-overlay] sci-libs/gsl-1.15-r2 fails test with segfault
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2012-02-18 15:28 UTC by Markus Walter
Modified: 2012-02-27 03:48 UTC (History)
0 users

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


Attachments
build log (build.log,651.83 KB, text/plain)
2012-02-18 15:28 UTC, Markus Walter
Details
emerge --info (info.txt,5.42 KB, text/plain)
2012-02-18 15:28 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2012-02-18 15:28:22 UTC
Created attachment 302377 [details]
build log

On my hardened ~amd64 machine with gcc-4.6.2 I see the following test failure for gsl.

I can try testing this for the main-tree variant too, but there is a blocker which I would fight only if necessary.

Making check in diff
make[1]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/diff'
make  test
make[2]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/diff'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15/diff -I.. -I/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15    -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions -c /var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15/diff/test.c
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions  -Wl,-O1 -Wl,--as-needed -o test test.o libgsldiff.la  ../vector/libgslvector.la ../block/libgslblock.la  ../ieee-utils/libgslieeeutils.la ../err/libgslerr.la ../test/libgsltest.la ../sys/libgslsys.la -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions -Wl,-O1 -Wl,--as-needed -o test test.o  ./.libs/libgsldiff.a ../vector/.libs/libgslvector.a ../block/.libs/libgslblock.a ../ieee-utils/.libs/libgslieeeutils.a ../err/.libs/libgslerr.a ../test/.libs/libgsltest.a ../sys/.libs/libgslsys.a -lm
make[2]: Leaving directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/diff'
make  check-TESTS
make[2]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/diff'
/bin/sh: line 5: 20165 Segmentation fault      ${dir}$tst
FAIL: test
Comment 1 Markus Walter 2012-02-18 15:28:35 UTC
Created attachment 302379 [details]
emerge --info
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2012-02-18 19:12:03 UTC
Could you try with simpler CFLAGS, such as -O2 -march=native?
Comment 3 Markus Walter 2012-02-19 10:56:53 UTC
Okay, this seems to have nailed it. With CFLAGS="-O2 -pipe -march=native" I see a different failure later on. With CFLAGS="-O2 -pipe -march=native -floop-strip-mine" I see the first failure again.

Making check in doc
make[1]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build/doc'
make[1]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build'
make  test_gsl_histogram.sh pkgconfig.test
make[2]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build'
make[2]: Nothing to be done for `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15/test_gsl_histogram.sh'.
make[2]: Nothing to be done for `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15/pkgconfig.test'.
make[2]: Leaving directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build'
make  check-TESTS
make[2]: Entering directory `/var/tmp/portage/sci-libs/gsl-1.15-r2/work/gsl-1.15_build'
PASS: test_gsl_histogram.sh
FAIL: pkgconfig.test
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2012-02-27 03:48:02 UTC
fixed in recent patch in science overlay