Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77440 - sys-apps/coreutils-5.2.1-r4 fail on amd64
Summary: sys-apps/coreutils-5.2.1-r4 fail on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 15:58 UTC by Nuno Alexandre
Modified: 2005-03-28 09:34 UTC (History)
1 user (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 Nuno Alexandre 2005-01-10 15:58:48 UTC
Calculating world dependencies ...done!
>>> emerge (1 of 1) sys-apps/coreutils-5.2.1-r4 to /
>>> md5 src_uri ;-) coreutils-5.2.1.tar.bz2
>>> md5 src_uri ;-) coreutils-5.2.1-patches-0.9.tar.bz2
>>> md5 src_uri ;-) coreutils-5.2.1-i18n-0.2.patch.bz2
>>> Unpacking source...
>>> Unpacking coreutils-5.2.1.tar.bz2 to /var/tmp/portage/coreutils-5.2.1-r4/work
>>> Unpacking coreutils-5.2.1-patches-0.9.tar.bz2 to /var/tmp/portage/coreutils-5.2.1-r4/w                           ork
>>> Unpacking coreutils-5.2.1-i18n-0.2.patch.bz2 to /var/tmp/portage/coreutils-5.2.1-r4/wo                           rk
 * Applying various patches (bugfixes/updates) ...
 *   001_all_coreutils-mdk-lug.patch ...                                            [ ok ]
 *   002_all_coreutils-mdk-spacedir.patch ...                                       [ ok ]
 *   003_all_coreutils-mdk-sparc.patch ...                                          [ ok ]
 *   005_all_coreutils-mdk-timestyle.patch ...                                      [ ok ]
 *   006_all_coreutils-mdk-afs.patch ...                                            [ ok ]
 *   007_all_coreutils-mdk-dumbterm.patch ...                                       [ ok ]
 *   008_all_coreutils-mdk-glibc22.patch ...                                        [ ok ]
 *   009_all_coreutils-mdk-restore-color.patch ...                                  [ ok ]
 *   012_all_coreutils-mdk-dircolors-c.patch ...                                    [ ok ]
 *   013_all_coreutils-mdk-ls.c.patch ...                                           [ ok ]
 *   014_all_coreutils-mdk-ls.h.patch ...                                           [ ok ]
 *   015_all_coreutils-mdk-touch-errno.patch ...                                    [ ok ]
 *   016_all_coreutils-mdk-utmp.patch ...                                           [ ok ]
 *   017_all_coreutils-mdk-mem.patch ...                                            [ ok ]
 *   019_all_coreutils-mdk-dateman.patch ...                                        [ ok ]
 *   020_all_coreutils-mdk-paths.patch ...                                          [ ok ]
 *   021_all_coreutils-mdk-pam.patch ...                                            [ ok ]
 *   022_all_coreutils-mdk-rfc822.patch ...                                         [ ok ]
 *   023_all_coreutils-mdk-signal.patch ...                                         [ ok ]
 *   024_all_coreutils-mdk-allow-old-options.patch ...                              [ ok ]
 *   026_all_coreutils-mdk-64bit-fixes.patch ...                                    [ ok ]
 *   027_all_coreutils-mdk-build-fix.patch ...                                      [ ok ]
 * Done with patching
 * Applying coreutils-5.2.1-i18n-0.2.patch ...                                      [ ok ]
 * Applying various patches (bugfixes/updates) ...
 *   001_all_coreutils-gen-progress-bar.patch ...                                   [ ok ]
 *   002_all_coreutils-gen-remove-su_hostname_groups_kill_uptime.patch ...          [ ok ]
 *   003_all_coreutils-gentoo-uname.patch ...                                       [ ok ]
 *   004_all_coreutils-gen-remove-some-manpages.patch ...                           [ ok ]
 *   005_all_coreutils-sort.c.patch ...                                             [ ok ]
 *   006_all_coreutils-i486.patch ...                                               [ ok ]
 *   007_all_coreutils-tail-fifo.patch ...                                          [ ok ]
 *   008_all_coreutils-chown-dereference.patch ...                                  [ ok ]
 *   009_all_coreutils-tests.patch ...                                              [ ok ]
 * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   001_all_coreutils-warning-head.c.patch ...                                     [ ok ]
 *   002_all_coreutils-warning-tail.c.patch ...                                     [ ok ]
 *   003_all_coreutils-warning-nice.c.patch ...                                     [ ok ]
 *   004_all_coreutils-warning-userspec.c.patch ...                                 [ ok ]
 *   005_all_coreutils-warning-seq.c.patch ...                                      [ ok ]
 *   006_all_coreutils-mbrtowc-join.c-cut.c.patch ...                               [ ok ]
 * Done with patching
>>> Source unpacked.
 * Reconfiguring configure scripts (be patient) ...
configure.ac: 6: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
automake: configure.ac: `AM_INIT_AUTOMAKE' must be used
configure.ac: 2461: required file `config/ltmain.sh' not found
lib/Makefile.am: DEFS must be set with `=' before using `+='
lib/Makefile.am:23: DEFS was set with `+=' and is now set with `='

!!! ERROR: sys-apps/coreutils-5.2.1-r4 failed.
!!! Function src_compile, Line 93, Exitcode 1
!!! automake
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.10-mm2 x86_64)
=================================================================
System uname: 2.6.10-mm2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 26 2004, 23:46:16)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoclean autoconfig ccache distlocks nodoc noinfo notitles
sandbox"
GENTOO_MIRRORS="http://mirror.uni-c.dk/gentoo/ ftp://ftp.dkuug.dk/pub/gentoo/
ftp://rsync.gentoo.diku.dk http://ftp.du.se/pub/os/gentoo"
LDFLAGS="-Wl,-O1"
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="amd64 X acpi alsa bitmap-fonts cdr crypt f77 flac imagemagick ipv6 jp2 jpeg
lzw lzw-tiff ncurses nptl nptlonly oggvorbis opengl perl pic png python slang
ssl tcpd truetype truetype-fonts type1-fonts unicode usb userlocales xml2 xpm
xrandr xv zlib"
Comment 1 Jason Bradley Nance 2005-01-12 17:29:40 UTC
A similar issue happens with version 5.2.1-r2 on AMD_64:

...
Making all in man
make[2]: Entering directory `/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1/man'
rm -fr basename.td;
Updating man page basename.1
rm -fr cat.td;
Updating man page cat.1
make[2]: *** [basename.1] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cat.1] Error 139
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1/man'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/coreutils-5.2.1-r2 failed.
!!! Function src_compile, Line 114, Exitcode 2
!!! (no error message)
Comment 2 Jason Bradley Nance 2005-01-13 10:07:01 UTC
Additional log information for my instance of the bug:

/var/log/kern.log:

grsec: From w.x.y.z: attempted resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by /usr/bin/perl5.8.5[perl:23349] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[sh:23336] uid/euid:0/0 gid/egid:0/0

/var/log/messages:

kernel: perl[23349]: segfault at ffffffff86f74fe0 rip 00000032bb039a30 rsp 000000780dab8b68 error 4
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-14 07:57:20 UTC
Jason Bradley Nance:

your problem has actually not much todo with the one 'Nuno Alexandre' has because your's is the result of an grsecurity option you enable in your kernel. 
Comment 4 Tim Barbour 2005-01-17 03:49:26 UTC
I have the same problem (with 5.2.1-r2 on AMD_64) observed by Jason Bradley Nance, and AFAIK I am not running a grsecurity kernel (I am still running the kernel from the 2004.3-r1 installation CD).

I get the same output:

Making all in man
make[2]: Entering directory `/usr/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1/man'
rm -fr cat.td; 
Updating man page cat.1
rm -fr basename.td; 
Updating man page basename.1
make[2]: *** [basename.1] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cat.1] Error 139
make[2]: Leaving directory `/usr/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1/man'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/var/tmp/portage/coreutils-5.2.1-r2/work/coreutils-5.2.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/coreutils-5.2.1-r2 failed.
!!! Function src_compile, Line 114, Exitcode 2
!!! (no error message)


I tried running make manually in the source tree, and found that the following perl command (originally issued by make) does a seg-v:

elysium2 man # perl -- ./help2man                  --info-page='coreutils basename'                --include=./basename.x                  --output=basename.1 basename.td/`echo basename|sed 's/install/ginstall/; s/test/[/'`
Segmentation fault

which shows up in the log:

Jan 17 11:40:58 livecd perl[14120]: segfault at 000000002accecf0 rip 0000002a95d86d40 rsp 0000007fbffff6e8 error 4


elysium2 man # emerge --info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: 
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
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="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://mirror.aarnet.edu.au/pub/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="amd64 acpi alsa berkdb bitmap-fonts cdr crypt dvd emul-linux-x86 f77 font-server fortran gif gpm ipv6 jp2 jpeg lzw lzw-tiff multilib ncurses nls opengl oss pam perl png python readline ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib"


So it appears to be a problem with Perl.
Comment 5 SpanKY gentoo-dev 2005-01-25 16:44:42 UTC
this bug has nothing to do with help2man segfaulting, stop posting about it
Comment 6 Wolfram Schlich (RETIRED) gentoo-dev 2005-01-26 05:29:50 UTC
I experience the same as in comment #4 -- perl segfaults when running help2man
Comment 7 voidptr 2005-01-27 00:45:47 UTC
I've created a bugreport for help2man with reference to posts in this bug...
However the initial report made in this bug (77440) has nothing to do with help2man as stated earlier.

Please direct further comments about help2man to:
http://bugs.gentoo.org/show_bug.cgi?id=79478

It's not strictly a help2man problem, because perl is not supposed to segfault under any circustances...
Comment 8 Alexander Gabert (RETIRED) gentoo-dev 2005-01-27 17:05:08 UTC
i need this from you:

file $(which perl5.8.5)
emerge -pv binutils
emerge -pv glibc gcc

hardened yes or no?

any funky CFLAGS?

TIA,

Alex
Comment 9 Attila Stehr 2005-02-07 02:18:35 UTC
(x86 system here)

file $(which perl5.8.5):
/usr/bin/perl5.8.5: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
-------------------------------------------------------------

error message:

======================================
1 of 4 tests failed
(1 tests were not run)
Please report to bug-coreutils@gnu.org
======================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r4/work/coreutils-5.2.1/tests/chgrp'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r4/work/coreutils-5.2.1/tests/chgrp'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r4/work/coreutils-5.2.1/tests'
make: *** [check-recursive] Error 1

!!! ERROR: sys-apps/coreutils-5.2.1-r4 failed.
!!! Function src_test, Line 114, Exitcode 2
!!! make check failed

----------------------------------------------------------
system:

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 16 2005, 17:50:47)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
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="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks maketest sandbox severe sfperms test"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow apache2 bzlib crypt curl curlwrappers doc emacs exif gd gif gpm hardened hardenedphp jpeg leim memlimit mime mmx mng mysql ncurses nls pam pcntl pdflib php png postgres session simplexml soap sockets spl ssl svga tcpd tidy tokenizer x86 xml xml2 xsl zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 10 solar (RETIRED) gentoo-dev 2005-02-07 21:38:03 UTC
To work around this probem I disabled gettext from loading in the man/ subdir.
Adding the following to the src_unpack() works around this.

sed -i -e s/'have_gettext = 1'/'have_gettext = 0'/g man/help2man
Comment 11 solar (RETIRED) gentoo-dev 2005-02-13 06:37:53 UTC
This should be fixed now for ia64/amd64 users by a perl update Locale-gettext.
Comment 12 Alex Howells (RETIRED) gentoo-dev 2005-03-28 09:34:51 UTC
Solar mentions this should be fixed now, no comments in the last 45 days or thereabouts. I just pinged him on IRC and we're both of the opinion it needs to be closed and marked FIXED - please reopen if there is any further difficulty.