Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539254 - =sys-devel/autogen-5.18.1 on IA64 fails 22/24 tests - AutoGen caught signal 11 (Segmentation fault) [in dev-scheme/guile-1.8.8-r1: guile] before initialization completed
Summary: =sys-devel/autogen-5.18.1 on IA64 fails 22/24 tests - AutoGen caught signal 1...
Status: RESOLVED DUPLICATE of bug 613986
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: IA64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2015-02-07 17:38 UTC by Émeric Maschino
Modified: 2017-11-11 11:48 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,36.53 KB, text/plain)
2015-02-07 17:38 UTC, Émeric Maschino
Details
test-suite.log (test-suite.log,104.04 KB, text/plain)
2015-02-07 17:39 UTC, Émeric Maschino
Details
environment (environment,69.19 KB, text/plain)
2015-02-07 17:40 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2015-02-07 17:38:56 UTC
Created attachment 395814 [details]
build.log

Emerging autogen with tests enabled to stabilize bug #492522 ends up with numerous test failures, some of them maybe related to bug #467156 as test-suite.log shows that guile is indeed involved.

     Émeric
Comment 1 Émeric Maschino 2015-02-07 17:39:55 UTC
Created attachment 395816 [details]
test-suite.log
Comment 2 Émeric Maschino 2015-02-07 17:40:20 UTC
Created attachment 395818 [details]
environment
Comment 3 Émeric Maschino 2015-02-07 17:41:07 UTC
emerge --info output:

Portage 2.2.14 (python 3.3.5-final-0, default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.7.3, glibc-2.19-r1, 3.18.5-gentoo ia64)
=================================================================
System uname: Linux-3.18.5-gentoo-ia64-Madison-with-gentoo-2.2
KiB Mem:    25052736 total,  20356672 free
KiB Swap:     524224 total,    524224 free
Timestamp of tree: Sat, 31 Jan 2015 17:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.1.12-r1
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.5.4, 4.6.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo my_ebuilds
ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-mtune=itanium2 -O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=itanium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/my_ebuilds"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon fbdev modesetting" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 4 Émeric Maschino 2015-02-07 17:42:29 UTC
emerge -pqv output (tests enabled):

longspeak ~ # FEATURES=test emerge -pqv autogen
[ebuild   R   ] sys-devel/autogen-5.18.1  USE="-libopts -static-libs"
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 07:08:22 UTC
Please post your `emerge -vpq dev-scheme/guile' output in a comment. It looks like guile segfaults before it can even begin to test anything, so the problem is probably there and not in autogen.
Comment 6 Émeric Maschino 2015-02-08 12:51:05 UTC
(In reply to Jeroen Roovers from comment #5)
> Please post your `emerge -vpq dev-scheme/guile' output in a comment. It
> looks like guile segfaults before it can even begin to test anything, so the
> problem is probably there and not in autogen.

Sure, but it'll probably be a duplicate of bug #467156:

[ebuild   R   ] dev-scheme/guile-1.8.8-r1  USE="deprecated nls regex threads -debug -debug-freelist -debug-malloc -discouraged -emacs -networking"

     Émeric
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 13:24:16 UTC
(In reply to Émeric Maschino from comment #6)
> (In reply to Jeroen Roovers from comment #5)
> > Please post your `emerge -vpq dev-scheme/guile' output in a comment. It
> > looks like guile segfaults before it can even begin to test anything, so the
> > problem is probably there and not in autogen.
> 
> Sure, but it'll probably be a duplicate of bug #467156:

No, it isn't. guile segfaulting is not what is causing bug #467156. Please try to obtain a gdb backtrace using the same command that the test suite is calling.
Comment 8 Émeric Maschino 2015-02-16 00:08:26 UTC
(In reply to Jeroen Roovers from comment #7)
>
> No, it isn't. guile segfaulting is not what is causing bug #467156. Please
> try to obtain a gdb backtrace using the same command that the test suite is
> calling.

I've recompiled guile with debug symbols.

As a double-check, I first ensure that emerging autogen again with the recompiled guile fails the same. It was.

Then, looking at test-suite.log, I first tried to obtain a backtrace of the first failing test: alias.test. As a double-check, I ran alias.test, expecting it to segfault. Nope, it completed successfully (well, I think) with the following output:


longspeak test # ./alias.test 
creating alias.def in /var/tmp/portage/sys-devel/autogen-5.18.1/work/autogen-5.18.1/autoopts/test/alias-testd
test_main YES
argument arg [...]
long_opts YES
-rw-r--r-- 1 root root 464 Feb 16 00:52 alias.def
run_ag ao alias.def
creating alias-1.help
alias error:  only one option option allowed
test_alias - Test AutoOpts for alias
Usage:  alias [ -<flag> [<val>] | --<name>[{=| }<val>] ]... arg [...]
  Flg Arg Option-Name    Description
   -o Str option         The option option descrip
   -s Num second         The second option descrip
   -a Str a-opt          an alias for the 'option' option
   -b Num b-second       an alias for the 'second' option
   -? no  help           display extended usage information and exit
   -! no  more-help      extended usage information passed thru pager

Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.
exit 1
./defs: line 97: 18987 Killed                  thumper
alias done


I then tried yet another failing test: main.test. It also seems to complete successfully:


longspeak test # ./main.test 
creating main.def in /var/tmp/portage/sys-devel/autogen-5.18.1/work/autogen-5.18.1/autoopts/test/main-testd
test_main yes
argument
long_opts
-rw-r--r-- 1 root root 425 Feb 16 00:53 main.def
run_ag ao main.def
creating main.hlp
./defs: line 97: 19289 Killed                  thumper
main done


I then individually ran every each test. All were ending with the same pattern:
./defs: line 97: PID Killed                  thumper
TESTNAME done

I suppose that TESTNAME done means that the test completed at least without crashing, right?

For completeness, I nevertheless ran guile from gdb and entered the guile commands of alias.test as logged in test-suite.log and that supposedly triggered the segfault. Nope, everything ran flawlessly.

Does all the above mean that the tests pass flawlessly when invoked from /var/tmp/portage/sys-devel/autogen-5.18.1/work/autogen-5.18.1/autoopts/test? What's then the difference during emerge, as I wasn't able to reproduce the segfault? Is it really guile segfaulting during emerge?

     Émeric
Comment 9 Matt Turner gentoo-dev 2017-03-21 18:38:20 UTC
Tests pass for me on ia64 with sys-devel/autogen-5.18.4
Comment 10 Émeric Maschino 2017-03-23 20:18:40 UTC
(In reply to Matt Turner from comment #9)
> Tests pass for me on ia64 with sys-devel/autogen-5.18.4

Not on my side: exactly the same errors two years later :-(

     Émeric
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-11 11:48:22 UTC
I believe it's a duplicate of bug #613986 (has a patch, not applied yet)

*** This bug has been marked as a duplicate of bug 613986 ***