Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21358 - gcc 3.3 gets segv compiling glibc-2.3.2-r2 on ~x86
Summary: gcc 3.3 gets segv compiling glibc-2.3.2-r2 on ~x86
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-20 15:40 UTC by James Cloos
Modified: 2003-10-01 22:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Cloos 2003-05-20 15:40:25 UTC
Per bug 21182, I tried upgrading gcc from 3.2.... to 3.3, and glibc from
2.3.2-r1 to 2.3.2-r2.

I get a segv from gcc 3.3 when trying to merge glibc:

CPP='gcc -E -x c-header' 
/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/elf/ld-linux.so.2
--library-path
/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/math:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/elf:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/dlfcn:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/nss:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/nis:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/rt:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/resolv:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/crypt:/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/nptl
/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/sunrpc/rpcgen -Y
../scripts -c rpcsvc/bootparam_prot.x -o
/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.T
make[2]: ***
[/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp]
Segmentation fault
make[2]: Leaving directory
`/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/home/portage/portage/glibc-2.3.2-r2/work/glibc-2.3.2'
make: *** [all] Error 2


I USE nptl, and run a current 2.5 kernel.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-21 14:01:24 UTC
'emerge info' please.
Comment 2 James Cloos 2003-05-21 15:40:27 UTC
  Portage 2.0.48_pre6 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.5.67-jhc1 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow apm gtkhtml arts esd ldap aalib acl acpi alsa apache2 avi berkdb bonobo cdr cjk crypt cups dvd encode ethereal evo flash gb gd gdbm gif gnome gphoto2 gpm gtk gtk2 guile imap imlib innodb ipv6 java jikes jpeg junit kde lcms leim libg++ libgda libwww mikmod mmx motif mozilla mozsvg mpeg mule nas ncurses nls nptl objc oci8 oggvorbis opengl oss pam pcmcia pda pdflib perl pic plotutils png pnp postgres python qt quicktime radeon readline ruby sasl scanner sdl slang slp snmp spell sse ssl tcltk tcpd tetex tiff truetype usb wmf X xml xml2 xmms xv zlib -mysql -svga"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -mmmx -msse -O3 -pipe"
CXXFLAGS="-march=pentium3 -mmmx -msse -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync5.us.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg ccache keeptemp cvs"
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-21 15:57:26 UTC
Can you try with -O2 instead of -O3 please ?
Comment 4 James Cloos 2003-05-21 17:16:40 UTC
-O2 results in the same error as -O3.

.../buildhere/elf/ld-linux.so gives a SEGV for any command that does not end up displaying its help text.

I got this trace by running the command in gdb (the corefile did not have the info):

Program received signal SIGSEGV, Segmentation fault.
0x80001c6b in dl_main ()
(gdb) where
#0  0x80001c6b in dl_main ()
#1  0x8000f902 in _dl_sysdep_start ()
#2  0x80000f7e in _dl_start ()

I had a breakpoint at dl_main() and the SEGV occurred after just one step command.

Comment 5 Joshua Kinard gentoo-dev 2003-10-01 22:04:52 UTC
Resolving as WORKSFORME, as glibc-2.3.2-r2 is rather old.  glibc-2.3.2-r6
is in portage, and I've built it using gcc-3.3.1 with nptl and a 2.6.0-testX-mmY
kernel many times without incident.  Thus, it was likely fixed upstream in
glibc CVS.  If this is not the case, feel free to re-open this bug.