Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP file download prompts... segfaulting apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Thu Dec 04, 2008 10:34 pm    Post subject: PHP file download prompts... segfaulting apache Reply with quote

About fifty percent of the time... why does apache keep choosing not to process the php?? any thoughts? What info would you like ot have from me?

Last edited by redgsturbo on Fri Dec 05, 2008 6:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Fri Dec 05, 2008 5:43 pm    Post subject: Reply with quote

Very interesting.... everytime I get a prompt to download the php file I get these entries...
Code:
[Thu Dec 04 21:23:49 2008] [notice] child pid 13173 exit signal Segmentation fault (11)
[Thu Dec 04 21:36:12 2008] [notice] child pid 1334 exit signal Segmentation fault (11)
[Thu Dec 04 21:36:17 2008] [notice] child pid 1303 exit signal Segmentation fault (11)
[Thu Dec 04 21:39:09 2008] [notice] child pid 1333 exit signal Segmentation fault (11)
[Thu Dec 04 21:43:46 2008] [notice] child pid 13722 exit signal Segmentation fault (11)
[Thu Dec 04 22:10:07 2008] [notice] child pid 13674 exit signal Segmentation fault (11)
[Thu Dec 04 22:10:26 2008] [notice] child pid 13769 exit signal Segmentation fault (11)
[Thu Dec 04 22:10:39 2008] [notice] child pid 12772 exit signal Segmentation fault (11)
[Thu Dec 04 22:11:37 2008] [notice] child pid 12832 exit signal Segmentation fault (11)
[Thu Dec 04 22:20:31 2008] [notice] child pid 12986 exit signal Segmentation fault (11)
[Thu Dec 04 22:26:01 2008] [notice] child pid 13015 exit signal Segmentation fault (11)
[Thu Dec 04 22:27:34 2008] [notice] child pid 13016 exit signal Segmentation fault (11)
[Thu Dec 04 22:29:58 2008] [notice] child pid 4943 exit signal Segmentation fault (11)
[Thu Dec 04 22:31:04 2008] [notice] child pid 5039 exit signal Segmentation fault (11)
[Fri Dec 05 17:16:51 2008] [notice] child pid 5040 exit signal Segmentation fault (11)
[Fri Dec 05 17:28:16 2008] [notice] child pid 5148 exit signal Segmentation fault (11)
zend_mm_heap corrupted
[Fri Dec 05 17:34:29 2008] [notice] child pid 21339 exit signal Segmentation fault (11)
zend_mm_heap corrupted
[Fri Dec 05 17:38:38 2008] [notice] child pid 21499 exit signal Segmentation fault (11)


So, apache is segfaulting threads...

apache-2.2.9-r1 built with
Code:
hypnos ~ # gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/specs
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2-r1/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 4.3.2-r1 p1.0, builtin ssp,fortify, pie-10.0.2'
Thread model: posix
gcc version 4.3.2 (Gentoo Hardened 4.3.2-r1 p1.0, builtin ssp,fortify, pie-10.0.2)


I imagine this has something to do with the hardened build, however I *strongly* don't want to build apache without hardening... any suggestions?
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Sat Dec 06, 2008 5:03 pm    Post subject: Reply with quote

So... here's some more info. I run a joomla site, and there are other web-apps installed on the site aswell. At this point, joomla related web requests stopped segfaulting. Another webapp is still segfaulting (just a php based timesheet)... any thoughts?
Back to top
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Sun Dec 07, 2008 1:01 pm    Post subject: Reply with quote

Just a guess - what is your apache emerge settings? Do you have some apache2_mpms set up? Does recent apache version segfault too?
_________________
Only Sith deals in absolutes.
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Mon Dec 08, 2008 12:57 am    Post subject: Reply with quote

Non_E wrote:
Just a guess - what is your apache emerge settings? Do you have some apache2_mpms set up? Does recent apache version segfault too?


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

Calculating dependencies... done!
[ebuild   R   ] www-servers/apache-2.2.10  USE="ldap (selinux) ssl threads -debug -doc -sni -static -suexec" 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 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 -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB

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

Would you like to merge these packages? [Yes/No]


Code:
hypnos ~ # emerge --info
Portage 2.1.6_rc3 (selinux/2007.0/amd64/hardened, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-hardened-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-hardened-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.4
Timestamp of tree: Sun, 07 Dec 2008 00:30:04 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--warn-once"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/xake-toolchain /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/zugaina /usr/portage/local/layman/kolab /usr/portage/local/layman/php-testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 amd64 apache apache2 bcmath berkdb bzip2 calendar cgi cli cracklib crypt ctype cups cvs dri dynamicplugin flexresp2 force-cgi-redirect fortran ftp gd gdbm gpm hardened hash iconv imap inline ipv6 isdnlog json kerberos ldap ldap-sasl logrotate maildir midi mmx mudflap mysql mysqli ncurses nls nptl nptlonly odbc openmp pam pcre perl pic pkcs11 posix pppd python readline reflection sasl selinux session simplexml smp snortsam soap spell spl sse sse2 ssl subversion suhosin tcpd threads tokenizer truetype unicode vhosts webdav xml 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 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" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64    mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis    sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

hypnos ~ #
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Mon Dec 08, 2008 7:13 pm    Post subject: Reply with quote

Just an update... tried compiling apache/php with a vanilla gcc, unloading all unneeded pecl modules, using default USE variables... still getting the segfaults. How do I go about getting more debug info from apache about what exactly is segfaulting?

2:50pm Another update. Disabling all modules but authz_host, dir, and mime (the minimum supported config) still gets segfaults. Reloading a straight html page 50 times or so won't generate a segfault (reasonably sure its php related)
Back to top
View user's profile Send private message
redgsturbo
Apprentice
Apprentice


Joined: 24 Jun 2005
Posts: 283

PostPosted: Mon Dec 08, 2008 9:02 pm    Post subject: Reply with quote

Still testing, but I believe I narrowed it down to one of the following packages. After depcleaning the box the segfaults have, for the moment (fingers crossed), stopped occurring. I'm including the below so that hopefully if someone else comes across this issue this may be of some help

Code:
hypnos modules.d # emerge knowledgetree -pv

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

Calculating dependencies... done!
[ebuild  N    ] app-text/catdoc-0.94.2  USE="-tk" 0 kB [0]
[ebuild  N    ] dev-php/PEAR-HTTP-1.4.0-r1  0 kB [0]
[ebuild  N    ] dev-php/PEAR-Config-1.10.11  USE="xml" 0 kB [0]
[ebuild  N    ] dev-php/PEAR-Cache_Lite-1.7.2  0 kB [0]
[ebuild  N    ] dev-php/smarty-2.6.20-r1  USE="-doc" 0 kB [0]
[ebuild  N    ] app-arch/ncompress-4.2.4.2  0 kB [0]
[ebuild  N    ] media-libs/tiff-3.8.2-r4  USE="zlib -jbig -jpeg -nocxx" 0 kB [0]
[ebuild  N    ] media-fonts/gnu-gs-fonts-std-8.11  0 kB [0]
[ebuild  N    ] app-text/libpaper-1.1.23  0 kB [0]
[ebuild  NS   ] sys-devel/automake-1.9.6-r2 [1.7.9-r1, 1.10.1-r1] 0 kB [0]
[ebuild  N    ] dev-php/PEAR-Console_Getargs-1.3.4  0 kB [0]
[ebuild  N    ] dev-php/PEAR-Console_Table-1.0.7  0 kB [0]
[ebuild  N    ] dev-php/PEAR-Testing_Selenium-0.4.2  0 kB [0]
[ebuild  N    ] dev-php/PEAR-Image_GraphViz-1.3.0_rc3  0 kB [0]
[ebuild  N    ] dev-php/xdebug-client-2.0.2  USE="-libedit" 0 kB [0]
[ebuild  N    ] dev-php5/xdebug-2.0.2  0 kB [0]
[ebuild  N    ] dev-php5/phpunit-3.2.8  USE="-minimal" 0 kB [0]
[ebuild  N    ] dev-php/PEAR-PHP_CompatInfo-1.6.1  USE="-minimal" 0 kB [0]
[ebuild  N    ] media-libs/fontconfig-2.6.0-r2  USE="-doc" 0 kB [0]
[ebuild  N    ] app-admin/eselect-fontconfig-1.0  0 kB [0]
[ebuild  N    ] app-text/poppler-0.8.7  USE="zlib -cjk -jpeg" 0 kB [0]
[ebuild  N    ] net-print/cups-1.3.9-r1  USE="kerberos ldap pam perl php python ssl -X -acl -avahi -dbus -gnutls -java -jpeg -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 3,901 kB [0]
[ebuild  N    ] app-text/ghostscript-gpl-8.62  USE="cups -X -bindist -cjk -djvu -gtk -jpeg2k" 0 kB [0]
[ebuild  N    ] virtual/ghostscript-0  0 kB [0]
[ebuild  N    ] app-text/pstotext-1.9-r2  0 kB [0]
[ebuild  N    ] www-apps/knowledgetree-3.5.1  USE="vhosts -catdoc -openoffice" 0 kB [1]

Total: 26 packages (25 new, 1 in new slot), Size of downloads: 3,901 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/webapps-experimental
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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