Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634170 - sys-devel/autogen-5.18.4*: test failure: getopt.test
Summary: sys-devel/autogen-5.18.4*: test failure: getopt.test
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-10-13 14:38 UTC by Thomas Deutschmann (RETIRED)
Modified: 2019-09-18 22:45 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,39.85 KB, text/plain)
2017-10-13 14:38 UTC, Thomas Deutschmann (RETIRED)
Details
Compiled test files / coredump (autogen-5.18.4.tar.xz,625.70 KB, application/x-xz)
2017-10-13 21:04 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-13 14:38:21 UTC
Created attachment 498510 [details]
build.log

======================================================
   GNU AutoGen 5.18.4: autoopts/test/test-suite.log
======================================================

# TOTAL: 24
# PASS:  23
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: getopt
============

creating getopt.def in /var/tmp/portage/sys-devel/autogen-5.18.4-r1/work/autogen-5.18.4/autoopts/test/getopt-testd
creating getopt1-base.c
creating getopt2-base.c
## /var/tmp/portage/sys-devel/autogen-5.18.4-r1/work/autogen-5.18.4/autoopts/test/getopt-testd
## i686-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program as)
## Please submit a full bug report,
## with preprocessed source if appropriate.
## See <https://bugs.gentoo.org/> for instructions.
Killing AutoGen 28789
FAILURE REASON:  cannot compile /var/tmp/portage/sys-devel/autogen-5.18.4-r1/work/autogen-5.18.4/autoopts/test/getopt-testd/getopt-tmpd/.ag-ZcRBSA/test_getopt.c
AutoGen aborting on signal 15 (Terminated) in state EMITTING
processing template /var/tmp/portage/sys-devel/autogen-5.18.4-r1/work/autogen-5.18.4/autoopts/tpl/usage.tlib
            on line 231
       for function EXPR (14)
./defs: line 175: 28789 Hangup                  ${AGexe} ${opts} "$@"
>getopt-failure> cd /var/tmp/portage/sys-devel/autogen-5.18.4-r1/work/autogen-5.18.4/autoopts/test/getopt-testd/..
>getopt-failure> test -d FAILURES
>getopt-failure> mkdir FAILURES
./defs: line 316: 28649 Killed                  thumper
>getopt-failure> mv getopt-testd FAILURES/getopt-testd
>getopt-failure> test -f getopt.log
>getopt-failure> mv getopt.log FAILURES/getopt-testd/amtest-getopt.log
>getopt-failure> ln -s FAILURES/getopt-testd/amtest-getopt.log getopt.log
>getopt-failure> echo FAILURE: 'AutoGen could not process getopt.def #1'
FAILURE: AutoGen could not process getopt.def #1
>getopt-failure> exit 1
/bin/sh: line 34: kill: (28789) - No such process
/bin/sh: line 36: kill: (28789) - No such process





Portage 2.3.8 (python 3.4.5-final-0, default/linux/x86/13.0, gcc-5.4.0, glibc-2.23-r4, 4.12.12-gentoo i686)
=================================================================
System uname: Linux-4.12.12-gentoo-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:     3108084 total,   1748196 free
KiB Swap:     488276 total,    488276 free
Timestamp of repository gentoo: Fri, 13 Oct 2017 13:44:18 +0000
Head commit of repository gentoo: cb92310a0ddb7e2f6ad70cabc5f7db2a3eaa9a6f

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ANT_HOME="/usr/share/ant"
ARCH="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
CXXFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/5.4.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.28.1/info:/usr/share/info:/usr/share/info/emacs-25"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MOZ_GMP_PATH="/usr/lib/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/root"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/i686-pc-linux-gnu/gcc-bin/5.4.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-0"
POSTGRES_TARGETS="postgres9_5"
PWD="/usr/portage/sys-devel/autogen"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_4"
PYTHON_TARGETS="python2_7 python3_4"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/5.4.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby22"
R_HOME="/usr/lib/R"
SBCL_HOME="/usr/lib/sbcl"
SBCL_SOURCE_ROOT="/usr/lib/sbcl/src"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
TERM="screen"
TMUX="/tmp/tmux-0/default,5478,0"
TMUX_PANE="%2"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="intel"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-13 20:51:12 UTC
I tried to reproduce it locally and failed (likeny some tools are of different version). Can you extract actual .c file being compiled to cause ICE?
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-13 21:04:51 UTC
Created attachment 498582 [details]
Compiled test files / coredump

Archive should contain the requested files.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-13 22:03:41 UTC
 # gdb i686-pc-linux-gnu-gcc core
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from i686-pc-linux-gnu-gcc...Reading symbols from /usr/lib/debug//usr/i686-pc-linux-gnu/gcc-bin/5.4.0/i686-pc-linux-gnu-gcc.debug...done.
done.

warning: core file may not match specified executable file.
[New LWP 26713]
Core was generated by `/usr/lib/gcc/i686-pc-linux-gnu/5.4.0/../../../../i686-pc-linux-gnu/bin/as -I /v'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x08069477 in pp_newline (pp=
    0x8088736 <_cpp_valid_ucn(cpp_reader*, uchar const**, uchar const*, int, normalize_state*)+14134>)
    at /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/gcc/pretty-print.c:885
885     /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/gcc/pretty-print.c: No such file or directory.
(gdb) bt
#0  0x08069477 in pp_newline (
    pp=0x8088736 <_cpp_valid_ucn(cpp_reader*, uchar const**, uchar const*, int, normalize_state*)+14134>)
    at /var/tmp/portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/gcc/pretty-print.c:885
#1  0x00000000 in ?? ()
(gdb)
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-06-22 07:51:44 UTC
Does it still happen for you? I wonder if sandbox patch https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=f3e51a930312422cc78b693a247b7c5704ac90a2 fixed it.