[PHP-BUG] Req #51973 [NEW]: a way to restart single pools, enable/disable modules per pool
From: Operating system: PHP version: 5.3SVN-2010-06-02 (SVN) Package: FPM related Bug Type: Feature/Change Request Bug description:a way to restart single pools, enable/disable modules per pool Description: Hi, I would like to be able do enable/disable modules per pool and would also like to be able to restart single pool when I change its config. Thanks -- Edit bug report at http://bugs.php.net/bug.php?id=51973&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51973&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51973&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=51973&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=51973&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51973&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51973&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51973&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51973&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51973&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51973&r=support Expected behavior: http://bugs.php.net/fix.php?id=51973&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51973&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51973&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51973&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51973&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=51973&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51973&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51973&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51973&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51973&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51973&r=mysqlcfg
[PHP-BUG] Bug #52032 [NEW]: segmentation fault
From: Operating system: linux x86_64 PHP version: 5.3SVN-2010-06-09 (SVN) Package: FPM related Bug Type: Bug Bug description:segmentation fault Description: Core was generated by `/usr/local/php-5.3-r299968/sbin/php-fpm'. Program terminated with signal 11, Segmentation fault. [New process 11882] #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 #1 0x55957821 in zend_hash_destroy (ht=0x5500) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517 #2 0x55a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675 #3 0x55a33de4 in fcgi_finish_request (req=0x7fff64fee540, force_close=0) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000 #4 0x55a395b5 in sapi_cgi_deactivate () at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881 #5 0x558d62f6 in sapi_deactivate () at /home/l3et3r/php-5.3-r299968/main/SAPI.c:444 #6 0x558ca34d in php_request_shutdown (dummy=0x0) at /home/l3et3r/php-5.3-r299968/main/main.c:1642 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 (gdb) frame 7 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 1881php_request_shutdown((void *) 0); (gdb) frame 6 #6 0x558ca34d in php_request_shutdown (dummy=0x0) at /home/l3et3r/php-5.3-r299968/main/main.c:1642 1642sapi_deactivate(TSRMLS_C); (gdb) frame 5 #5 0x558d62f6 in sapi_deactivate () at /home/l3et3r/php-5.3-r299968/main/SAPI.c:444 444 sapi_module.deactivate(TSRMLS_C); (gdb) frame 4 #4 0x55a395b5 in sapi_cgi_deactivate () at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881 881 if ( (gdb) frame 3 #3 0x55a33de4 in fcgi_finish_request (req=0x7fff64fee540, force_close=0) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000 1000fcgi_close(req, force_close, 1); (gdb) frame 2 #2 0x55a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675 675 zend_hash_destroy(req->env); (gdb) frame 1 #1 0x55957821 in zend_hash_destroy (ht=0x5500) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517 517 IS_CONSISTENT(ht); (gdb) frame 0 #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { -- Edit bug report at http://bugs.php.net/bug.php?id=52032&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52032&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52032&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52032&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52032&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52032&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52032&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52032&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52032&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52032&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52032&r=support Expected behavior: http://bugs.php.net/fix.php?id=52032&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52032&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52032&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52032&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52032&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=52032&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52032&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52032&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52032&r=float No
Bug #52032 [Com]: segmentation fault
Edit report at http://bugs.php.net/bug.php?id=52032&edit=1 ID: 52032 Comment by: slogster at gmail dot com Reported by: slogster at gmail dot com Summary: segmentation fault Status: Open Type: Bug Package: FPM related Operating System: linux x86_64 PHP Version: 5.3SVN-2010-06-09 (SVN) New Comment: I am running php-fpm: URL: http://svn.php.net/repository/php/php-src/branches/PHP_5_3 Revision: 299968 Previous Comments: [2010-06-09 15:35:00] slogster at gmail dot com Description: Core was generated by `/usr/local/php-5.3-r299968/sbin/php-fpm'. Program terminated with signal 11, Segmentation fault. [New process 11882] #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 #1 0x55957821 in zend_hash_destroy (ht=0x5500) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517 #2 0x55a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675 #3 0x55a33de4 in fcgi_finish_request (req=0x7fff64fee540, force_close=0) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000 #4 0x55a395b5 in sapi_cgi_deactivate () at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881 #5 0x558d62f6 in sapi_deactivate () at /home/l3et3r/php-5.3-r299968/main/SAPI.c:444 #6 0x558ca34d in php_request_shutdown (dummy=0x0) at /home/l3et3r/php-5.3-r299968/main/main.c:1642 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 (gdb) frame 7 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 1881php_request_shutdown((void *) 0); (gdb) frame 6 #6 0x558ca34d in php_request_shutdown (dummy=0x0) at /home/l3et3r/php-5.3-r299968/main/main.c:1642 1642sapi_deactivate(TSRMLS_C); (gdb) frame 5 #5 0x558d62f6 in sapi_deactivate () at /home/l3et3r/php-5.3-r299968/main/SAPI.c:444 444 sapi_module.deactivate(TSRMLS_C); (gdb) frame 4 #4 0x55a395b5 in sapi_cgi_deactivate () at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881 881 if ( (gdb) frame 3 #3 0x55a33de4 in fcgi_finish_request (req=0x7fff64fee540, force_close=0) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000 1000fcgi_close(req, force_close, 1); (gdb) frame 2 #2 0x55a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675 675 zend_hash_destroy(req->env); (gdb) frame 1 #1 0x55957821 in zend_hash_destroy (ht=0x5500) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517 517 IS_CONSISTENT(ht); (gdb) frame 0 #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { -- Edit this bug report at http://bugs.php.net/bug.php?id=52032&edit=1
Bug #52032 [Com]: segmentation fault
Edit report at http://bugs.php.net/bug.php?id=52032&edit=1 ID: 52032 Comment by: slogster at gmail dot com Reported by: slogster at gmail dot com Summary: segmentation fault Status: Feedback Type: Bug Package: FPM related Operating System: linux x86_64 PHP Version: 5.3SVN-2010-06-09 (SVN) Assigned To: fat New Comment: I have compiled php with --enable-debug and can extract everything you want from the core file, but I don't have a way to reproduce it. I am testing now 5.3 in production and this server is running with debug to catch problems. I have built php the following way: export CFLAGS="-O2 -msse -mmmx -msse2 -msse3 -mfpmath=sse" export CXXFLAGS="${CFLAGS}" ./buildconf ./configure --prefix=$PHPPREFIX \ --enable-fpm \ --with-libevent-dir=$LIBEVENTPREFIX \ --with-mysql \ --disable-ipv6 \ --disable-filter \ --disable-hash \ --disable-posix \ --disable-tokenizer \ --without-pear \ --without-sqlite \ --with-pdo-mysql \ --with-gd fpm ini: [global] pid = /usr/local/php-5.3-r299968/var/run/php-fpm.pid error_log = /usr/local/php-5.3-r299968/var/log/php-fpm.log log_level = notice emergency_restart_threshold = 10 emergency_restart_interval = 1m process_control_timeout = 5s daemonize = yes [www0] listen = xxx:9910 listen.backlog = -1 listen.allowed_clients = 127.0.0.1,xxx user= web group = web pm = dynamic pm.max_children = 50 pm.start_servers= 10 pm.min_spare_servers= 5 pm.max_spare_servers= 20 pm.max_requests = 500 pm.status_path = /status ping.path = /ping ping.response = pong request_terminate_timeout = 30s request_slowlog_timeout = 15s slowlog = /usr/local/php-5.3-r299968/var/log/php-fpm-0.log.slow rlimit_files= 2 rlimit_core = 0 catch_workers_output= yes env[HOSTNAME] = $HOSTNAME env[PATH] = /usr/local/bin:/usr/bin:/bin env[TMP]= /tmp env[TMPDIR] = /tmp env[TEMP] = /tmp Previous Comments: [2010-06-09 15:42:41] f...@php.net Please provide : - your conf file - compilation options - the request which makes FPM to crash ---- [2010-06-09 15:36:19] slogster at gmail dot com I am running php-fpm: URL: http://svn.php.net/repository/php/php-src/branches/PHP_5_3 Revision: 299968 ---- [2010-06-09 15:35:00] slogster at gmail dot com Description: Core was generated by `/usr/local/php-5.3-r299968/sbin/php-fpm'. Program terminated with signal 11, Segmentation fault. [New process 11882] #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x55955aab in _zend_is_inconsistent (ht=0x5500, file=0x55ccf738 "/home/l3et3r/php-5.3-r299968/Zend/zend_hash.c", line=517) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:53 #1 0x55957821 in zend_hash_destroy (ht=0x5500) at /home/l3et3r/php-5.3-r299968/Zend/zend_hash.c:517 #2 0x55a334d7 in fcgi_close (req=0x7fff64fee540, force=0, destroy=1) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:675 #3 0x55a33de4 in fcgi_finish_request (req=0x7fff64fee540, force_close=0) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fastcgi.c:1000 #4 0x55a395b5 in sapi_cgi_deactivate () at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:881 #5 0x558d62f6 in sapi_deactivate () at /home/l3et3r/php-5.3-r299968/main/SAPI.c:444 #6 0x558ca34d in php_request_shutdown (dummy=0x0) at /home/l3et3r/php-5.3-r299968/main/main.c:1642 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 (gdb) frame 7 #7 0x55a3b5d3 in main (argc=1, argv=0x7fff64ff0788) at /home/l3et3r/php-5.3-r299968/sapi/fpm/fpm/fpm_main.c:1881 1881php_request_shutdown((void *) 0); (gdb) frame 6 #6 0x558ca34d in php_request_
[PHP-BUG] Bug #51350 [NEW]: recursively including non existing file causes segfault
From: Operating system: freebsd & linux PHP version: 5.2.13 Package: Reproducible crash Bug Type: Bug Bug description:recursively including non existing file causes segfault Description: function a(){include("/nofile"); a();} a(); /nofine is non existing file Test script: --- function a(){include("/nofile"); a();} a(); /nofile is non existing file Expected result: should not segfault Actual result: -- segfault -- Edit bug report at http://bugs.php.net/bug.php?id=51350&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51350&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51350&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51350&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51350&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51350&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51350&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51350&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51350&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51350&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51350&r=support Expected behavior: http://bugs.php.net/fix.php?id=51350&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51350&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51350&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51350&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51350&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=51350&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51350&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51350&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51350&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51350&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51350&r=mysqlcfg
Bug #51350 [Bgs]: recursively including non existing file causes segfault
Edit report at http://bugs.php.net/bug.php?id=51350&edit=1 ID: 51350 User updated by: slogster at gmail dot com Reported by: slogster at gmail dot com Summary: recursively including non existing file causes segfault Status: Bogus Type: Bug Package: Reproducible crash Operating System: freebsd & linux PHP Version: 5.2.13 New Comment: I've tried it with Suhosin-Patch 0.9.7 and it segfaults too Previous Comments: [2010-03-22 21:39:15] tyra3l at gmail dot com should worth to reading it. could you at least give me the year for that discussion? I think, that in this case the script should terminate by memory exhaustion (memory_limit) or time_limit exhaustion, not with segfault. In a managed language I shouldn't be able to do stack overflow from userspace. At least not this easily. [2010-03-22 21:29:00] paj...@php.net That's known and there is no bug per se here. Not everything the suhosin patch does is the right thing to do to solve a problem. As far as I remember there was a (long) discussion on internals about this. You may find it interesting. [2010-03-22 21:25:05] tyra3l at gmail dot com suhosin protects against infinite recursion since 2006. if you can crash the php engine from userland, then you can reset the seed http://www.baohx.com/extras/zendcon/lesserknownsecurityproblemsinphpapplications.pdf page 33: attacker can get fresh seed by crashing php. so its not only an inconvinience, but can be a security problem also. Tyrael [2010-03-22 17:45:16] johan...@php.net Recusrion in PHP leads to a stack overflow for the process, which we can't properly handle ourselves so the operating system terminates the PHP process. This is the expected behavior. ---- [2010-03-22 17:08:20] slogster at gmail dot com Description: function a(){include("/nofile"); a();} a(); /nofine is non existing file Test script: --- function a(){include("/nofile"); a();} a(); /nofile is non existing file Expected result: should not segfault Actual result: -- segfault -- Edit this bug report at http://bugs.php.net/bug.php?id=51350&edit=1
#41645 [NEW]: php crashes with an empty function
From: slogster at gmail dot com Operating system: FreeBSD 6-STABLE PHP version: 5.2.3 PHP Bug Type: Reproducible crash Bug description: php crashes with an empty function Description: php crashes with segmentation fault after executing a dummy function with some default vars Reproduce code: --- ', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = -1, $echo = true) { }; get_links(-1, '','', '', false, 'name', false, false, -1); ?> Expected result: a function with this prototype exists in wordpress. this one here should exit normally, but it crashes php. if you execute it without the last argument (corresponding to the $limit var): get_links(-1, '','', '', false, 'name', false, false) php doesn`t crash Actual result: -- there is a core dump here http://xaxo.eu/php.core -- Edit bug report at http://bugs.php.net/?id=41645&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41645&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41645&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41645&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41645&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41645&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41645&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41645&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41645&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41645&r=support Expected behavior:http://bugs.php.net/fix.php?id=41645&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41645&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41645&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41645&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41645&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41645&r=dst IIS Stability:http://bugs.php.net/fix.php?id=41645&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41645&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41645&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41645&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41645&r=mysqlcfg
#41645 [Fbk->Opn]: php crashes with an empty function
ID: 41645 User updated by: slogster at gmail dot com Reported By: slogster at gmail dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 6-STABLE PHP Version: 5.2.3 New Comment: (gdb) bt #0 0x0814ed7c in _zval_ptr_dtor () #1 0x08182072 in zend_do_fcall_common_helper_SPEC () #2 0x08181b6c in execute () #3 0x081615cf in zend_execute_scripts () #4 0x081175a6 in php_execute_script () #5 0x in ?? () #6 0x0003 in ?? () #7 0x in ?? () #8 0xbfbfec00 in ?? () #9 0x in ?? () #10 0x0002 in ?? () #11 0x65646f63 in ?? () #12 0x in ?? () #13 0xbfbfe85c in ?? () #14 0x0002 in ?? () #15 0x08164e67 in zend_register_functions () Previous frame inner to this frame (corrupt stack?) (gdb) frame 2 #2 0x08181b6c in execute () Previous Comments: [2007-06-09 23:12:43] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. I however can't reproduce this with the provided test case. [2007-06-09 22:44:23] slogster at gmail dot com Description: php crashes with segmentation fault after executing a dummy function with some default vars Reproduce code: --- ', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = -1, $echo = true) { }; get_links(-1, '','', '', false, 'name', false, false, -1); ?> Expected result: a function with this prototype exists in wordpress. this one here should exit normally, but it crashes php. if you execute it without the last argument (corresponding to the $limit var): get_links(-1, '','', '', false, 'name', false, false) php doesn`t crash Actual result: -- there is a core dump here http://xaxo.eu/php.core -- Edit this bug report at http://bugs.php.net/?id=41645&edit=1
#41645 [Fbk->Opn]: php crashes with an empty function
ID: 41645 User updated by: slogster at gmail dot com Reported By: slogster at gmail dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 6-STABLE PHP Version: 5.2.3 New Comment: Hm, this is strange. When I compile it with debug it works! Doesn`t do Segmentation Fault. I don`t have any third party extentions. Can you please test it without debug enabled? Previous Comments: [2007-06-10 01:42:06] [EMAIL PROTECTED] Can you recompile PHP with --enable-debug please so we can get some more useful information. Also do you have any sort of third party zend extensions like APC, eAccelerator or Zend Optimizer? If so they should be disabled as well and test again. [2007-06-09 23:54:10] slogster at gmail dot com (gdb) bt #0 0x0814ed7c in _zval_ptr_dtor () #1 0x08182072 in zend_do_fcall_common_helper_SPEC () #2 0x08181b6c in execute () #3 0x081615cf in zend_execute_scripts () #4 0x081175a6 in php_execute_script () #5 0x in ?? () #6 0x0003 in ?? () #7 0x in ?? () #8 0xbfbfec00 in ?? () #9 0x in ?? () #10 0x0002 in ?? () #11 0x65646f63 in ?? () #12 0x in ?? () #13 0xbfbfe85c in ?? () #14 0x0002 in ?? () #15 0x08164e67 in zend_register_functions () Previous frame inner to this frame (corrupt stack?) (gdb) frame 2 #2 0x08181b6c in execute () [2007-06-09 23:12:43] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. I however can't reproduce this with the provided test case. [2007-06-09 22:44:23] slogster at gmail dot com Description: php crashes with segmentation fault after executing a dummy function with some default vars Reproduce code: --- ', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = -1, $echo = true) { }; get_links(-1, '','', '', false, 'name', false, false, -1); ?> Expected result: a function with this prototype exists in wordpress. this one here should exit normally, but it crashes php. if you execute it without the last argument (corresponding to the $limit var): get_links(-1, '','', '', false, 'name', false, false) php doesn`t crash Actual result: -- there is a core dump here http://xaxo.eu/php.core -- Edit this bug report at http://bugs.php.net/?id=41645&edit=1
#41645 [Fbk->Opn]: php crashes with an empty function (works with --enable-debug !!)
ID: 41645 User updated by: slogster at gmail dot com Reported By: slogster at gmail dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 6-STABLE PHP Version: 5.2.3 New Comment: I compiled php-5.2.3 directly from source (not from freebsd ports) and it doesn`t crash without debug. Then I made "make all" in ports/lang/php5 and tried the sapi/cgi/php against that code and it crashes. I suppose some of the freebsd patches cause php to crash. I will try those one by one to catch which one is responsible for the crash and report back here and to the freebsd port maintainer. Since it seems to be related to the freebsd ports and not stock php-5.2.3 should I change the status of this report to closed? Previous Comments: [2007-06-12 15:57:32] [EMAIL PROTECTED] Definately unable to reproduce without a debug build, if you can then recompile PHP without debug mode but leave debug symbols in to give a more detailed back trace. export CFLAGS="-g" make clean, configure and compile. If you can disable all extensions and only enable the minimum you require. [2007-06-11 20:11:39] [EMAIL PROTECTED] Such simple code is unlikely to crash as a result of any bug in PHP engine. The problem is probably elsewhere - such as incompatible extensions linked together, wrong library versions, broken compilation, compiler bug, using module/extension of incompatible version, etc. [2007-06-10 11:45:32] slogster at gmail dot com Hm, this is strange. When I compile it with debug it works! Doesn`t do Segmentation Fault. I don`t have any third party extentions. Can you please test it without debug enabled? [2007-06-10 01:42:06] [EMAIL PROTECTED] Can you recompile PHP with --enable-debug please so we can get some more useful information. Also do you have any sort of third party zend extensions like APC, eAccelerator or Zend Optimizer? If so they should be disabled as well and test again. [2007-06-09 23:54:10] slogster at gmail dot com (gdb) bt #0 0x0814ed7c in _zval_ptr_dtor () #1 0x08182072 in zend_do_fcall_common_helper_SPEC () #2 0x08181b6c in execute () #3 0x081615cf in zend_execute_scripts () #4 0x081175a6 in php_execute_script () #5 0x in ?? () #6 0x0003 in ?? () #7 0x in ?? () #8 0xbfbfec00 in ?? () #9 0x in ?? () #10 0x0002 in ?? () #11 0x65646f63 in ?? () #12 0x in ?? () #13 0xbfbfe85c in ?? () #14 0x0002 in ?? () #15 0x08164e67 in zend_register_functions () Previous frame inner to this frame (corrupt stack?) (gdb) frame 2 #2 0x08181b6c in execute () 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/41645 -- Edit this bug report at http://bugs.php.net/?id=41645&edit=1