<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>114885</bug_id>
          
          <creation_ts>2005-12-08 08:56 0000</creation_ts>
          <short_desc>dev-python/numeric: singular_value_decomposition hangs when built with gcc 3.4.4-r1</short_desc>
          <delta_ts>2007-02-07 17:24:33 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>schiotz@fysik.dtu.dk</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>bicatali@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>schiotz@fysik.dtu.dk</who>
            <bug_when>2005-12-08 08:56:09 0000</bug_when>
            <thetext>GCC 3.4.4-r1 just went stable, but it looks like the
singular_value_decomposition function in dev-python/numeric breaks with this
compiler.

The attached test script illustrates the problem.  It should run to completion,
but hangs in singular_value_decomposition.  I have extracted this from a program
that worked a few days ago, but after rebuilding everything with the new gcc it
hangs.

My CFLAGS are CFLAGS=&quot;-O2 -march=pentium4 -fomit-frame-pointer -pipe&quot;



Reproducible: Always
Steps to Reproduce:
1. Run the attached Python script
2.
3.

Actual Results:  
It hangs.



demokrit ~ # gcc-config -c
i686-pc-linux-gnu-3.4.4
demokrit ~ # etcat -v gcc
[ Results for search key           : gcc ]
[ Candidate applications found : 17 ]

 Only printing found installed programs.

*  sys-devel/gcc :
        [M  ] 2.95.3-r9 (2.95)
        [M  ] 3.1.1-r2 (3.1)
        [M  ] 3.2.2 (3.2)
        [M  ] 3.2.3-r4 (3.2)
        [M  ] 3.3.2-r7 (3.3)
        [   ] 3.3.5-r1 (3.3)
        [   ] 3.3.5.20050130-r1 (3.3)
        [M~ ] 3.3.5.20050130-r2 (3.3)
        [  I] 3.3.6 (3.3)
        [M~ ] 3.4.1-r3 (3.4)
        [M~ ] 3.4.3-r1 (3.4)
        [M~ ] 3.4.3.20050110-r2 (3.4)
        [  I] 3.4.4-r1 (3.4)
        [M  ] 3.4.5 (3.4)
        [M  ] 4.0.1 (4.0)
        [M  ] 4.0.2-r1 (4.0)
        [M  ] 4.1.0_beta20051202 (4.1)
demokrit ~ # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/var/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks fixpackages sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/&quot;
LINGUAS=&quot;dk&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/var/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/home/schiotz/development/CamposEbuilds/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X Xaw3d acpi alsa atlas audiofile avi berkdb bitmap-fonts bzip2 cdr
crypt cups curl dga dvd eds emacs emboss encode exif expat fam ffmpeg flac
font-server foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk gtk2 idn
imagemagick imap imlib java jpeg kde kdeenablefinal kdexdeltas lcms libg++
libwww mad maildir mbox mikmod mime mng motif mozilla mp3 mpeg mule ncurses
netcdf nls nptl ogg oggvorbis opengl oss pam pcmcia pcre pdflib perl png pnp
ppds python qt quicktime readline real scanner sdl smime spell sse sse2 ssl
tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts udev usb
vorbis win32codecs wxwindows xine xml2 xmms xv xvid zlib linguas_dk userland_GNU
kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schiotz@fysik.dtu.dk</who>
            <bug_when>2005-12-08 08:56:42 0000</bug_when>
            <thetext>Created an attachment (id=74315)
Test script.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schiotz@fysik.dtu.dk</who>
            <bug_when>2005-12-12 01:48:25 0000</bug_when>
            <thetext>I did some more testing.  The fomit-frame-pointer flag has no effect, it still
hangs when I remove it.  But recompiling numeric with i686-pc-linux-gnu-3.3.6
fixes the problem.  I will keep the old compiler around just for the purpose of
compiling numeric.

This bug is assigned to the python herd, but it is of course possible that it is
a GCC problem.

/Jakob
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jak137@o2.pl</who>
            <bug_when>2005-12-19 14:39:51 0000</bug_when>
            <thetext>Other solution would be to fix numeric ebuilds to use syatem lapack for LinearAlgebra module. It has been discussed (http://bugs.gentoo.org/show_bug.cgi?id=81520) but unfortunately it seems that no ebuilds were added to portage as a result. I have numeric-23.8 compiled with gcc-3.4.4, linked with lapack-atlas-3.6.0 and no problems with your script.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2006-06-07 10:23:25 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; Other solution would be to fix numeric ebuilds to use syatem lapack for
&gt; LinearAlgebra module. 

I did an ebuild for numeric-24.2 that links with blas/lapack, in the Gentoo Scientific overlay: http://gentooscience.org.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schiotz@fysik.dtu.dk</who>
            <bug_when>2006-10-24 07:08:08 0000</bug_when>
            <thetext>I agree with comment #4.

I just wanted to add, that the bug is also present when compiling with GCC 4.1.1.

/Jakob
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2007-02-07 17:24:33 0000</bug_when>
            <thetext>fixed in &gt;=dev-python/numeric-24.2-r1, now in cvs. Thanks for testing!
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>74315</attachid>
            <date>2005-12-08 08:56 0000</date>
            <desc>Test script.</desc>
            <filename>testcase.py</filename>
            <type>text/plain</type>
            <data encoding="base64">ZnJvbSBOdW1lcmljIGltcG9ydCAqCmltcG9ydCBMaW5lYXJBbGdlYnJhCgpwYXIgPSBbNC44ODEy
MDcxMiwgLTAuMDczMjk1Nzk5OTk5OTk5OTk0LCAtMC4wODg4Mzg3NjAwMDAwMDAwMDMsIDAuMzAy
MzA4NDMwMDAwMDAwMDIsIC0wLjk5MzkxMDM5OTk5OTk5OTk3LCAwLjk5NTgxNDA1OTk5OTk5OTk1
LCAtMC42NDc5MTYzMTAwMDAwMDAwNSwgMC4zOTA5MjUyMTAwMDAwMDAwMiwgLTAuMzcyMTg0NjIw
MDAwMDAwMDIsIDAuMjI0NDM2NTAwMDAwMDAwMDEsIC0wLjExNzYyNzc3MDAwMDAwMDAxLCAwLjA4
OTI5NzkyMDAwMDAwMDAwMywgLTAuMDM1MzY4NjYwMDAwMDAwMDAzLCAwLjAxNjA0NTMxLCAtMC4w
Mjc3MDk1Njk5OTk5OTk5OTksIDAuMCwgMC4wLCAwLjAsIDAuMCwgMC4wLCAwLjAsIDAuMCwgMC4w
LCAwLjAsIDAuMCwgMC4wLCAwLjAsIDAuMCwgLTAuMzM4NjIxMDI5OTk5OTk5OTksIC0wLjMxNTgx
MTQzLCAwLjAsIDAuMCwgMC4wLCAwLjAsIDAuMCwgMC4wLCAwLjAsIDAuMCwgMC4wLCAwLjBdCgpk
ZWYgRXhwbShhbHBoYSx4KToKICAgIHJDdXQgPSA0Ljg1CiAgICB3aXRoaW5jdXRvZmZyYWRpdXMg
PSBsZXNzX2VxdWFsKHgsckN1dCkKICAgIHJldHVybiAoZXhwKC1hbHBoYSp4KS0oYWxwaGEqKHJD
dXQteCkrMSkqZXhwKC1hbHBoYSpyQ3V0KSkqd2l0aGluY3V0b2ZmcmFkaXVzCgpkZWYgRGVuc2l0
eShsYXQsYWxwaGEpOgogICAgcmV0dXJuIDgqRXhwbShhbHBoYSxsYXQqc3FydCgzLjApLzIuMCkr
NipFeHBtKGFscGhhLGxhdCkrMTIqRXhwbShhbHBoYSxsYXQqc3FydCgyLjApKQoKZGVmIExhdHRp
Y2VDb25zdGFudChyaG8sYyk6CiAgICByZXR1cm4gY1swXSArIGNbMV0qbG9nKHJobykrY1syXSpy
aG8qbG9nKHJobykrY1szXSpyaG8qKjIqbG9nKHJobykrY1s0XSpyaG8qKjMqbG9nKHJobykgKyBy
aG8qY1s1XSArIDEvcmhvKmNbNl0gKyAxL3JobyoqMipjWzddCiAgICAKYWxwaGEgPSA0Ljg4MTIw
NzEyClkgPSBbXQpBID0gW10Kbm9ybSA9IERlbnNpdHkoMy4xODcyLGFscGhhKQpmb3IgbGF0IGlu
IGFyYW5nZSgyLjksMy41MSwwLjEpOgogICAgWS5hcHBlbmQobGF0KQogICAgcmhvID0gRGVuc2l0
eShsYXQsYWxwaGEpL25vcm0KICAgIEEuYXBwZW5kKFtdKQogICAgZm9yIGkgaW4gcmFuZ2UoOCk6
CiAgICAgICAgYyA9IHplcm9zKCg4LCkpCiAgICAgICAgY1tpXSA9IDEKICAgICAgICBBWy0xXS5h
cHBlbmQoTGF0dGljZUNvbnN0YW50KHJobyxjKSkKZm9yIGxhdCBpbiBhcmFuZ2UoMy4xMiwzLjIz
LDAuMDEpOgogICAgWS5hcHBlbmQobGF0KQogICAgcmhvID0gRGVuc2l0eShsYXQsYWxwaGEpL25v
cm0KICAgIEEuYXBwZW5kKFtdKQogICAgZm9yIGkgaW4gcmFuZ2UoOCk6CiAgICAgICAgYyA9IHpl
cm9zKCg4LCkpCiAgICAgICAgY1tpXSA9IDEKICAgICAgICBBWy0xXS5hcHBlbmQoTGF0dGljZUNv
bnN0YW50KHJobyxjKSkKWSA9IGFycmF5KFkpCkEgPSBhcnJheShBKQoKcHJpbnQgWQpwcmludCBB
ClUsdyxWID0gTGluZWFyQWxnZWJyYS5zaW5ndWxhcl92YWx1ZV9kZWNvbXBvc2l0aW9uKEEpCg==
</data>        

          </attachment>
    </bug>

</bugzilla>