#44421 [Opn->Fbk]: Core dump using PHP 5.2.5 with suExec and mod_cgid
| From: | jani@php.net | Date: | Tue, 25 Mar 2008 13:55:29 +0000 |
| Subject: | #44421 [Opn->Fbk]: Core dump using PHP 5.2.5 with suExec and mod_cgid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123610@lists.php.net to get a copy of this message | ||
ID: 44421
Updated by: jani@php.net
Reported By: obonhomme at nerim dot net
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD 6.3
PHP Version: 5.2.5
New Comment:
You're trying to build 3 SAPIs at the same time? It's not possible, you
only get CLI binary and the Apache module with that configure line.
And I would guess your Apache is using some threaded MPM..?
Previous Comments:
------------------------------------------------------------------------
[2008-03-25 13:50:03] obonhomme at nerim dot net
The configure command used is the following :
'./configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--enable-fastcgi'
'--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php'
'--with-zend-vm=CALL' '--enable-zend-multibyte' '--prefix=/usr/local'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'
------------------------------------------------------------------------
[2008-03-25 13:45:17] jani@php.net
What was the configure line used to build PHP?
------------------------------------------------------------------------
[2008-03-13 09:58:46] obonhomme at nerim dot net
Same problem with the snapshot
------------------------------------------------------------------------
[2008-03-12 21:46:14] felipe@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-03-12 18:01:21] obonhomme at nerim dot net
Description:
------------
php-cgi crashes with SIGSEV making a core dump with php 5.2.5.
The issue occurs only executing index.php file of an IPB Forum 1.3.1
and only when script is executed through apache and mod_fcgid.
If the script is executed by the php-cgi binary from the command line,
it works perfectely
The problem seems to be in the virtual_file_ex function (see backtrace)
Reproduce code:
---------------
Url : http://91.121.116.63/~ptitoliv/index.phps
Actual result:
--------------
End of the backtrace :
#0 0x08120c89 in virtual_file_ex (state=0xbbc00a28, path=0xbbc00a60
"./lang/3/lang_error.php", verify_path=0, use_realpath=1) at
/usr/ports/lang/php5/work/php-5.2.5/TSRM/tsrm_virtual_cwd.c:656
656 int path_length = strlen(path);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44421&edit=1