ID: 28110 Comment by: joel at preacherboy dot net Reported By: cpuidle at gmx dot de Status: Open Bug Type: Reproducible crash Operating System: WinXP SP1 PHP Version: 5CVS-2004-04-22 (dev) New Comment:
I'm seeing this occur with Apache 2.0.52, PHP 5.0.2, and Windows 2003. I'm not doing anything particularly special in the PHP. Most of the hosted files are 100% HTML going through PHP. Previous Comments: ------------------------------------------------------------------------ [2004-06-28 23:20:06] chris at leftbrained dot org I, too, am getting that same error message in the apache error log, but I can duplicate it differently. Every call to bcmul(), I tried various values, and various values for bcscale), where either of the arguments is 0 will produce this error. $fStepX = '0.00750000000000000000'; bcmul($fStepX,0); The system: PHP 5.0, RC3 (Module, Pre-compiled , downloaded from php.net[Hurricane Electric mirror]) Windows 2000 Pro, SP4 [5.00.2195] Apache 2.0.49 (Pre-compiled, downloaded from apache.org, No SSL) Error message in Apache error log: [Mon Jun 28 13:52:23 2004] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Mon Jun 28 13:52:23 2004] [notice] Parent: Created child process 2000 I wasn't sure whether I should give this a new bug report, or tack it on to one of the exisitings ones. I chose this one because it was the only relevant open report I could find. ------------------------------------------------------------------------ [2004-06-03 14:27:07] messju at lammfellpuschen dot de event simpler code that reproduces this crash: <?php function foo() { $obj->plugins['function']['counter'][0](); } ?> note: the function doesn't need to be called. it already crashes during parsing. with php-5.0.0RC3RC2 on linux i get: (gdb) r Starting program: /mnt/debbie/home/messju/build/php-5.0.0RC3RC2/sapi/cli/php /usr/local/httpd/messju/foo.php [Thread debugging using libthread_db enabled] [New Thread 1078702752 (LWP 14190)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1078702752 (LWP 14190)] 0x08207bb3 in zend_binary_strcasecmp (s1=0x0, len1=7, s2=0x83ad53c "__clone", len2=7) at ctype.h:192 192 { (gdb) bt #0 0x08207bb3 in zend_binary_strcasecmp (s1=0x0, len1=7, s2=0x83ad53c "__clone", len2=7) at ctype.h:192 #1 0x081f7b0f in zend_do_begin_method_call (left_bracket=0xbfffc0bc) at /home/messju/debbie/build/php-5.0.0RC3RC2/Zend/zend_compile.c:1203 #2 0x081ed16b in zendparse () at Zend/zend_language_parser.c:3229 #3 0x081ee671 in compile_file (file_handle=0x2, type=2) at Zend/zend_language_scanner.c:3141 #4 0x0820a6bb in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/messju/debbie/build/php-5.0.0RC3RC2/Zend/zend.c:1057 #5 0x081d049f in php_execute_script (primary_file=0xbffff4d0) at /home/messju/debbie/build/php-5.0.0RC3RC2/main/main.c:1627 #6 0x082350ae in main (argc=2, argv=0xbffff594) at /home/messju/debbie/build/php-5.0.0RC3RC2/sapi/cli/php_cli.c:943 ------------------------------------------------------------------------ [2004-04-22 18:43:40] cpuidle at gmx dot de Not sure the two are related, but I've also found bug 28108, please cross-check. ------------------------------------------------------------------------ [2004-04-22 18:42:44] cpuidle at gmx dot de Description: ------------ Apache crashes reporducibly with the following long file entry: Parent: child process exited with status 3221225477 -- Restarting Same thing happens with Apache 2.0.48 and PHP5RC1. This happens without client firewall being installed. Reproduce code: --------------- The code to reproduce is part of the code that smarty generates from one of my templates: <?php echo $this->_plugins['function']['counter'][0](array('start' => 0,'print' => false,'name' => 'videocount'), $this) ; ?> Even if the code were wrong- it shouldn't crash apache, right? Expected result: ---------------- no crash... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28110&edit=1