Date: Mon, 4 Apr 2011 09:56:47 -0700 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: bsd@abc.pl.ua Cc: apache@FreeBSD.org Subject: Re: php5-imap core dumped Message-ID: <20110404165647.GA59645@icarus.home.lan> In-Reply-To: <d82ca1e3ac7ec239c0182eb748aec50d.squirrel@www.abc.pl.ua> References: <3ba8dbabc703778d58bcae920ca36696.squirrel@www.abc.pl.ua> <4D9637C2.4080709@FreeBSD.org> <25eaebc346d5e568f288e04f98aa7871.squirrel@www.abc.pl.ua> <4D98B536.8020709@FreeBSD.org> <d82ca1e3ac7ec239c0182eb748aec50d.squirrel@www.abc.pl.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 04, 2011 at 02:49:07PM +0300, bsd@abc.pl.ua wrote: > > On 2011-04-02 06:00, bsd@abc.pl.ua wrote: > >>> On 2011-04-01 21:59, bsd@abc.pl.ua wrote: > >>>> Hello!!! > >>>> > >>>> I have > >>>> > >>>> FreeBSD 8.2-RELEASE #0 > >>>> > >>>> hostitt# pkg_info | grep imap > >>>> php5-imap-5.3.6 The imap shared extension for php > >>>> > >>>> hostitt# pkg_info | grep apache > >>>> apache-2.2.17_1 Version 2.2.x of Apache web server with prefork > >>>> MPM. > >>>> > >>>> If I include extension=imap.so,have > >>>> > >>>> phphostitt# php -m > >>>> Segmentation fault (core dumped) > >>>> > >>>> How to be here? > >>>> > >>> > >>> Please provide additional the output of the commands > >>> > >>> # cat /usr/local/etc/php/extensions.ini > >>> # httpd -V > >>> # php -v > >>> > >>> If php -v fails, then set a comment with `;' in the extensions.ini > >>> like this `;extension=imap.so' > >>> > >>> and try additional > >>> # php -m > >>> > >>> > >> cat /usr/local/etc/php/extensions.ini > >> extension=pdf.so > >> extension=pgsql.so > >> extension=sockets.so > >> extension=gmp.so > >> extension=imap.so > >> extension=posix.so > >> extension=readline.so > >> extension=pcntl.so > >> extension=sybase_ct.so > >> extension=iconv.so > >> extension=zlib.so > >> extension=mcrypt.so > >> extension=filter.so > >> extension=tidy.so > >> extension=gettext.so > >> extension=session.so > >> extension=sqlite.so > >> extension=fileinfo.so > >> extension=ctype.so > >> extension=recode.so > >> extension=mysqli.so > >> extension=mssql.so > >> extension=simplexml.so > >> extension=xml.so > >> extension=openssl.so > >> extension=bcmath.so > >> extension=dba.so > >> extension=odbc.so > >> extension=xmlrpc.so > >> extension=shmop.so > >> extension=json.so > >> extension=zip.so > >> extension=mysql.so > >> extension=pspell.so > >> extension=sysvsem.so > >> extension=ftp.so > >> extension=xmlwriter.so > >> extension=snmp.so > >> extension=wddx.so > >> extension=hash.so > >> extension=pdo.so > >> extension=pdo_sqlite.so > >> extension=sysvshm.so > >> extension=mbstring.so > >> extension=bz2.so > >> extension=sysvmsg.so > >> extension=tokenizer.so > >> extension=soap.so > >> extension=exif.so > >> extension=dom.so > >> extension=xsl.so > >> extension=gd.so > >> extension=calendar.so > >> extension=xmlreader.so > >> > >> # httpd -V > >> Server version: Apache/2.2.17 (FreeBSD) > >> Server built: Mar 29 2011 02:00:45 > >> Server's Module Magic Number: 20051115:25 > >> Server loaded: APR 1.4.2, APR-Util 1.3.10 > >> Compiled using: APR 1.4.2, APR-Util 1.3.10 > >> Architecture: 32-bit > >> Server MPM: Prefork > >> threaded: no > >> forked: yes (variable process count) > >> Server compiled with.... > >> -D APACHE_MPM_DIR="server/mpm/prefork" > >> -D APR_HAS_SENDFILE > >> -D APR_HAS_MMAP > >> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > >> -D APR_USE_FLOCK_SERIALIZE > >> -D APR_USE_PTHREAD_SERIALIZE > >> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > >> -D APR_HAS_OTHER_CHILD > >> -D AP_HAVE_RELIABLE_PIPED_LOGS > >> -D DYNAMIC_MODULE_LIMIT=128 > >> -D HTTPD_ROOT="/usr/local" > >> -D SUEXEC_BIN="/usr/local/sbin/suexec" > >> -D DEFAULT_PIDLOG="/var/run/httpd.pid" > >> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > >> -D DEFAULT_LOCKFILE="/var/run/accept.lock" > >> -D DEFAULT_ERRORLOG="logs/error_log" > >> -D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types" > >> -D SERVER_CONFIG_FILE="etc/apache22/httpd.conf" > >> > >> # php -v > >> Segmentation fault (core dumped) > >> > >> Made `;extension=imap.so' > >> > >> # php -m > >> [PHP Modules] > >> bcmath > >> bz2 > >> calendar > >> Core > >> ctype > >> date > >> dba > >> dom > >> ereg > >> exif > >> fileinfo > >> filter > >> ftp > >> gd > >> gettext > >> gmp > >> hash > >> iconv > >> json > >> libxml > >> mbstring > >> mcrypt > >> mhash > >> mssql > >> mysql > >> mysqli > >> mysqlnd > >> odbc > >> openssl > >> pcntl > >> pcre > >> pdf > >> PDO > >> pdo_sqlite > >> pgsql > >> posix > >> pspell > >> readline > >> recode > >> Reflection > >> session > >> shmop > >> SimpleXML > >> snmp > >> soap > >> sockets > >> SPL > >> SQLite > >> standard > >> sybase_ct > >> sysvmsg > >> sysvsem > >> sysvshm > >> tidy > >> tokenizer > >> wddx > >> xml > >> xmlreader > >> xmlrpc > >> xmlwriter > >> xsl > >> zip > >> zlib > >> > >> [Zend Modules] > > > > > > Hi, > > > > I forwarded the mail to apache@ so it is available for others. > > > > First are really all of those extentions needed? > > > > If all modules are build against the same php version then try > > first to reorder the php/extensions.ini. > > > > With some information I found on the web I hacked a little script > > together. > > > > http://people.freebsd.org/~ohauer/scripts/fixphpextorder.sh > > > > > > Maybe the script solves the issue already, else we need some debug > > information which can be taken from the core dump. > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/debugging.html > > > > I suspect this is not an apache issue, so if the script does not help > > send all information to freebsd-ports@ or open a PR. > > > > -- > > Regards, > > olli > > > Thanks Olli. > > Run fixphpextorder.sh > > Now all works. > > php -m > [PHP Modules] > bcmath > bz2 > calendar > Core > ctype > date > dba > dom > ereg > exif > fileinfo > filter > ftp > gd > gettext > gmp > hash > iconv > imap > json > libxml > mbstring > mcrypt > mhash > mssql > mysql > mysqli > mysqlnd > odbc > openssl > pcntl > pcre > pdf > PDO > pgsql > posix > pspell > readline > recode > Reflection > session > shmop > SimpleXML > snmp > soap > sockets > SPL > SQLite > standard > sybase_ct > sysvmsg > sysvsem > sysvshm > tidy > tokenizer > wddx > xml > xmlreader > xmlrpc > xmlwriter > xsl > zip > zlib php -m will always show the modules in sorted order. You can't rely on this command to determine what order the extensions were loaded. You have to look at extensions.ini for that. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110404165647.GA59645>