Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114628 - eix-0.5.1-r2 stabilization WAS: app-portage/eix 0.3.0-r2 gets SIGSEGV if it's compiled with gcc 3.4.4 and -O2
Summary: eix-0.5.1-r2 stabilization WAS: app-portage/eix 0.3.0-r2 gets SIGSEGV if it'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-06 08:23 UTC by Daniel Plaza
Modified: 2006-04-02 00:22 UTC (History)
6 users (show)

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


Attachments
Workaround for the bug. (workaround-bug114628.patch,441 bytes, patch)
2006-02-09 09:46 UTC, Emil Beinroth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Plaza 2005-12-06 08:23:51 UTC
I have updated gcc to 3.4.4-r1 in my alpha and I have compiled app-portage/eix
0.3.0-r2. When I run "update-eix" I get:

# update-eix 
Reading Portage settings ..
Received SIGSEGV - you probably found a bug in eix.
Please post the output of eix -V along with your bugreport.
Sorry for the inconvenience.

The output of eix -V is:

# eix -V
eix 0.3.0 (gcc-3.4.4, alpha-unknown-linux-gnu)

If I compile eix without -O2 it works. Also If I compile eix with debug (and
-O2), "update-eix" and "eix" work fine so I can't debug them.

My emerge info:

Portage 2.0.51.22-r3 (default-linux/alpha/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.12.5 alpha)
=================================================================
System uname: 2.6.12.5 alpha EV6
Gentoo Base System version 1.6.13
dev-lang/python:     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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -O2 -mcpu=ev6 -pipe"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -O2 -mcpu=ev6 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.caliu.info/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="alpha arts bash-completion berkdb bitmap-fonts bzip2 crypt cups eds encode
expat font-server foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg
kde ldap libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg
oggvorbis opengl oss pam pcre pdflib perl pic png python qt quicktime readline
sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Emil Beinroth 2005-12-08 11:26:27 UTC
Does app-portage/eix-0.5.0 work?
Comment 2 Daniel Plaza 2005-12-09 03:46:39 UTC
  app-portage/eix-0.5.0 doesn't work if it's compiled with -O2. If I remove -O2
it  works fine.
Comment 3 Daniel Plaza 2006-02-08 09:38:54 UTC
  Same problem with eix-0.5.1-r1.
Comment 4 Emil Beinroth 2006-02-09 09:46:20 UTC
Created attachment 79340 [details, diff]
Workaround for the bug.

I've tested eix on a alpha-box of a friend, and I can't find anything wrong with the code.
But this patch somehow removes the segfault.
Comment 5 Daniel Plaza 2006-02-09 11:56:39 UTC
(In reply to comment #4)

Thanks, with that patch it works ok, but I can understand why. 
Comment 6 Daniel Plaza 2006-02-09 11:56:39 UTC
(In reply to comment #4)

Thanks, with that patch it works ok, but I can understand why. ¿Only moving a variable declaration can make it work? ¿Maybe GCC problem?
Comment 7 georg.lippold 2006-02-20 14:23:09 UTC
the patch doesn't work for me on 0.3.0. 

emerge info:

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.10GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -fomit-frame-pointer -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -fomit-frame-pointer -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_US@euro"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac acl acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cdb cdr crypt cscope cups curl dga divx4linux dlloader dmx dts dv dvb dvd dvdread eds emboss encode esd exif expat fam ffmpeg flac font-server foomaticdb fortran ftp gcj gd gdbm gif glut gnome gnutls gpm gstreamer gtk gtk2 guile hal hardened howl i8x0 icq idn imagemagick imap imlib ipv6 jabber java jpeg junit kde lcms ldap libg++ libwww live lm_sensors mad mbox memlimit mhash mikmod mime mmap mmx mmxext mng mono motif mp3 mpeg mpi mppe-mppc msn ncurses nis nls nptl offensive ogg oggvorbis opengl oscar oss pam pcmcia pcre pdflib perl pic pie png pnp portaudio posix postgres ppds python qt quicktime readline real samba sasl scanner sdl slang sockets sox spell sse sse2 ssl svg svga sysfs tcpd tetex tga theora threads tiff truetype truetype-fonts trusted type1-fonts udev unicode unsupported_8bit usb v4l vcd vorbis wifi win32codecs wmf wxwindows xanim xface xine xinerama xml2 xmms xmvc xosd xpm xv xvid yahoo zeo zlib video_cards_i915 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 8 georg.lippold 2006-02-23 07:54:20 UTC
I played a bit with gcc options and found out that eix doesn't segfault if compiled only with CFLAGS=CXXFLAGS="-O2 -pipe". If I compile it with "-march=pentium-m" however, it segfaults regularly. Maybe really a bug in gcc-3.4.4?
Comment 9 georg.lippold 2006-02-23 07:59:35 UTC
I was wrong, it is "-fomit-frame-pointer" that causes the issue.
Comment 10 georg.lippold 2006-02-23 08:09:03 UTC
Sorry for spamming you. I was wrong again. It works if compiled with "-O2" but without it, it segfaults.
Comment 11 Emil Beinroth 2006-02-23 13:55:29 UTC
(In reply to comment #6)
> the patch doesn't work for me on 0.3.0. 

Please try the ~x86 version of eix.
PS: This bug is for alpha, you have x86.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2006-03-15 15:55:14 UTC
No bugs for 0.5.1-r2 outstanding and it WORKSFORME... Might I suggest we move for stabilizing a 0.5.1 ebuild?
Comment 13 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-15 16:22:18 UTC
yes, jer please mark stable if you have a stable system.
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-21 13:07:36 UTC
x86 team: please stabilize 0.5.1-r2
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-21 13:36:49 UTC
arches please test app-portage/eix-0.5.1-r2 and mark stable
Comment 16 Matthias Langer 2006-03-22 03:55:28 UTC
I've just installed eix-0.5.1-r2 for testing against x86. I've done eix-sync and about 15 searches with different options (-S -C -r ...), and everthing seems to work as expected.

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig colission-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aalib alsa apm audiofile avi berkdb bitmap-fonts bonobo bzip2 bzlib cairo cdr cli crypt css ctype cups curl dba dbus divx4linux dri dts dv dvd dvdr dvdread emboss encode evo exif expat fam fame fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 java jpeg junit lcms libg++ libwww mad memlimit mhash mikmod mmx mmxext mng motif mp3 mpeg nautilus ncurses nls nptl nsplugin nvidia ogg oggvorbis openal opengl pam pcre pdflib perl plotutils png posix python quicktime readline real ruby sdl session simplexml slang soap sockets speex spell spl sqlite sse ssl subtitles svga tcltk tcpd tetex theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wma xine xml xml2 xmms xsl xv xvid zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2006-03-22 14:09:41 UTC
You seem to have forgotten to actually CC the arches.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2006-03-22 14:10:34 UTC
And now I was having the same problem. 8-)
Comment 19 Jeroen Roovers (RETIRED) gentoo-dev 2006-03-22 14:49:44 UTC
Forgot to add ppc-macos.

Stable on hppa!
Comment 20 Andrej Kacian (RETIRED) gentoo-dev 2006-03-22 16:18:26 UTC
I've been using 0.5.1-r2 since it was added to portage, and it looks good. Stable on x86.
Comment 21 Luis Medinas (RETIRED) gentoo-dev 2006-03-22 16:43:02 UTC
stable on amd64.
Comment 22 Joe Jezak (RETIRED) gentoo-dev 2006-03-24 22:47:55 UTC
Hansmi has already marked this ppc stable.
Comment 23 Fabian Groffen gentoo-dev 2006-03-24 23:08:45 UTC
ppc-macos stable
Comment 24 Gustavo Zacarias (RETIRED) gentoo-dev 2006-03-27 16:25:06 UTC
sparc stable.
Comment 25 Thomas Cort (RETIRED) gentoo-dev 2006-04-01 05:29:53 UTC
I tested app-portage/eix-0.5.1-r2 on alpha. It compiles and works. Alpha team, please add the alpha keyword.

# emerge --info
Portage 2.0.54 (default-linux/alpha/2006.0, gcc-3.3.2, glibc-2.3.5-r3, 2.6.15.1 alpha)
=================================================================
System uname: 2.6.15.1 alpha EV56
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.15.92.0.2-r10
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nostrip sandbox sfperms strict test"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="alpha X alsa apache2 arts berkdb bitmap-fonts bzip2 cli crypt ctype cups dba dri eds encode esd expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad memlimit mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png posix python qt quicktime readline sdl session simplexml soap sockets spell spl ssl symlink tcpd tokenizer truetype truetype-fonts type1-fonts udev userlocales vorbis xml xmms xsl xv zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL
Comment 26 Markus Rothe (RETIRED) gentoo-dev 2006-04-01 05:50:03 UTC
stable on ppc64
Comment 27 Stefan Schweizer (RETIRED) gentoo-dev 2006-04-02 00:22:52 UTC
thanks kloeri, alpha done, all done