Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170023 - dev-php5/eaccelerator-0.9.5 - apache segfault w/ php-5.2.1-rc3 and mediawiki-1.9.3
Summary: dev-php5/eaccelerator-0.9.5 - apache segfault w/ php-5.2.1-rc3 and mediawiki-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 21:33 UTC by Peter Kerwien
Modified: 2007-05-12 14:37 UTC (History)
4 users (show)

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


Attachments
Proposed patch to fix error (fix-protected-5.2.patch,878 bytes, patch)
2007-03-26 21:03 UTC, Birgir Haraldsson
Details | Diff
Proposed ebuild using patch (eaccelerator-0.9.5-r1.ebuild,3.35 KB, text/plain)
2007-03-26 21:04 UTC, Birgir Haraldsson
Details
dev-php5/eaccelerator-0.9.5.1.ebuild (eaccelerator-0.9.5.1.ebuild,3.26 KB, text/plain)
2007-05-10 09:45 UTC, Ben
Details
diff between 0.9.5 and 0.9.5.1 (diff-eaccelerator,498 bytes, patch)
2007-05-10 09:46 UTC, Ben
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kerwien 2007-03-08 21:33:39 UTC
After an upgrade from php-5.1.6-r11 to php-5.2.1-r3 I get the following error message when trying to access my wiki:

Fatal error: Cannot access protected property DatabaseMysql::$mOut in
/var/www/localhost/htdocs/mediawiki/includes/Database.php on line 429

The only thing I found in /var/log/apache2/error_log was:

[Thu Mar 08 22:01:40 2007] [notice] child pid 24443 exit signal Segmentation
fault (11)

I'm using mediawiki-1.9.3 and eaccelerator-0.9.5. PHP is built with the following USE flags:

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

USE flags for mediawiki:

[ebuild   R   ] www-apps/mediawiki-1.8.4  USE="imagemagick math mysql -postgres -restrict -vhosts" 0 kB 

When uninstalling eaccelerator the problem disappears.



Reproducible: Always




server2 php # emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20.1
x86_64)
=================================================================
System uname: 2.6.20.1 x86_64 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 08 Mar 2007 03:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://files.gentoo.org http://files.gentoo.org
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi amd64 apache2 berkdb bitmap-fonts bzip2 cdr cli cracklib crypt
ctype cups dri encode fam ffmpeg fortran gd gdbm gpm gtk iconv imagemagick imap
isdnlog java jpeg ldap libg++ maildir matroska mhash midi mozilla mp3 mysql
ncurses nls nptl nptlonly nsplugin opengl pam pcre perl php png posix ppds pppd
python readline reflection samba session spl sqlite ssl tcpd threads tiff
truetype truetype-fonts type1-fonts unicode usb x264 xml xorg xv xvid 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 mulaw multi null plug rate route share shm softvol"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jorge Nerin 2007-03-14 14:23:58 UTC
I have the same problem, but I'm using mediawiki-1.8.2 installed with the tar.gz downloaded of the web, my USE flags:

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

[ebuild   R   ] net-www/apache-2.0.58-r2  USE="apache2 ssl -debug -doc -ldap -mpm-itk -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker (-selinux) -static-modules -threads" 0 kB

[ebuild   R   ] dev-php5/eaccelerator-0.9.5  USE="contentcache session sharedmem -debug -disassembler -inode" 0 kB

emerge --info

Portage 2.1.2.2 (hardened/amd64, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened x86_64)
=================================================================
System uname: 2.6.18-hardened x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 13 Mar 2007 06:20:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /et
c/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo/ http://gentoo.m
odulix.net/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
"
LINGUAS="es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --de
lete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/dig
est-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 contentcache crypt curl curlwrappers ftp gd gnutls hardened hash iconv jpeg jpg ju
stify logrotate midi mysql mysqli nls openssl pam pcre pic png readline session sharedext sharedmem simplexml soap
 sockets sqlite sse sse2 ssl sysvipc tcpd tidy truetype unicode xml xmlreader xmlrpc xmlwriter xorg xsl zip zlib"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat lin
ear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL=
"linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND=
"GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAG
S, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Birgir Haraldsson 2007-03-26 21:03:44 UTC
Created attachment 114544 [details, diff]
Proposed patch to fix error

a patch from http://www.eaccelerator.net/changeset/284
Comment 3 Birgir Haraldsson 2007-03-26 21:04:56 UTC
Created attachment 114545 [details]
Proposed ebuild using patch
Comment 4 Birgir Haraldsson 2007-03-26 21:07:41 UTC
I had problems with this as well. It has to do with the protected keyword. See https://www.eaccelerator.net/ticket/204 for more information.
Comment 5 Peter Kerwien 2007-04-01 16:24:16 UTC
Tested the patch. Solves the problem for me too.
Comment 6 Ben XO 2007-04-29 18:17:36 UTC
I too experienced this problem, and found the patch as the official patch on the eaccelerator home page.

http://www.eaccelerator.net/changeset/284?format=diff

https://www.eaccelerator.net/ticket/231

http://eaccelerator.net/ ("Release-0.9.5 - 2006/10/11; requires patch from https://www.eaccelerator.net/ticket/231 for use with PHP 5.2.x")

Please can someone get this into portage =)
Comment 7 Conrad Kostecki gentoo-dev 2007-05-05 11:58:25 UTC
It should be as fast as possibile into portage!

my se faults are now gone with this patch.
Comment 8 Ben 2007-05-10 09:45:42 UTC
Created attachment 118741 [details]
dev-php5/eaccelerator-0.9.5.1.ebuild

eaccelerator-0.9.5.1.ebuild that fixes the described bug. Only change between this version and the old one is the change of the source location
Comment 9 Ben 2007-05-10 09:46:30 UTC
Created attachment 118742 [details, diff]
diff between 0.9.5 and 0.9.5.1

Diff betweend old and new ebuild
Comment 10 Luca Longinotti (RETIRED) gentoo-dev 2007-05-12 14:37:20 UTC
dev-php5/eaccelerator-0.9.5.1 is in the tree and should fix this.
Best regards, CHTEKK.