Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238815 - emerge dev-perl/version-0.74 and 0.76 fail with a segmentation fault.
Summary: emerge dev-perl/version-0.74 and 0.76 fail with a segmentation fault.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 21:18 UTC by Stephen Bosch
Modified: 2008-09-28 17:32 UTC (History)
1 user (show)

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


Attachments
The build log (build.log,2.36 KB, text/plain)
2008-09-27 00:05 UTC, Stephen Bosch
Details
build.log from File-Spec-3.2701 (build.log,2.08 KB, text/plain)
2008-09-27 16:11 UTC, Stephen Bosch
Details
Build failure after rebuilding perl (build.log,2.36 KB, text/plain)
2008-09-27 17:51 UTC, Stephen Bosch
Details
revdep-rebuild fails (revdep-rebuild.txt,1.73 KB, text/plain)
2008-09-28 17:14 UTC, Stephen Bosch
Details
FileSpec build.log (build.log,2.08 KB, text/plain)
2008-09-28 17:17 UTC, Stephen Bosch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bosch 2008-09-26 21:18:23 UTC
I am trying to update dev-perl/version.

When I try to do this, it fails when it begins compiling with this error:

Creating new 'Build' script for 'version' version '0.74'
i686-pc-linux-gnu-gcc -I./vutil -I/usr/lib/perl5/5.8.8/i686-linux/CORE -fPIC -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i686 -pipe -o ./vutil/vutil.o ./vutil/vutil.c
Copying lib/version.pm -> blib/lib/version.pm
Copying vutil/lib/version/vxs.pm -> blib/lib/version/vxs.pm
Copying vutil/vxs.xs -> lib/version/vxs.xs
lib/version/vxs.xs -> lib/version/vxs.c
/var/tmp/portage/dev-perl/version-0.74/temp/environment: line 2299: 11211 Segmentation fault      perl Build build


Reproducible: Always

Steps to Reproduce:
1. emerge -1 dev-perl/version
2. Watch the fireworks.

Actual Results:  
# emerge -1 version
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-perl/version-0.74 to /
 * version-0.74.tar.gz RMD160 SHA1 SHA256 size ;-) ...                    [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking version-0.74.tar.gz ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking version-0.74.tar.gz to /var/tmp/portage/dev-perl/version-0.74/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-perl/version-0.74/work/version-0.74 ...
 * Using Module::Build
Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib
Checking whether your kit is complete...
Looks good

Checking prerequisites...
Looks good

i686-pc-linux-gnu-gcc -I/usr/lib/perl5/5.8.8/i686-linux/CORE -fPIC -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i686 -pipe -o /var/tmp/portage/dev-perl/version-0.74/temp/compilet.o /var/tmp/portage/dev-perl/version-0.74/temp/compilet.c
i686-pc-linux-gnu-gcc -shared -L/usr/local/lib -o /var/tmp/portage/dev-perl/version-0.74/temp/compilet.so /var/tmp/portage/dev-perl/version-0.74/temp/compilet.o
Checking whether your kit is complete...
Looks good

Checking prerequisites...
Looks good

Creating new 'Build' script for 'version' version '0.74'
i686-pc-linux-gnu-gcc -I./vutil -I/usr/lib/perl5/5.8.8/i686-linux/CORE -fPIC -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i686 -pipe -o ./vutil/vutil.o ./vutil/vutil.c
Copying lib/version.pm -> blib/lib/version.pm
Copying vutil/lib/version/vxs.pm -> blib/lib/version/vxs.pm
Copying vutil/vxs.xs -> lib/version/vxs.xs
lib/version/vxs.xs -> lib/version/vxs.c
/var/tmp/portage/dev-perl/version-0.74/temp/environment: line 2299: 11211 Segmentation fault      perl Build build
 *
 * ERROR: dev-perl/version-0.74 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2606:  Called perl-module_src_compile
 *             environment, line 2306:  Called die
 * The specific snippet of code:
 *               perl Build build || die "compilation failed";
 *  The die message:
 *   compilation failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-perl/version-0.74/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/version-0.74/temp/environment'.
 *

 * Messages for package dev-perl/version-0.74:

 *
 * ERROR: dev-perl/version-0.74 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2606:  Called perl-module_src_compile
 *             environment, line 2306:  Called die
 * The specific snippet of code:
 *               perl Build build || die "compilation failed";
 *  The die message:
 *   compilation failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-perl/version-0.74/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/version-0.74/temp/environment'.
 *


Expected Results:  
It should build normally.

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Fri, 26 Sep 2008 04:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
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-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.4.3-r1, 1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/share/config"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://mirror.datapipe.net/gentoo"
LANG="en_CA"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi afs alsa avi berkdb bidi cli cracklib crypt cups curl dri dvb dvd dvdr firefox flac fortran gdbm gpm gtk gtk2 iconv imagemagick imap imlib ipv6 isdnlog java jpeg kde ldap lib midi mmx mmxext mozilla mp3 mudflap nas ncurses nls nptl nptlonly nsplugin oggvorbis opengl openmp oss pam pcre pda pdflib perl png ppds pppd python qt qt3 quicktime readline real reflection samba sdl session spl ssl svga theora tiff truetype unicode usb videos win32codecs wmf www x86 xinerama xml xml2 xorg xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" 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="i810 fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christophe LEFEBVRE 2008-09-26 21:54:04 UTC
Emerge is successfull for me, when it fails for you, for me, I have this following line :

i686-pc-linux-gnu-gcc -I./vutil -I/usr/lib/perl5/5.8.8/i686-linux/CORE -DXS_VERSION="0.74" -DVERSION="0.74" -fPIC -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i686 -pipe -o lib/version/vxs.o lib/version/vxs.c

Can you attach the following file : 
/var/tmp/portage/dev-perl/version-0.74/temp/build.log ?
Comment 2 Stephen Bosch 2008-09-27 00:05:55 UTC
Created attachment 166555 [details]
The build log

I've been trying to find the exact failure point -- nothing obvious so far.
Comment 3 Stephen Bosch 2008-09-27 16:11:08 UTC
Created attachment 166603 [details]
build.log from File-Spec-3.2701

I'm starting to think my perl is broken. I did:

emerge -uavND --skip-first world

and got this result two packages in, again with something perl related.
Comment 4 Stephen Bosch 2008-09-27 17:51:11 UTC
Created attachment 166607 [details]
Build failure after rebuilding perl

I rebuilt perl, ran perl-cleaner, then tried again. Similar error, but note that the segmentation fault happens at a different line number.
Comment 5 Christophe LEFEBVRE 2008-09-27 18:59:07 UTC
Maybe, try do a revdep-rebuild (tool from app-portage/gentoolkit)...
Comment 6 Stephen Bosch 2008-09-28 16:39:31 UTC
I have now done

revdep-rebuild -X
revdep-rebuild -- which then blocks because of a series of masked packages.

I manually remerge all the packages until I get to PDL, which is a perl package, which fails, in exactly the same way.

Last night I ran emerge -e perl in a desperate effort to fix this, but it *still* fails.

I've also remerged glibc several times. I'm totally at a loss here. I'll attach the output of revdep-rebuild and 'emerge PDL' here.
Comment 7 Stephen Bosch 2008-09-28 17:14:32 UTC
Created attachment 166692 [details]
revdep-rebuild fails

revdep-rebuild fails at a masked package, PDL, which is a perl package.
Comment 8 Stephen Bosch 2008-09-28 17:17:16 UTC
Created attachment 166694 [details]
FileSpec build.log

Try to remerge PDL, and it pulls in FileSpec, which fails in the same way as before.
Comment 9 Stephen Bosch 2008-09-28 17:32:59 UTC
HOORAY!

It's fixed!

Here's how I did it.

1. I backed up all the perl packages, just in case :)

qlist -ICv '(dev-perl|perl-core|virtual/perl)' | xargs -I fish quickpkg =fish 

2. Then I removed all the perl packages like so:

emerge -aqC $(qlist -ICv '(dev-perl|perl-core|virtual/perl)'

3. Then I attempted to emerge version yet again. It pulled in 13 dependencies and built successfully!

Another way of solving this problem might have been to do:

emerge -e version

thought it would have taken longer.