Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686506 - dev-lang/php-7.2.16 - Generating phar.php: /bin/sh: line 1: 13911 Segmentation fault ` if test -x "/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/sapi/cli/php"; then ...
Summary: dev-lang/php-7.2.16 - Generating phar.php: /bin/sh: line 1: 13911 Segmentatio...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=51216
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-21 20:24 UTC by Serge
Modified: 2023-07-28 12:05 UTC (History)
3 users (show)

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


Attachments
build.log (dev-lang%3Aphp-7.2.16%3A20190521-200300.log,937.53 KB, text/plain)
2019-05-21 20:24 UTC, Serge
Details
environment (environment,105.94 KB, text/plain)
2019-05-21 20:25 UTC, Serge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge 2019-05-21 20:24:28 UTC
Created attachment 577526 [details]
build.log

compiling php return:
Generating phar.php
/bin/sh: line 1: 13911 Segmentation fault      ` if test -x "/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/sapi/cli/php"; then /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/sapi/cli/php -n"; if test "x" != "x"; then /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/build/shtool echo -n -- " -d extension_dir=/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/modules"; for i in bz2 zlib phar; do if test -f "/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/modules/$i.la"; then . /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/modules/$i.la; /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [Makefile:358: ext/phar/phar.php] Error 139
 * ERROR: dev-lang/php-7.2.16::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/php-7.2.16::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.2.16::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-lang:php-7.2.16:20190521-200300.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/php-7.2.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.2.16/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/php-7.2.16/work/sapis-build/cli'
 * S: '/var/tmp/portage/dev-lang/php-7.2.16/work/php-7.2.16'



Portage 2.3.62 (python 3.6.5-final-0, default/linux/x86/17.0, gcc-8.3.0, glibc-2.29-r2, 4.19.44-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.44-gentoo-i686-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:     3104760 total,   1478248 free
KiB Swap:     257004 total,    257004 free
Timestamp of repository gentoo: Tue, 21 May 2019 17:45:01 +0000
Head commit of repository gentoo: 10579a633a39e32b4b40c15baa0269685e9ba091
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/var/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="apache2 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ldap libtirpc logrotate mysql ncurses nls nptl nptlonly oci8-instant-client openmp pam pcre perl python readline seccomp sse2 ssl tcpd unicode vhosts x86 xattr zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias access_compat" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/php-7.2.16::gentoo was built with the following:
USE="apache2 bcmath berkdb bzip2 cli ctype curl fileinfo filter gd gdbm hash iconv imap json ldap mysql nls oci8-instant-client opcache pcntl pdo phar posix readline session simplexml snmp ssl tokenizer unicode xml zip zlib -acl -argon2 -calendar -cdb -cgi -cjk -coverage -debug -embed -enchant -exif (-firebird) -flatfile -fpm -ftp -gmp -inifile -intl -iodbc -ipv6 -kerberos -ldap-sasl -libedit -libressl -lmdb -mhash -mssql -mysqli -odbc -phpdbg -postgres -qdbm -recode (-selinux) -session-mm -sharedmem -soap -sockets -sodium -spell -sqlite -systemd -sysvipc -test -threads -tidy -tokyocabinet -truetype -wddx -webp -xmlreader -xmlrpc -xmlwriter -xpm -xslt -zip-encryption"

gentoo-vm-cli ~ #
Comment 1 Serge 2019-05-21 20:25:41 UTC
Created attachment 577528 [details]
environment
Comment 2 Michael Orlitzky gentoo-dev 2019-05-22 22:54:51 UTC
This is a real bug (I've experienced it myself) but I don't know how to reproduce it and the upstream bug is closed as a "Gentoo problem."
Comment 3 Serge 2019-06-04 18:56:27 UTC
This evening the  emerge -uDavt want to update to dev-lang/php-7.3.6

This is failing the same way:

Generating phar.php
/bin/sh: line 1: 14014 Segmentation fault      ` if test -x "/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/sapi/cli/php"; then /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/sapi/cli/php -n"; if test "x" != "x"; then /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/build/shtool echo -n -- " -d extension_dir=/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/modules"; for i in bz2 zlib phar; do if test -f "/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/modules/$i.la"; then . /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/modules/$i.la; /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [Makefile:358: ext/phar/phar.php] Error 139
 * ERROR: dev-lang/php-7.3.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/php-7.3.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.3.6::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-lang:php-7.3.6:20190604-182806.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/php-7.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.3.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/php-7.3.6/work/sapis-build/cli'
 * S: '/var/tmp/portage/dev-lang/php-7.3.6/work/php-7.3.6'

>>> Failed to emerge dev-lang/php-7.3.6, Log file


Very strange!
Comment 4 Alessandro Barbieri 2022-03-23 13:31:28 UTC
I had the same error but it went away after emerge @preserved-rebuild
In particular I've rebuilt openldap
Comment 5 Michael Orlitzky gentoo-dev 2023-07-28 12:05:31 UTC
Despite believing this is a real bug, I think we're going to need a report against the php-8.1 or php-8.2 series to have any hope of resolving it.