Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89457 invoked from network); 23 Jun 2009 22:01:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2009 22:01:07 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.222.197 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.222.197 mail-pz0-f197.google.com Received: from [209.85.222.197] ([209.85.222.197:36278] helo=mail-pz0-f197.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/D8-36467-1A0514A4 for ; Tue, 23 Jun 2009 18:01:06 -0400 Received: by pzk35 with SMTP id 35so294269pzk.29 for ; Tue, 23 Jun 2009 15:01:03 -0700 (PDT) Received: by 10.143.42.7 with SMTP id u7mr130654wfj.288.1245794463284; Tue, 23 Jun 2009 15:01:03 -0700 (PDT) Received: from monster.local ([76.84.30.125]) by mx.google.com with ESMTPS id 30sm856496wff.29.2009.06.23.15.01.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Jun 2009 15:01:02 -0700 (PDT) Message-ID: <4A41509A.4000904@chiaraquartet.net> Date: Tue, 23 Jun 2009 17:00:58 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: jvlad CC: internals@lists.php.net, Dmitry Stogov References: <688E0CB7-742C-4861-B636-0C89DC4D8B9A@pooteeweet.org> <06.D1.20019.45C1F3A4@pb1.pair.com> <7f3ed2c30906220017j6fcea76do2190af3f3ff2d763@mail.gmail.com> <38.7A.20019.C9D6F3A4@pb1.pair.com> <7f3ed2c30906220445m469c0faxc6e28b242dffb086@mail.gmail.com> <37.A4.20019.D4E9F3A4@pb1.pair.com> <2dedb8a0906222337u3fca7762w8f91cb4d18cef1c4@mail.gmail.com> <8D.68.36467.160F04A4@pb1.pair.com> <4A412212.50505@chiaraquartet.net> <6F.77.36467.AD6214A4@pb1.pair.com> <4A412BCB.4010909@chiaraquartet.net> <4A4149D4.8030607@chiaraquartet.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: 5.3.0 stable release From: greg@chiaraquartet.net (Greg Beaver) jvlad wrote: >> Hi, >> >> Thanks. The line in question is the first line of the generated >> (non-phar) phar.php script which is the foreach line in: >> >> > foreach (array("SPL", "Reflection", "Phar") as $ext) { >> if (!extension_loaded($ext)) { >> echo "$argv[0] requires PHP extension $ext.\n" >> exit(1); >> } >> } >> ?> >> >> Could you try running sapi/cli/php passing in a simple script with those >> contents and verify you still get the bus error? Hi, This is helpful, looks like a real Zend Engine issue, tmp is not being properly initialized by INIT_ZVAL apparently. Open a bug report with those contents, perhaps Dmitry (or someone else equally smart) can take a look. Greg > Core was generated by `./php 1.php'. > Program terminated with signal 10, Bus error. > #0 0x002e7d80 in ZEND_FE_RESET_SPEC_TMP_HANDLER (execute_data=0x861cc0) > at > /export/home/jvlad/php/php5.3-200906221030/Zend/zend_vm_execute.h:5371 > 5371 INIT_PZVAL_COPY(tmp, array_ptr); > (gdb) bt > #0 0x002e7d80 in ZEND_FE_RESET_SPEC_TMP_HANDLER (execute_data=0x861cc0) > at > /export/home/jvlad/php/php5.3-200906221030/Zend/zend_vm_execute.h:5371 > #1 0x002d92a0 in execute (op_array=0x70bd90) > at /export/home/jvlad/php/php5.3-200906221030/Zend/zend_vm_execute.h:104 > #2 0x002b8d48 in zend_execute_scripts (type=8, retval=0x0, file_count=3) > at /export/home/jvlad/php/php5.3-200906221030/Zend/zend.c:1188 > #3 0x00266444 in php_execute_script (primary_file=0xffbefbf0) > at /export/home/jvlad/php/php5.3-200906221030/main/main.c:2196 > #4 0x003447d4 in main (argc=2, argv=0xffbefcac) > at /export/home/jvlad/php/php5.3-200906221030/sapi/cli/php_cli.c:1188 > (gdb) p array_ptr > $1 = (zval *) 0x861d14 > (gdb) p *array_ptr > $2 = {value = {lval = 7458416, dval = 1.5848218932638939e-306, str = {val = > 0x71ce70 "", > len = 0}, ht = 0x71ce70, obj = {handle = 7458416, handlers = 0x0}}, > refcount__gc = 0, > type = 4 '\004', is_ref__gc = 0 '\0'} > (gdb) p tmp > Cannot access memory at address 0xfffffff0 > (gdb) dump_bt executor_globals.current_execute_data > [0x00861cc0] ??? /export/home/jvlad/php/php5.3-200906221030/sapi/cli/1.php:2 > (gdb)q > $cat 1.php > foreach (array("SPL", "Reflection", "Phar") as $ext) { > if (!extension_loaded($ext)) { > echo "$argv[0] requires PHP extension $ext.\n"; > exit(1); > } > } > ?> > >