Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214687 - localedef segfaults w/gcc-4.3 when glibc built with USE=glibc-omitfp
Summary: localedef segfaults w/gcc-4.3 when glibc built with USE=glibc-omitfp
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 226091 250351 286398 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-25 12:49 UTC by Alessandro Guido
Modified: 2011-07-02 17:51 UTC (History)
23 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 Alessandro Guido 2008-03-25 12:49:50 UTC
If i try to emerge glibc or run locale-gen manually I get this:

* Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.UTF-8 ...
/usr/sbin/locale-gen: line 264: 30235 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                   [ !! ]
 *  (2/2) Generating it_IT.UTF-8 ...
/usr/sbin/locale-gen: line 264: 30244 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                   [ !! ]
 * Generation complete
odino ~ # locale-gen -u
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.UTF-8 ...
/usr/sbin/locale-gen: line 264: 30271 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                   [ !! ]
 *  (2/2) Generating it_IT.UTF-8 ...
/usr/sbin/locale-gen: line 264: 30280 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                   [ !! ]
 * Generation complete


emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.3.0, glibc-2.7-r2, 2.6.25-rc6-00268-gd2532dd-dirty i686)
=================================================================
System uname: 2.6.25-rc6-00268-gd2532dd-dirty i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Tue, 25 Mar 2008 11:00:03 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 2.0.0
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="distlocks metadata-transfer nodoc noinfo parallel-fetch sfperms strict tmpfs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="--quiet -j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/my-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa bzip2 cdr cli dbus dvd dvdr dvdread emboss evo fam firefox fortran gif hal iconv isdnlog jpeg kde kdehiddenvisibility mad midi mikmod mmx mp3 mpeg mudflap nls nptl nptlonly ogg opengl pcre pdf png pppd qt3support quicktime reflection session spell spl sse sse2 ssl svg threads unicode vorbis win32codecs x86 xcomposite xinerama xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always
Comment 1 Alessandro Guido 2008-03-25 15:04:35 UTC
I think I tracked it down to the glibc-omitfp use-flag. with that disabled localedef doesn't segfault anymore (rebuilding w/ and w/o to confirm).
Comment 2 Alessandro Guido 2008-03-25 16:12:12 UTC
(In reply to comment #1)
> I think I tracked it down to the glibc-omitfp use-flag. with that disabled
> localedef doesn't segfault anymore (rebuilding w/ and w/o to confirm).
> 

Confirmed.
Comment 3 Denys Duchier 2008-05-28 14:06:14 UTC
same problem with emacs: emacs segfaults when started in GUI mode (except curiously when started from a root login shell).  terminal mode works fine.  after recompiling glibc with USE="-glibc-omitfp", emacs works again normally.
Comment 4 teidakankan 2008-06-09 23:06:39 UTC
I'm having this problem with gcc-4.3.1 and glibc-2.8_p20080602 and  compiling glibc with USE="-glibc-omitfp" allows locale-gen to work properly.  I've added -glibc-omitfp to my package.use till this is addressed.

Doesn't seem like it should be outputting a "Generation complete" when locale-gen is seg faulting.
Comment 5 Fabio Scaccabarozzi 2008-06-11 07:39:56 UTC
Confirmed with gcc-4.3.1 and glibc-2.7-r2. Removing glibc-omitfp from USE worked. I switched to gcc-4.3.1 and glibc-2.7-r2 on both x86 and amd64 architecture, but this bug shows up only on x86.
Comment 6 SpanKY gentoo-dev 2008-06-12 17:17:31 UTC
*** Bug 226091 has been marked as a duplicate of this bug. ***
Comment 7 Sylvain BERTRAND 2008-06-12 20:12:06 UTC
I do confirm: This bug seems to be x86 related since I have a similar x86-64 (but '-O3 -march=amdfam10' instead of '-O2 -march=pentium-m') similar system which is immune to this bug.
Comment 8 Richard Hendrikse 2008-08-07 19:36:13 UTC
 * Generating 20 locales (this might take a while) with 1 jobs
 *  ( 1/20) Generate de_DE.UTF-8 ? (Y/n) Y
/usr/sbin/locale-gen: line 264:  4396 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"
 *  ( 2/20) Generate de_DE.ISO-8859-1 ? (Y/n) 
 *  ( 3/20) Generate de_DE.ISO-8859-15@euro ? (Y/n) 
 *  ( 4/20) Generate en_GB.UTF-8 ? (Y/n) 
/usr/sbin/locale-gen: line 264:  4415 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"
 *  ( 5/20) Generate en_GB.ISO-8859-1 ? (Y/n) 

I'm having this bug affecting me on my x86_64 system with the following system, but dmesg first:
dmesg reports: 
localedef[4396] general protection ip:43a674 sp:7fff37304d58 error:0 in localedef[400000+49000]
localedef[4415] general protection ip:43a652 sp:7fff2c059ab8 error:0 in localedef[400000+49000]
(all other attempts at the unicode thingy give exactly the same "

system-stats:
Portage 2.2_rc6 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Mon, 04 Aug 2008 10:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18.50.0.3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks noinfo parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg kde kerberos libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xv zlib" ALSA_CARDS="emu10k1 mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

no flags enabled on glibc AT ALL
Comment 9 Lucas 2008-12-02 03:05:34 UTC
This is a serious bug as -O implies -fomit-fp on AMD64 (or any other arch where FP omission does not interfere with debugging), which explains why Richard was seeing it with no USE flags set whatsoever.

Note...I have never seen this issue on my AMD64 machine, but I have not used any of the suspect GCC versions, having gone straight from 4.1.2 to 4.3.1.
Comment 10 SpanKY gentoo-dev 2008-12-09 06:12:53 UTC
this is not a serious bug.  it only occurs when USE=glibc-omitfp, and that isnt recommended.  people should try glibc-2.9 ...
Comment 11 SpanKY gentoo-dev 2008-12-09 13:44:56 UTC
*** Bug 250351 has been marked as a duplicate of this bug. ***
Comment 12 Alessandro Guido 2008-12-09 17:31:27 UTC
(In reply to comment #10)
> this is not a serious bug.  it only occurs when USE=glibc-omitfp, and that isnt
> recommended.  people should try glibc-2.9 ...
> 

Still segfaults
Comment 13 lily 2008-12-10 02:04:15 UTC
(In reply to comment #10)
> this is not a serious bug.  it only occurs when USE=glibc-omitfp, and that isnt
> recommended.  people should try glibc-2.9 ...
> 

I use glibc-2.9 with USE=glibc-omitfp, the "Segmentation fault" still there~
see: http://bugs.gentoo.org/show_bug.cgi?id=250351
Comment 14 Richard Hendrikse 2009-01-11 16:23:41 UTC
yes, the bug still lives. I think I saw an update that actually did generate the UTF-8 files earlier (on 2.8), but I haven't consciously sat down and checked it.

Stranger is that none of the UTF-8 locales were working with the new linux-headers-2.6.28-r1, but only korean, japanese (and russian, iirc) failed after I downgraded linux-headers to 2.6.27-r2 and rebuilt glibc.

Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Mon, 05 Jan 2009 21:45:02 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg kde libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="emu10k1 mpu401" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Tobias Jakobi 2009-04-09 21:07:45 UTC
Same problem here - it's especially annoying since gcc-4.3 went stable some days ago.
Comment 16 Nils Stöckmann 2009-04-12 16:21:02 UTC
same here:

i ran 4.1.3 until now; i'm using the 2.8_p20080602-r1 glibc and didn't run into the problem until I ventured the recent gcc-4.3-2-r3 upgrade.

Does anyone know whether the root of this bug is being searched for or whether it'll be necessary to stick with -glibc-omitfp or <gcc-4.3 ?

for me /usr/bin/locale-gen looks totally fine at the place (ln 264) where the segfault occurs, this seems to be a very strange compiler quirk for me.

does anyone know when in which exact version this behavior occured? If so, maybe the changelog could help find out what triggers this bug
Comment 17 Stef NN. 2009-04-13 15:25:39 UTC
can confirm this.
On x86 (pentium-m) gcc-4.3.2-r3, glibc-2.8_p20080602-r1. (with glibc-omitfp)
Just did a upgrade to the new stable gcc/glibc and ran into it...
Comment 18 Mark Loeser (RETIRED) gentoo-dev 2009-05-03 15:15:54 UTC
This works for me with sys-libs/glibc-2.9_p20081201-r2.  Please test and let me know.
Comment 19 bob5972 2009-05-03 18:33:25 UTC
(In reply to comment #18)
> This works for me with sys-libs/glibc-2.9_p20081201-r2.  Please test and let me
> know.
> 

It's still broken for me with  sys-devel/gcc-4.3.3 and sys-libs/glibc-2.9_p20081201-r2.  I'm also on a Pentium-M if that helps.

emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-glibc2.0
Timestamp of tree: Fri, 01 May 2009 23:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -fweb -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -fweb -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.osuosl.org/  http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aim alsa amarok amazon amr apache2 bash-completion berkdb bidi bluetooth branding bzip2 cairo ccache cdda cddb cdio cdparanoia cdr cgi cli colordiff cracklib crypt cups cupsddk curl curlwrappers dbus deflate dirac dri dts dvd dvdr dvdread ecc eds emacs emboss encode esd evo exif fam ffmpeg fftw firefox flac fortran ftp fuse gcj gd gdbm gif gimp glibc-omitfp glut gmp gnome gnome-print gnutls gpm graphviz gstreamer gtk gtkhtml hal iconv id3 id3tag idea idn imagemagick imap ipv6 isdnlog java java6 javascript jpeg kde kpathsea lcms ldap libcaca libnotify live lzo mad matroska mbox md5sum midi mikmod mime mjpeg mmx mmxext mng mp3 mp4 mpeg mplayer mudflap multiuser ncurses nls nodrm nptl nptlonly nsplugin objc ogg ogg123 openal opengl openmp oscar pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection rtc samba sasl schroedinger sdl session slang sockets speex spell spl srt sse sse2 ssl startup-notification stream subtitles svg svga sysfs szip tcpd tga theora tidy tiff truetype unicode usb vcd vcdinfo vcdx visualization vlm vorbis wifi win32codecs wmf x264 x86 xine xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache filter ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fglrx vesa vga fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 20 Tobias Jakobi 2009-05-03 18:37:07 UTC
This probably depends on whether a i386 or amd64 system is used.
Comment 21 Mark Loeser (RETIRED) gentoo-dev 2009-05-03 19:30:29 UTC
Interesting.  I did it on an x86 system.  Could you try playing around with different cflags on your system to see if they make a difference?  I'm trying to find a system that I can reproduce this on.
Comment 22 Christopher Head 2009-05-04 00:22:20 UTC
Just another data point: for me, the following versions segfault:

2.8_p20080602-r1
2.9_p20081201
2.9_p20081201-r1
2.9_p20081201-r2

this is on an x86 Pentium M with CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" and of all the USE flags glibc understands, only "glibc-omitfp" and "nls" are enabled. I am using a hardened kernel with SEGMEXEC, mprotect restrictions, and NO relocations or trampolines allowed.

On other systems, even 2.8 works fine (this is true on a Pentium 2 box with -march=pentium2 and excluding -pipe, a number of Pentium 4 boxes with -march=pentium4 and *including* -pipe, and a Pentium 2 Celeron with -march=pentium2 and including -pipe).
Comment 23 Mark Loeser (RETIRED) gentoo-dev 2009-05-04 00:28:23 UTC
Almost all of you that reported have pentium-m, anyone else able to reproduce it with anything but pentium-m anymore?
Comment 24 Christopher Head 2009-05-04 00:37:47 UTC
... and now I can't go back to a stable version because apparently you're not allowed to downgrade glibc :/
Comment 25 bob5972 2009-05-04 01:51:58 UTC
I reinstalled sys-libs/glibc-2.9_p20081201-r2 a few times, and this is what I found.

It seems that -march=pentium-m doesn't get along with glibc-omitfp.

Works:
USE="-glibc-omitfp" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -fweb -mmmx -msse -msse2"
USE="glibc-omitfp" CFLAGS="-march=i686"

SegFaults: 
USE="glibc-omitfp" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -fweb -mmmx -msse -msse2"
USE="glibc-omitfp" CFLAGS="-march=pentium-m"
Comment 26 Tobias Jakobi 2009-05-05 21:15:07 UTC
I have a Celeron-M here, but also using "-march=pentium-m" (there isn't a separate arch for the Celeron variant). However I currently don't have the time to recompiled glibc, maybe at the weekend though.
Comment 27 Alessandro Guido 2009-05-08 20:03:08 UTC
Still getting segfaults with latest glibc and gcc 4.3.3. However with gcc 4.4.0 the problem seems fixed
Comment 28 Mads 2009-05-18 13:38:02 UTC
I can confirm that the problem has gone away with gcc 4.4.0.

[ebuild   R   ] sys-devel/gcc-4.4.0  USE="fortran gtk mudflap nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
[ebuild   R   ] sys-libs/glibc-2.10.1  USE="glibc-omitfp nls -debug -gd (-hardened) (-multilib) -profile (-selinux) -vanilla" 0 kB

arch: ~x86
CFLAGS: "-march=native -O2 -pipe -fomit-frame-pointer"
Comment 29 Christopher Head 2009-05-19 06:53:21 UTC
Data point: gcc-4.4.0 fixes this for me too.
Comment 30 Jeremy Murphy 2009-08-04 08:53:48 UTC
In the mean time until gcc 4.4 is unmasked, I just tested -mtune=pentium-m and it worked fine.  Cheers.
Comment 31 Marcel Pennewiß 2009-09-23 22:55:27 UTC
(In reply to comment #30)
> In the mean time until gcc 4.4 is unmasked, I just tested -mtune=pentium-m and
> it worked fine.  Cheers.

worked also fine for me. thx for this hint.
Comment 32 Dawid Węgliński (RETIRED) gentoo-dev 2009-09-25 13:01:04 UTC
*** Bug 286398 has been marked as a duplicate of this bug. ***
Comment 33 Marcel Semancik 2010-01-31 18:40:14 UTC
-mtune=pentium-m + glibc-2.10.1-r1 + gcc-4.3.4 segfault for me too. gcc-4.4.2 solve it and locale-gen works correctly.
Comment 34 Marcel Pennewiß 2010-01-31 20:05:50 UTC
(In reply to comment #33)
> -mtune=pentium-m + glibc-2.10.1-r1 + gcc-4.3.4 segfault for me too

but this worked for me:

gcc 4.3.4 (fortran mudflap nls nptl openmp -altivec -bootstrap -build -doc -fixed-point -gcj -gtk -hardened -libffi -multilib -multislot -n32 -n64 -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla)

glibc-2.10.1-r1 (glibc-omitfp nls -crosscompile_opts_headers-only -debug -gd -hardened -multilib -profile -selinux -vanilla)

running
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs" emerge glibc -av
and segfaults are gone.
Comment 35 Marc Tousignant 2010-06-26 13:30:18 UTC
I too am getting this bug.
gcc-4.3.4
glibc-2.11.1

locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.ISO-8859-1 ...
/usr/sbin/locale-gen: line 264:  4834 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                                                               [ !! ]
 *  (2/2) Generating en_US.UTF-8 ...
/usr/sbin/locale-gen: line 264:  4838 Segmentation fault      "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}"                                                                                                                               [ !! ]
 * Generation complete

emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.1-r0, 2.6.30-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Atom-TM-_CPU_230_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 25 Jun 2010 04:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://mirror.datapipe.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/boxee /usr/local/mt-mythtv"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apm berkdb bzip2 cairo cli cracklib crypt cxx dri dts encode exif expat faac ffmpeg firefox flac fontconfig fortran gd gdbm gif glut gpm gzip hal iconv imagemagick jpeg lame libvisual lirc lm_sensors mad matroska mmx modules mp3 mpeg mudflap multilib mysql ncurses nfs nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre perl png pppd python qt4 quicktime readline reflection sdl server session smp spl sse sse2 ssl stroke svg sysfs tcpd theora threads truetype unicode vdpau vnc vorbis x264 xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" LIRC_DEVICES="mceusb streamzap" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 36 Marc Tousignant 2010-06-26 13:35:46 UTC
oh, and I'm not using glibc-omitfp and still seeing this.
Comment 37 Ryan Hill (RETIRED) gentoo-dev 2011-07-01 05:45:42 UTC
Since 4.4 is stable now maybe we can close this.
Comment 38 Nils Stöckmann 2011-07-02 09:49:50 UTC
CLOSED is fine for me.