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

From: Date: Wed, 20 Dec 2006 16:42:03 +0000
Subject: #39902 [Fbk->Opn]: php segfaults with fastcgi
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106663@lists.php.net to get a copy of this message
ID: 39902 User updated by: felici at iddqd dot hu Reported By: felici at iddqd dot hu -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 6.2-PRERELEASE PHP Version: 5.2.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2006-12-20 15:53:49] tony2001@php.net Please provide more information on how to reproduce it. ------------------------------------------------------------------------ [2006-12-20 15:42:14] felici at iddqd dot hu Hello, I tried the cvs snapshot, still the same, even the backtrace. PHPInfo: https://mail.dns123.eu/phpi___.php ------------------------------------------------------------------------ [2006-12-20 13:43:30] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-12-20 13:34:47] felici at iddqd dot hu Description: ------------ I'm using Apache 2.2.3 with fastcgi and php. With php 5.2.0 php processes exit on signal 11. 5.1.6 was OK. Reproduce code: --------------- Doesn't matter what you run, it will crash. Expected result: ---------------- --- Actual result: -------------- Dec 20 14:32:08 starbase kernel: pid 9951 (php-cgi), uid 2001: exited on signal 11 (core dumped) Dec 20 14:32:08 starbase kernel: pid 9952 (php-cgi), uid 2001: exited on signal 11 (core dumped) Dec 20 14:32:08 starbase kernel: pid 9954 (php-cgi), uid 2001: exited on signal 11 (core dumped) Dec 20 14:32:08 starbase kernel: pid 9953 (php-cgi), uid 2001: exited on signal 11 (core dumped) #0 0x00000000 in ?? () #1 0x28e87ea4 in __do_global_dtors_aux () from /usr/local/lib/php/20060613/session.so #2 0x28e8efd4 in _fini () from /usr/local/lib/php/20060613/session.so #3 0x2827c160 in ?? () from /libexec/ld-elf.so.1 #4 0x2827c018 in ?? () from /libexec/ld-elf.so.1 #5 0xbfbfcae8 in ?? () #6 0x2825c929 in elf_hash () from /libexec/ld-elf.so.1 #7 0x2825f3ae in dlclose () from /libexec/ld-elf.so.1 #8 0x0815db72 in zend_hash_apply_deleter () #9 0x0815dc01 in zend_hash_graceful_reverse_destroy () #10 0x081536ff in zend_shutdown () #11 0x0811620f in php_module_shutdown () #12 0x081d7bf2 in main () ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39902&edit=1

« previous php.bugs (#106663) next »