Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333509 - dev-lang/php-5.2.14 segfault
Summary: dev-lang/php-5.2.14 segfault
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 20:56 UTC by Vicente Olivert Riera (RETIRED)
Modified: 2010-12-27 21:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vicente Olivert Riera (RETIRED) gentoo-dev 2010-08-19 20:56:35 UTC
I have installed the latest stable version (5.2.14) of php on two computers, and lighttpd-1.4.26-r1 (latest stable version) on both computers.
I get the same error in both computers:

kernel: [188550.181816] php-cgi[31999]: segfault at 55 ip 0000000000710b38 sp 00007fffad904da0 error 4 in php-cgi[400000+5d0000]

The two computers have a different kernel version. One has gentoo-sources-2.6.34-r1 and the other one has 2.6.35-r1.

I have masked dev-lang/php-5.2.14 using /etc/portage/package.mask , and I have downgraded to 5.2.13, and it works on both computers.

Reproducible: Always

Steps to Reproduce:
1. install www-servers/lighttpd-1.4.26-r1 with "fastcgi" and "php" use flags. 
2. install dev-lang/php-5.2.14 with "cgi" use flag.
3. try to view http://localhost
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-08-20 09:48:13 UTC
I use both stable lighttpd+php on my vservers. No problems at all

emerge --info please and emerge -pv for both php and lighttpd
Comment 2 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-08-20 10:03:57 UTC
COMPUTER ONE
------------

emerge --info ( http://pastebin.ca/1921198 )

atom ~ # emerge -pv lighttpd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-servers/lighttpd-1.4.26-r1  USE="bzip2 fastcgi gdbm pcre php ssl -doc -fam -ipv6 -ldap -lua -memcache -minimal -mysql -rrdtool -test -webdav -xattr" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

atom ~ # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-lang/php-5.2.14 [5.2.13] USE="berkdb bzip2 cgi cli crypt ctype curl filter* gdbm hash* iconv json* mysql mysqli ncurses nls pcre pdo posix* readline reflection session simplexml spl ssl threads tokenizer unicode xml xmlreader xmlrpc xmlwriter xsl zlib (-adabas) -apache2 -bcmath (-birdstep) -calendar -cdb -cjk -concurrentmodphp -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc -embed% (-empress) (-empress-bcs) (-esoob) -exif (-fdftk) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd -gd-external -gmp -imap -inifile -interbase -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pic -postgres -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap -sockets (-solid) -spell -sqlite -suhosin (-sybase-ct) -sysvipc -tidy -truetype -wddx -xpm -yaz -zip (-fastbuild%) (-java-external%) (-sybase%)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-08-20 10:05:57 UTC
Please attach emerge --info to the bug cause the pastebin will invalidate it sooner or later 
Comment 4 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-08-20 10:08:56 UTC
COMPUTER 2
----------

hp ~ # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T3200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 14 Aug 2010 03:00:22 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es"
MAKEOPTS="-j3"                                                                                                                                                   
PKGDIR="/usr/portage/packages"                                                                                                                                   
PORTAGE_CONFIGROOT="/"                                                                                                                                           
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/local/portage"
SYNC="rsync://atom/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 aspell berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cuda cxx dbus dri dts dvd dvdr fam flac fortran gdbm gif gnutls gpm hal hunspell iconv jpeg jpeg2k kde laptop mad mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd pth python qt3support qt4 quicktime readline reflection sasl session spell spl sse sse2 ssl ssse3 svg sysfs tcpd threads tiff truetype unicode usb v4l v4l2 vdpau vorbis wicd wifi x264 xcomposite xinerama xml xorg xvid zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


hp ~ # emerge -pv lighttpd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-servers/lighttpd-1.4.26-r1  USE="bzip2 fam fastcgi gdbm pcre php ssl -doc -ipv6 -ldap -lua -memcache -minimal -mysql -rrdtool -test -webdav -xattr" 0 kB                                                                                                                                                      

Total: 1 package (1 reinstall), Size of downloads: 0 kB

hp ~ # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-lang/php-5.2.14 [5.2.13] USE="berkdb bzip2 cgi cli crypt ctype curl filter* gd gdbm hash* iconv json mysql mysqli ncurses nls pcre pdo posix* postgres readline reflection session simplexml spell spl ssl threads tokenizer truetype unicode xml xmlreader xmlrpc xmlwriter xsl zip zlib (-adabas) -apache2 -bcmath (-birdstep) -calendar -cdb -cjk -concurrentmodphp -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path -doc -embed% (-empress) (-empress-bcs) (-esoob) -exif (-fdftk) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -ftp -gd-external -gmp -imap -inifile -interbase -iodbc -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pic -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap -sockets (-solid) -sqlite -suhosin (-sybase-ct) -sysvipc -tidy -wddx -xpm -yaz (-fastbuild%) (-java-external%) (-sybase%)" 8,852 kB                                                 

Total: 1 package (1 upgrade), Size of downloads: 8,852 kB
Comment 5 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-08-20 10:10:20 UTC
(In reply to comment #2)
> COMPUTER ONE
> ------------
> 
> emerge --info

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 20 Aug 2010 03:00:02 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4                                                                                                                                          
sys-apps/baselayout: 1.12.13                                                                                                                                                     
sys-apps/sandbox:    1.6-r2                                                                                                                                                      
sys-devel/autoconf:  2.65                                                                                                                                                        
sys-devel/automake:  1.11.1                                                                                                                                                      
sys-devel/binutils:  2.20.1-r1                                                                                                                                                   
sys-devel/gcc:       4.4.3-r2                                                                                                                                                    
sys-devel/gcc-config: 1.4.1                                                                                                                                                      
sys-devel/libtool:   2.2.6b                                                                                                                                                      
sys-devel/make:      3.81-r2                                                                                                                                                     
virtual/os-headers:  2.6.30-r1                                                                                                                                                   
ACCEPT_KEYWORDS="amd64"                                                                                                                                                          
ACCEPT_LICENSE="* -@EULA"                                                                                                                                                        
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LC_ALL="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cgi cli cracklib crypt cups cxx dri fastcgi fortran gdbm gpm iconv mmx modules mudflap multilib mysqli ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection sasl session spl sse sse2 ssl ssse3 sysfs tcpd threads unicode xorg 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" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2010-08-20 10:15:06 UTC
Assigning to php herd
Comment 7 Jan Vesely 2010-08-25 19:28:52 UTC
i ran into this too, on lighttpd-1.4.26-r1 and apache2(2.2.15)/mod_fcgid(2.3.5).
recompiling php with -xmlreader and -xmlwriter helped.
don't no which of these two (or both) as both installations are on production servers (both are amd64)
Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-09-14 09:14:54 UTC
I can reproduce this problem as well. USE="-xmlreader -xmlwriter" avoids the segfault.

-------


# emerge --info
Portage 2.2_rc67 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.11.2-r0, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Dual-Core_AMD_Opteron-tm-_Processor_2216-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 12 Sep 2010 21:30:22 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.5-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/services/gentoo/distfiles"
FEATURES="assume-digests ccache collision-protect distcc distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/services/gentoo/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups curl cxx dri fortran gdbm gpm hardened iconv imagemagick ipv6 justify ldap mmx modules mudflap mysql ncurses nls nptl nptlonly offensive openmp pam pcre perl pic pppd python readline reflection session slang spell sqlite sqlite3 sse sse2 ssl sysfs tcpd threads unicode urandom vhosts vim-syntax xattr xorg 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" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgid" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2010-10-24 21:10:44 UTC
If you're stuck with 5.2.14 this might not be relevant, but is this segfault also occuring with php-5.3.3? FPM might also replace fastcgi there.

I'll try to get me a working lighttpd/php setup in the meantime.
Comment 10 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-10-24 21:15:19 UTC
(In reply to comment #9)
> If you're stuck with 5.2.14 this might not be relevant, but is this segfault
> also occuring with php-5.3.3? FPM might also replace fastcgi there.
> 
> I'll try to get me a working lighttpd/php setup in the meantime.
> 

No problem with dev-lang/php-5.3.3-r1, I'm using it :-)
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-27 21:49:22 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > If you're stuck with 5.2.14 this might not be relevant, but is this segfault
> > also occuring with php-5.3.3? FPM might also replace fastcgi there.
> > 
> > I'll try to get me a working lighttpd/php setup in the meantime.
> > 
> 
> No problem with dev-lang/php-5.3.3-r1, I'm using it :-)
> 

Ok, hard to reproduce for us and 5.2.14 won't see anymore updates anyway being that it is vulnerable to security issues. For that, I will close this as worksforme. If you'd like to reopen this bug, please try with slot 5.2, thanks.