#39902 [Opn->Fbk]: php segfaults with fastcgi

From: Date: Fri, 22 Dec 2006 15:37:57 +0000
Subject: #39902 [Opn->Fbk]: php segfaults with fastcgi
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106792@lists.php.net to get a copy of this message
ID: 39902 Updated by: tony2001@php.net Reported By: felici at iddqd dot hu -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: FreeBSD 6.2-PRERELEASE PHP Version: 5.2.0 New Comment: Please check the mail I sent you. Previous Comments: ------------------------------------------------------------------------ [2006-12-20 22:04:06] felici at iddqd dot hu I sent you the login credentials. ------------------------------------------------------------------------ [2006-12-20 18:42:54] tony2001@php.net Could you please provide a shell account on this machine? ------------------------------------------------------------------------ [2006-12-20 18:30:24] felici at iddqd dot hu Of course I rebuilt all of the extensions using the CVS snapshot. If I'm trying to use the CLI version I get the same: [root@starbase /var/virtual/users/feldeci/www/mail.dns123.eu]# php phpi___.php [...] If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. Segmentation fault: 11 (core dumped) PHP finishes with the script, then crashes. The backtrace is the same in this case, too. There is only a simple phpinfo() in the file. <?php phpinfo(); ?> ------------------------------------------------------------------------ [2006-12-20 18:02:53] tony2001@php.net Did you rebuild extensions using the snapshot or do you still use the ones from ports? Does it work with PHP CLI? ------------------------------------------------------------------------ [2006-12-20 16:42:03] felici at iddqd dot hu Hello, I'm using FreeBSD latest stable (6.2-PRERELEASE) i386, Apache 2.2.3 with suexec and mod_fastcgi-2.4.2 and php as cgi compiled with fastcgi support (see phpinfo for more details about php) httpd.conf: <IfModule fastcgi_module> AddHandler fastcgi-script .fcgi FastCgiWrapper /usr/local/sbin/suexec FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate -idle-timeout 240 -pass-header HTTP_AUTHORIZATION FastCgiIpcDir /tmp </IfModule> [...] SuexecUserGroup feldeci feldeci ScriptAlias /cgi-bin/ /var/virtual/users/feldeci/www/cgi-bin/ <Directory "/var/virtual/users/feldeci/www/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Location /cgi-bin/> Options ExecCGI SetHandler fastcgi-script </Location> Action application/x-httpd-php /cgi-bin/php cgi-bin/php (owned by user feldeci) #!/bin/sh PHPRC="/var/virtual/users/feldeci/conf" export PHPRC PHP_FCGI_CHILDREN=4 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_MAX_REQUESTS exec /usr/local/bin/php-cgi php.ini: [PHP] open_basedir = "/var/virtual/users/feldeci" upload_tmp_dir = "/var/virtual/users/feldeci/temp" session.save_path = "/var/virtual/users/feldeci/temp" the rest is in /usr/local/etc/php/master.ini and extensions.ini set up this environment, run php applications (like phpMyAdmin, RoundCube, whatever) and wait for the segfaults. let me know if you need the core file or the php.inis or I can help you somehow ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39902 -- Edit this bug report at http://bugs.php.net/?id=39902&edit=1

« previous php.bugs (#106792) next »