From owner-freebsd-apache@FreeBSD.ORG Mon Apr 4 11:49:08 2011 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9403106566B for ; Mon, 4 Apr 2011 11:49:08 +0000 (UTC) (envelope-from bsd@abc.pl.ua) Received: from abc.pl.ua (maxindra.cc.colocall.com [62.149.14.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6FCA38FC1D for ; Mon, 4 Apr 2011 11:49:08 +0000 (UTC) Received: from www.abc.pl.ua (localhost [127.0.0.1]) by abc.pl.ua (Postfix) with ESMTP id E60428720B2 for ; Mon, 4 Apr 2011 14:49:06 +0300 (EEST) Received: from 109.167.43.5 (SquirrelMail authenticated user bsd@abc.pl.ua) by www.abc.pl.ua with HTTP; Mon, 4 Apr 2011 14:49:07 +0300 Message-ID: In-Reply-To: <4D98B536.8020709@FreeBSD.org> References: <3ba8dbabc703778d58bcae920ca36696.squirrel@www.abc.pl.ua> <4D9637C2.4080709@FreeBSD.org> <25eaebc346d5e568f288e04f98aa7871.squirrel@www.abc.pl.ua> <4D98B536.8020709@FreeBSD.org> Date: Mon, 4 Apr 2011 14:49:07 +0300 From: bsd@abc.pl.ua To: apache@FreeBSD.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: php5-imap core dumped X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2011 11:49:08 -0000 > 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 [Zend Modules]