Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 123342
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Anode <gavr@rogers.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
coreutils-5.94-r1.ebuild coreutils-5.94-r1.ebuild text/plain SpanKY 2006-02-20 00:49 0000 4.40 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 123342 depends on: Show dependency tree
Bug 123342 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-18 22:54 0000
After "emerge world" (baselayout and coreutils were emerged) - all the packages
using autoconf started to fail with Segmentation fault in ./configure:
---8<---
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdilr=/etc
--localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
./configure: line 56:  4963 Segmentation fault      expr a : '\(a\)' >/dev/null
2>&1
./configure: line 198:  4977 Segmentation fault      expr a : '\(a\)'
>/dev/null 2>&1
configure: error: expected an absolute directory name for --datadir:
---8<---


$ emerge info
Portage 2.1_pre4-r1 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.3.6-r3,
2.6.14-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8"
CHOST="x86_64-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.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa apm arts asf audiofile avi bash-completion
berkdb bitmap-fonts bluetooth bonobo bzip2 cdparanoia cdr codecs crypt cups
curl dba divx4linux dv dvd eds elibc_glibc emboss encode esd ethereal exif
expat fam ffmpeg flac flash flatfile fluxbox foomaticdb fortran frlargefiles gd
gdbm gif gimp gkrellm glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml
i8x0 idn ieee1394 imagemagick imlib ipv6 java jpeg junit kde kernel_linux lcms
ldap libcaca libg++ libwww lzw lzw-tiff mad maildir mikmod mime ming mng motif
mozilla mp3 mpeg mpeg4 mplayer mysql ncurses network nls nvidia ogg oggvorbis
opengl openssh oss pam pcre pdflib perl png python qt quicktime readline real
rplay samba sdl slang sox speex spell ssl svg tcltk tcpd tetex tiff truetype
truetype-fonts type1 type1-fonts unicode usb userland_GNU userlocales
video_cards_sis vorbis xine xml xml2 xmms xpm xv xvid zlib"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS,
MAKEOPTS, PORTDIR_OVERLAY

------- Comment #1 From Carsten Lohrke 2006-02-18 23:55:18 0000 -------
*** Bug 123338 has been marked as a duplicate of this bug. ***

------- Comment #2 From Carsten Lohrke 2006-02-19 00:03:15 0000 -------
*** Bug 123325 has been marked as a duplicate of this bug. ***

------- Comment #3 From SpanKY 2006-02-19 00:03:35 0000 -------
it isnt autoconf segfaulting, it looks like basic shell code

what does the tail end of `dmesg` look like ?

------- Comment #4 From Nestor Arocha 2006-02-19 03:55:42 0000 -------
I have the same segfaults, (emerging bash,coreutils,glibc,icewm,ruby...). Any
bash expression with expr x : \(x\) crashed. Then I overwrite /usr/bin/expr
with a precompiled version:
(http://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_5.93-5ubuntu2_amd64.deb)

Now, $if expr a : '\(a\)'; then ls ; fi works.

I believe the error appeared when I upgrade to coreutils-5.94.
---------------------------------------------------

emerge info

Gentoo Base System version 1.12.0_pre16
Portage 2.1_pre4-r1 (default-linux/amd64/2005.0/no-multilib, gcc-3.4.5,
glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -ffast-math -pipe -O3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -ffast-math -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="es_ES"
LINGUAS="es"
MAKEOPTS="-j3"
PKGDIR="/tmp"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa bitmap-fonts cid crypt dvd fortran gif ipv6 jpeg mp3 mpeg
ncurses nls opengl pam pdflib perl png python qt readline sdl spell ssl
truetype-fonts type1-fonts usb userlocales xcomposite xv zlib elibc_glibc
kernel_linux linguas_es userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, PORTDIR_OVERLAY

------- Comment #5 From Haldir@phreaker.net 2006-02-19 04:38:27 0000 -------
(In reply to comment #4)
> I have the same segfaults, (emerging bash,coreutils,glibc,icewm,ruby...). Any
> bash expression with expr x : \(x\) crashed. Then I overwrite /usr/bin/expr
> with a precompiled version:
> (http://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_5.93-5ubuntu2_amd64.deb)
> 
> Now, $if expr a : '\(a\)'; then ls ; fi works.
> 
> I believe the error appeared when I upgrade to coreutils-5.94.
> ---------------------------------------------------
> 
> emerge info
> 
> Gentoo Base System version 1.12.0_pre16
> Portage 2.1_pre4-r1 (default-linux/amd64/2005.0/no-multilib, gcc-3.4.5,
> glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
> =================================================================
> System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
> ccache version 2.4 [enabled]
> dev-lang/python:     2.3.5-r2, 2.4.2-r1
> sys-apps/sandbox:    1.2.17
> 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-r1
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r3
> ACCEPT_KEYWORDS="amd64 ~amd64"
> AUTOCLEAN="yes"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=athlon64 -mtune=athlon64 -ffast-math -pipe -O3"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
> /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
> /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
> CXXFLAGS="-march=athlon64 -mtune=athlon64 -ffast-math -pipe -O3"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/linux/distributions/gentoo"
> LC_ALL="es_ES"
> LINGUAS="es"
> MAKEOPTS="-j3"
> PKGDIR="/tmp"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="amd64 X alsa bitmap-fonts cid crypt dvd fortran gif ipv6 jpeg mp3 mpeg
> ncurses nls opengl pam pdflib perl png python qt readline sdl spell ssl
> truetype-fonts type1-fonts usb userlocales xcomposite xv zlib elibc_glibc
> kernel_linux linguas_es userland_GNU"
> Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS, PORTDIR_OVERLAY
> 

------- Comment #6 From Haldir@phreaker.net 2006-02-19 04:41:37 0000 -------
(In reply to comment #4)
> I have the same segfaults, (emerging bash,coreutils,glibc,icewm,ruby...). Any
> bash expression with expr x : \(x\) crashed

Same behaviour here, after overwriting expr with an older binary (32bit version
from another machine), it worked fine, downgrading to coreutils 5.93 solved the
problem finally.

Proposed solution is to mask coreutils 5.94 for amd64

------- Comment #7 From erick 2006-02-19 04:47:04 0000 -------
laptop ~ # emerge info
Portage 2.1_pre4-r1 (default-linux/ppc/2005.1/ppc, gcc-4.1.0-beta20060203,
glibc-2.3.6-r2, 2.6.15 ppc)
=================================================================
System uname: 2.6.15 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=powerpc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://213.186.33.37/gentoo-distfiles/
http://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/
ftp://213.186.33.38/gentoo-distfiles/ http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.heanet.ie/pub/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aac acl alsa apache2 asf bash-completion berkdb bitmap-fonts
bluetooth bzip2 crypt cups dri dvd dvdr dvdread dxr3 eds emboss ffmpeg firefox
flac fortran gif glx gpm gstreamer gtk gtk2 hpn imlib ipv6 jpeg kde libwww
mjpeg motif mp3 mpeg mpeg2 mpeg4 ncurses nls nsplugin ogg oggvorbis opengl pam
pbbuttonsd pci pdflib perl png python qt readline spell ssl tcpd truetype
truetype-fonts type1-fonts udev unicode usb vim-pager vorbis xchat xinerama
xml2 xmms xscreensaver xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS,
MAKEOPTS

Same here for ~ppc arch.
I have downloaded: 

http://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_5.93-5ubuntu2_powerpc.deb 

extracted it, copied: 

cp coreutils_5.93-5ubuntu2_powerpc/usr/bin/expr /usr/bin/expr

and remerge coreutils-5.93:

emerge =sys-apps/coreutils-5.93 

rik@laptop ~ $ expr a : '\(a\)'
a
rik@laptop ~ $

------- Comment #8 From Jonathan Coome 2006-02-19 06:00:53 0000 -------
I've just managed to get expr to segfault like this when coreutils is built
with sys-apps/acl present on my system, regardless of whether the acl USE flag
is enabled or not.

------- Comment #9 From Anode 2006-02-19 09:13:03 0000 -------
(In reply to comment #3)
> it isnt autoconf segfaulting, it looks like basic shell code
> 
> what does the tail end of `dmesg` look like ?
> 

$ dmesg | tail -n3
[ACPI Debug]  String: [0x12] "=====QUERY_38====="
[ACPI Debug]  String: [0x12] "=====QUERY_37====="
expr[4757]: segfault at 000000010050711f rip 000000000040187d rsp
00007fffffbf3370 error 6

------- Comment #10 From Anode 2006-02-19 10:11:38 0000 -------
Thanks for your help!

P.S. I've done the same for now: 
1)$echo "=sys-apps/coreutils-5.94" >> /etc/portage/package.mask
2)overwriting /bin/expr taking it from the backup (couldn't extract from deb as
suggested since didn't have dpkg and "emerge dpkg" sure failed as well), 
3)$emerge coreutils

------- Comment #11 From Jakub Moc (RETIRED) 2006-02-19 10:15:57 0000 -------
*** Bug 123336 has been marked as a duplicate of this bug. ***

------- Comment #12 From solar 2006-02-19 10:24:40 0000 -------
*** Bug 123368 has been marked as a duplicate of this bug. ***

------- Comment #13 From solar 2006-02-19 10:26:24 0000 -------
bug #23368#c8 has a work around if you get stuck

------- Comment #14 From solar 2006-02-19 10:27:24 0000 -------
sorry thats bug #123368 comment 8

------- Comment #15 From Thomas Weidner 2006-02-19 14:44:51 0000 -------
i have problems with 5.94, too, but i am on x86,not amd64!
i.e.
thomas@localhost ~ $ expr match "x--enable-nls"  'x-*enable-\([^=]*\)'

thomas@localhost ~ $ 

should give "nls". therefore i many installs are broken...

------- Comment #16 From Jakub Moc (RETIRED) 2006-02-19 15:04:33 0000 -------
*** Bug 123418 has been marked as a duplicate of this bug. ***

------- Comment #17 From Nathan Sullivan 2006-02-19 16:03:30 0000 -------
After upgrading coreutils to 5.94 and baselayout to 1.12.0_pre16-r1 i get
similar issues... This doesnt look amd64 specific to me... :)

Calculating system dependencies ...done!
>>> emerge (1 of 2) sys-devel/make-3.80-r4 to /
>>> md5 files   ;-) make-3.80-r2.ebuild
>>> md5 files   ;-) make-3.80-r4.ebuild
>>> md5 files   ;-) make-3.80-r1.ebuild
>>> md5 files   ;-) make-3.80-r3.ebuild
>>> md5 files   ;-) files/make-3.80-parallel-build-failure.patch
>>> md5 files   ;-) files/make-3.80-conditional-eval.patch
>>> md5 files   ;-) files/3.80-memory.patch
>>> md5 files   ;-) files/digest-make-3.80-r1
>>> md5 files   ;-) files/digest-make-3.80-r2
>>> md5 files   ;-) files/digest-make-3.80-r3
>>> md5 files   ;-) files/digest-make-3.80-r4
>>> md5 files   ;-) files/make-3.80-ppc64-hardened-clock_gettime.patch
>>> md5 src_uri ;-) make-3.80.tar.bz2
>>> Unpacking source...
>>> Unpacking make-3.80.tar.bz2 to /var/tmp/portage/make-3.80-r4/work
 * Applying 3.80-memory.patch ...                                              
                                                                               
     [ ok ]
 * Applying make-3.80-parallel-build-failure.patch ...                         
                                                                               
     [ ok ]
 * Applying make-3.80-conditional-eval.patch ...                               
                                                                               
     [ ok ]
>>> Source unpacked.
 * econf: updating make-3.80/config/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating make-3.80/config/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --enable-nls --program-prefix=g
--build=i686-pc-linux-gnu
configure: error: invalid feature name: 

!!! ERROR: sys-devel/make-3.80-r4 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed

Going to test downgrading to coreutils-5.93.

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3,
2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-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="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo
http://ftp.swin.edu.au/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi bash-completion berkdb big-tables bitmap-fonts bzip2
cli crypt cups curl curlwrappers dba debug dvd eds emboss encode ethereal exif
expat extraengine fam foomaticdb fortran ftp gd gdbm gif gpm gstreamer imap
imlib innodb ipv6 jpeg kerberos ldap libg++ libwww lm_sensors mad mcal mhash
mikmod mmx motif mp3 mpeg mppe-mppc mysql mysqli ncurses nls nptl nptlonly ogg
oggvorbis opengl pam pcntl pcre pdflib pear perl php png posix python quicktime
radius readline ruby sdl session simplexml snmp soap sockets spell sqlite sse
ssl tcpd tidy tiff truetype truetype-fonts type1-fonts udev unicode usb
userlocales utf8 vhosts vorbis wddx x86 xml xml2 xmlrpc xmms xsl xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #18 From solar 2006-02-19 16:42:09 0000 -------
*** Bug 123426 has been marked as a duplicate of this bug. ***

------- Comment #19 From solar 2006-02-19 17:22:44 0000 -------
Change severity to major as this requires manual intervention to recover

------- Comment #20 From Nathan Sullivan 2006-02-19 17:29:01 0000 -------
Starting program: /bin/expr a : '\(a\)'

Program received signal SIGSEGV, Segmentation fault.
0x000000000040184a in docolon (sv=0x507070, pv=0x5070b0) at expr.c:447
447     expr.c: No such file or directory.
        in expr.c
(gdb) bt
#0  0x000000000040184a in docolon (sv=0x507070, pv=0x5070b0) at expr.c:447
#1  0x0000000000401f71 in eval5 (evaluate=true) at expr.c:600
#2  0x0000000000401fb0 in eval4 (evaluate=true) at expr.c:624
#3  0x0000000000402110 in eval3 (evaluate=true) at expr.c:668
#4  0x000000000040220d in eval2 (evaluate=true) at expr.c:700
#5  0x0000000000401950 in eval1 (evaluate=<value optimized out>) at expr.c:779
#6  0x00000000004019f0 in eval (evaluate=<value optimized out>) at expr.c:810
#7  0x0000000000401b23 in main (argc=4, argv=0x7fffff92e880) at expr.c:209

Portage 2.0.54 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2,
2.6.15-ck2 x86_64)
=================================================================
System uname: 2.6.15-ck2 x86_64 AMD Opteron(tm) Processor 148
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.15_rc6
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages nostrip sandbox sfperms
strict"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo
http://ftp.swin.edu.au/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi aim alsa amd64 apache2 audiofile avi bash-completion berkdb
big-tables bitmap-fonts bzip2 cairo canvas cdr cli crypt cups curl dba debug
divx4linux dri dvd dvdr emboss encode ethereal exif expat extraengine fam
ffmpeg firefox flac foomaticdb fortran gd gdbm gif glut gmp gpm gstreamer gtk
gtk2 icq idn imap imlib innodb ipv6 jabber java jpeg kerberos lcms ldap libcaca
lzw lzw-tiff mad mhash mng mozsvg mp3 mpeg mppe-mppc mysql mysqli ncurses nls
nptl nptlonly nsplugin nvidia ogg openal opengl pam pcntl pcre pdflib pear perl
php png posix python quicktime readline real ruby samba sdl session slang soap
sockets spell sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev
unicode usb userlocales utf8 vorbis wddx xine xinerama xml xml2 xmlrpc xmms
xosd xpm xsl xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #21 From Mark Loeser 2006-02-19 17:36:25 0000 -------
Just a note, this version is now in package.mask.

# Mark Loeser <halcy0n@gentoo.org> (19 Feb 2006)
# Severely breaks systems; http://bugs.gentoo.org/show_bug.cgi?id=123342
# The manual fix can be found at:
# http://bugs.gentoo.org/show_bug.cgi?id=123368#c8
=sys-apps/coreutils-5.94

------- Comment #22 From Kyle McFarland 2006-02-19 17:55:40 0000 -------
I'm fairly sure the problem of expr returning nothing and the "configure:
error: invalid feature name: " errors are caused by --without-included-regex
being added to the econf of the coreutils ebuild in revision 1.4, to test it I
built and installed the rev 1.5 ebuild to a local directory and then copied the
ebuild to an overlay, took --without-included-regex out of the ebuild and
installed it to another local directory. in the following the executables in
coreutils-5.94-included-regex are built without --without-included-regex and
the ones in coreutils-5.94-no-included-regex are built with it.

so, first I tried running expr match "x--enable-nls"  'x-*enable-\([^=]*\)' on
both versions of expr:
kyle@Selene ~/Projects $ ./coreutils-5.94-included-regex/image/bin/expr match
"x--enable-nls"  'x-*enable-\([^=]*\)'
nls
and,
kyle@Selene ~/Projects $ ./coreutils-5.94-no-included-regex/image/bin/expr
match "x--enable-nls"  'x-*enable-\([^=]*\)'

then expr a : '\(a\)':
kyle@Selene ~/Projects $ ./coreutils-5.94-included-regex/image/bin/expr a :
'\(a\)'
a
and
kyle@Selene ~/Projects $ ./coreutils-5.94-no-included-regex/image/bin/expr a :
'\(a\)'

next I tried the enchant ./configure as run by the ebuild, but setting PATH to
the equivelint bin paths:
Selene enchant-1.2.0 #
PATH="/home/kyle/Projects/coreutils-5.94-included-regex/image/bin/:${PATH}"
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --enable-gtk-doc --build=i686-pc-linux-gnu
checking for a BSD-compatible install...
/home/kyle/Projects/coreutils-5.94-included-regex/image/bin//install -c
checking whether build environment is sane... yes
... (finishes with no problems)
and
Selene enchant-1.2.0 #
PATH="/home/kyle/Projects/coreutils-5.94-no-included-regex/image/bin/:${PATH}"
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --enable-gtk-doc --build=i686-pc-linux-gnu
configure: error: invalid feature name:

(I was unable to reproduce any segfaulting)
(also, I'm sory I havn't debugged it to see exactly why its happening, too lazy
currently :))
emerge info:
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2,
2.6.15-gentoo i686)
=================================================================
System uname: 2.6.15-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/libtool:   1.3.5, 1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -O2 -march=pentium4 -pipe -frerun-loop-opt -floop-optimize2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-g -O2 -march=pentium4 -pipe -frerun-loop-opt -floop-optimize2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/
ftp://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/
http://distfiles.gentoo.org/"
LANG="en_CA.utf8"
LC_ALL="en_CA.utf8"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/fluidportage
/home/kyle/Projects/pub-overlay /usr/local/lila-portage
/home/kyle/Projects/ebuilds /usr/local/portage-gentopia
/usr/local/portage-gexp"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi adns aim alsa apm arts audiofile avahi avi
bash-completion bcmath beagle berkdb bitmap-fonts bonobo bzip2 bzlib cairo cdda
cddb cdio cdparanoia cdr cjk crypt ctype cups curl curlwrappers dba dbm dbus
dbx dedicated directfb doc dri dts dv dvd dvdr dvdread eds emboss encode
ethereal exif faad fame fbcon ffmpeg firefox flac font-server foomaticdb
fortran freetype ftp gb gd gdbm ggi gif gimp glx gnome gphoto2 gpm gstreamer
gtk gtk2 gtkhtml guile hal iconv icq idn imagemagick imlib ipv6 ithreads jabber
java joystick jpeg kde latex lcms libcaca libg++ libgda libwww live mad
matroska mhash mikmod mmap mmx mng mono motif mp3 mpeg msn nas ncurses nls nntp
nptl nptlonly nvidia odbc ogg oggvorbis openal opengl oss pam pango pcre pdflib
perl png portaudio python qt quicktime readline ruby samba sdk sdl session
shared simplexml sndfile sockets softmmu speex spell sqlite sse sse2 ssl stream
svg svga szip tcltk tcpd theora tiff truetype truetype-fonts type1 type1-fonts
unicode usb utf8 vcd videos vorbis win32codecs wmf wxwindows xchat xine
xinerama xml xml2 xosd xpm xprint xsl xv xvid yahoo zlib elibc_glibc
kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS

------- Comment #23 From Jakub Moc (RETIRED) 2006-02-19 17:56:06 0000 -------
*** Bug 123429 has been marked as a duplicate of this bug. ***

------- Comment #24 From SpanKY 2006-02-19 17:56:32 0000 -------
looks like the problem is with the --without-included-regex option

see if 5.94 works for you guys after you drop that line from the ebuild

------- Comment #25 From Brandon Low (RETIRED) 2006-02-19 18:12:49 0000 -------
Commenting out that line makes 5.94 work for me.

------- Comment #26 From Brian Toovey 2006-02-19 18:38:30 0000 -------
This is not amd64

------- Comment #27 From Nathan Sullivan 2006-02-19 18:48:20 0000 -------
Seems to me like there might be more than 1 issue in this bug? So the invalid
feature name issue works fine after commenting the --without-included-regex
line, which was added recently. So that looks to be 1 issue out of the way, the
segv issue seems to be unrelated?

------- Comment #28 From Anode 2006-02-19 21:55:36 0000 -------
Commenting-out "--without-included-regex" in the ebuild preventing build with
the following message (seems that the number of options hardcoded). 
---8<---
config.status: creating po/Makefile
/usr/portage/sys-apps/coreutils/coreutils-5.94.ebuild: line 87: --enable-nls:
command not found
---8<---
However _changing_ the line to "--with-included-regex" allowed to compile.

No segfault now:
---8<---
comp coreutils-5.94 # src/expr a : '\(a\)'
a
---8<---

------- Comment #29 From Anode 2006-02-19 23:23:02 0000 -------
anybody knows any impacts of _enabling_ included-regexp?
If no - 5.94 could be probably unmasked after applying of the following patch:
---8<---
--- coreutils-5.94.ebuild       2006-02-19 03:36:23.000000000 -0500
+++ coreutils-5.94.ebuild.patched       2006-02-19 20:36:51.000000000 -0500
@@ -82,7 +82,7 @@
        use static && append-ldflags -static
        econf \
                --enable-largefile \
-               --without-included-regex \
+               --with-included-regex \
                $(use_enable nls) \
                $(use_enable selinux) \
                ${myconf} \
---8<---

------- Comment #30 From SpanKY 2006-02-20 00:49:20 0000 -------
Created an attachment (id=80253) [details]
coreutils-5.94-r1.ebuild

this version should auto-upgrade most people

------- Comment #31 From Jakub Moc (RETIRED) 2006-02-20 03:37:02 0000 -------
*** Bug 123474 has been marked as a duplicate of this bug. ***

------- Comment #32 From Anode 2006-02-20 05:07:49 0000 -------
> coreutils-5.94-r1.ebuild

works for me, thanks

------- Comment #33 From SpanKY 2006-02-20 11:56:27 0000 -------
in cvs then, thanks for testing

------- Comment #34 From Jakub Moc (RETIRED) 2006-02-20 12:07:29 0000 -------
*** Bug 123513 has been marked as a duplicate of this bug. ***

------- Comment #35 From Brian Toovey 2006-02-20 17:41:31 0000 -------
Forgive me, but I still don't believe all these bug merges are related.  I
emerged make, which was the start of the the problem.  Also this is not AMD64
issue.  The bug I filed was http://bugs.gentoo.org/show_bug.cgi?id=123429

Thanks,
Brian

------- Comment #36 From SpanKY 2006-02-20 18:14:59 0000 -------
why dont you test 5.94-r1 first

------- Comment #37 From Jakub Moc (RETIRED) 2006-02-22 12:22:25 0000 -------
*** Bug 123737 has been marked as a duplicate of this bug. ***

------- Comment #38 From Jakub Moc (RETIRED) 2006-02-22 16:44:56 0000 -------
*** Bug 123767 has been marked as a duplicate of this bug. ***

------- Comment #39 From Jakub Moc (RETIRED) 2006-02-24 01:49:21 0000 -------
*** Bug 123898 has been marked as a duplicate of this bug. ***

------- Comment #40 From Jakub Moc (RETIRED) 2006-02-25 03:42:47 0000 -------
*** Bug 124043 has been marked as a duplicate of this bug. ***

------- Comment #41 From Jakub Moc (RETIRED) 2006-04-09 02:33:25 0000 -------
*** Bug 129319 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug