ID: 28110 Comment by: messju at lammfellpuschen dot de 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:
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 Previous Comments: ------------------------------------------------------------------------ [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