Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16615 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5393 invoked by uid 1010); 12 Jun 2005 20:49:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5378 invoked from network); 12 Jun 2005 20:49:14 -0000 Received: from unknown (HELO m.gmane.org) (127.0.0.1) by localhost with SMTP; 12 Jun 2005 20:49:14 -0000 X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.4/2.6 Received: from ([80.91.229.2:33282] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id D4/28-20931-8CF9CA24 for ; Sun, 12 Jun 2005 16:49:12 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DhZJY-0004ld-PQ for internals@lists.php.net; Sun, 12 Jun 2005 22:44:16 +0200 Received: from p5088786f.dip.t-dialin.net ([80.136.120.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2005 22:44:16 +0200 Received: from sb by p5088786f.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jun 2005 22:44:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sun, 12 Jun 2005 22:48:42 +0200 Lines: 68 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p5088786f.dip.t-dialin.net User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en X-Enigmail-Version: 0.91.0.0 Sender: news Subject: CALL and SWITCH executors segfault From: sb@sebastian-bergmann.de (Sebastian Bergmann) Tonight I wanted to do some benchmarks with PHP 4.3.11, PHP 5.0.4, and the three (CALL, GOTO, SWITCH) executors of PHP 5.1 with both GCC 3.4.4 and GCC 4.0.1 to get a feeling for the improvements in the VM for PHP 5.1. Both the CALL and SWITCH executors segfault for me on my Linux system when running the ZendEngine2/bench.php script. Below is the backtrace for the GOTO executor: (gdb) r Zend/bench.php Starting program: /usr/local/src/php/php-5.1/sapi/cli/php Zend/bench.php simple 0.294 simplecall 0.778 simpleucall 1.147 simpleudcall 1.379 mandel 1.223 mandel2 1.494 Program received signal SIGSEGV, Segmentation fault. execute (op_array=0x826ffe0) at zend_vm_execute.h:3834 3834 memset(EX(CVs), 0, sizeof(zval**) * op_array->last_var); (gdb) bt #0 execute (op_array=0x826ffe0) at zend_vm_execute.h:3834 #1 0x0816d534 in execute (op_array=0x812dcc0) at zend_vm_execute.h:3989 . . . #871 0x0816d534 in execute (op_array=0x8285194) at zend_vm_execute.h:3989 #872 0x0812fa34 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php/php-5.1/Zend/zend.c:1077 #873 0x080ecb4d in php_execute_script (primary_file=0xbffff7a0) at /usr/local/src/php/php-5.1/main/main.c:1670 #874 0x081d3b4a in main (argc=2, argv=0xbffff874) at /usr/local/src/php/php-5.1/sapi/cli/php_cli.c:1036 Below is the backtrace for the SWITCH executor: (gdb) r Zend/bench.php Starting program: /usr/local/src/php/php-5.1/sapi/cli/php Zend/bench.php simple 0.316 simplecall 0.779 simpleucall 1.170 simpleudcall 1.389 mandel 1.384 mandel2 1.630 Program received signal SIGSEGV, Segmentation fault. execute (op_array=0x8273fe0) at zend_vm_execute.h:53 53 memset(EX(CVs), 0, sizeof(zval**) * op_array->last_var); (gdb) bt #0 execute (op_array=0x8273fe0) at zend_vm_execute.h:53 #1 0x0816f7b8 in execute (op_array=0x812dcc0) at zend_vm_execute.h:211 . . . #875 0x0816f7b8 in execute (op_array=0x8289194) at zend_vm_execute.h:211 #876 0x0812fa34 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php/php-5.1/Zend/zend.c:1077 #877 0x080ecb4d in php_execute_script (primary_file=0xbffff7a0) at /usr/local/src/php/php-5.1/main/main.c:1670 #878 0x081d464a in main (argc=2, argv=0xbffff874) at /usr/local/src/php/php-5.1/sapi/cli/php_cli.c:1036 -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69