Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP seg faults while building with phar use flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Timmer
Guru
Guru


Joined: 24 Aug 2004
Posts: 369
Location: Duluth, MN, USA

PostPosted: Thu Dec 20, 2012 5:16 pm    Post subject: PHP seg faults while building with phar use flag Reply with quote

If I include the phar use flag, PHP won't build. If I disable the flag, then it builds fine. It's been doing this for months now, and I haven't managed to turn anything up on Google, other than the suggestion to run revdep-rebuild, which I've done several times to no avail.

Error:
Code:
Generating phar.php
/bin/sh: line 1: 29143 Segmentation fault      ` if test -x "/var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/sapi/cli/php"; then /var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/sapi/cli/php -n"; if test "x" != "x"; then /var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/build/shtool echo -n -- " -d extension_dir=/var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/modules"; for i in bz2 zlib phar; do if test -f "/var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/modules/$i.la"; then . /var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/modules/$i.la; /var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/build/shtool echo -n -- "/var/tmp/portage/dev-lang/php-5.4.9/work/sapis-build/cli/sapi/cli/php"; fi;` -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-5.4.9/work/sapis-build/cli/ext/phar/build_precommand.php > ext/phar/phar.php
make: *** [ext/phar/phar.php] Error 139
 * ERROR: dev-lang/php-5.4.9 failed (compile phase):
 *   emake failed


emerge --info:
Code:
Portage 2.2.0_alpha149 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.1-gentoo x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-AMD_Phenom-tm-_II_N930_Quad-Core_Processor-with-gentoo-2.2
Timestamp of tree: Thu, 20 Dec 2012 16:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo sabayon 4nykey kde pykde4_fix x11 systemd
Installed sets: @kde-tim
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 googleearth google-chrome google-talkplugin Oracle-BCLA-JavaSE PUEL skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-a --keep-going --with-bdeps=y --quiet-build=y"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirrors.cs.wmich.edu/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/sabayon /var/lib/layman/4nykey /var/lib/layman/kde /usr/local/portage/kde /var/lib/layman/x11 /var/lib/layman/systemd"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi ads alsa amd64 apache2 bash-completion bluray branding bzip2 cairo cdda cdr cli clucene cmake consolekit cracklib crypt cups cxx dbus declarative directfb dri dts dvd dvdr emboss encode exif fam fbcon fbcondecor ffmpeg firefox flac fontforge fortran freetds gdbm gif git gmp gnutls gpm grub2 gstreamer iconv icu imagemagick ipv6 java jpeg jpeg2k kde kdepim kipi laptop lcms libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg mssql mudflap multilib mysql ncurses nls nptl nsplugin ntp odbc ogg opengl openmp pam pango pcre pdf phonon php plasma png policykit ppds pppd pulseaudio python qt3support qt4 readline reiserfs reports sdl semantic-desktop server session sftp smp spell sse sse2 ssl startup-notification subversion svg systemd tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 valgrind vorbis wxwidgets x264 xcb xcomposite xfs xinerama xml xscreensaver xv xvid zlib" ALSA_CARDS="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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Fri Dec 21, 2012 11:17 am    Post subject: Reply with quote

Is this also true for emerging PHP 5.3? Could you try the following:

Code:
emerge -aq1 php:5.3

_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Timmer
Guru
Guru


Joined: 24 Aug 2004
Posts: 369
Location: Duluth, MN, USA

PostPosted: Fri Dec 21, 2012 6:12 pm    Post subject: Reply with quote

Yes, php 5.3 is also broken. It first appeared as a problem with php 5.4.8, and continued with 5.4.9. So I'm guessing that PHP is a symptom, but not actually related to the cause.
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Sun Dec 23, 2012 11:07 am    Post subject: Reply with quote

In the snippet you posted above, the build process apparently tries to create an awfully long shell script. It would be interesting what actually happens in line 29143.

Is that file to find in the temporary build directory? If so, could you pastebin it? If not, would you be able to re-create this file (to some extent) by executing the commands manually?
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum