Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4569 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87136 invoked by uid 1010); 24 Sep 2003 19:18:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87112 invoked from network); 24 Sep 2003 19:18:46 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 24 Sep 2003 19:18:46 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 5DE221488089; Wed, 24 Sep 2003 12:18:03 -0700 (PDT) Received: from zaneeb.brainnet.i (gate.thebrainroom.net [195.149.29.154]) by mx.thebrainroom.net (Postfix) with ESMTP id 9EC7A1488087; Wed, 24 Sep 2003 12:17:47 -0700 (PDT) Received: from zaneeb.brainnet.i (IDENT:wez@zaneeb.brainnet.i [127.0.0.1]) by zaneeb.brainnet.i (8.11.6/8.11.6) with ESMTP id h8OJISU26279; Wed, 24 Sep 2003 20:18:28 +0100 Date: Wed, 24 Sep 2003 20:18:28 +0100 (BST) X-X-Sender: wez@zaneeb.brainnet.i To: Antony Dovgal Cc: internals@lists.php.net In-Reply-To: <20030924214944.4d86ae14.tony2001@phpclub.net> Message-ID: References: <20030924214944.4d86ae14.tony2001@phpclub.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_PINE autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-TBR-Filter: Virus scanned and defanged Subject: Re: [PHP-DEV] Segfault in HEAD & PHP_4_3 (and possible patch) From: wez@thebrainroom.com (Wez Furlong) The memory manager will deliberately segfault if an allocation fails in a debug build. Having said that, your patch seems ok anyway. --Wez. On Wed, 24 Sep 2003, Antony Dovgal wrote: > Hi, all! > > This script (you need to compile PHP with --enable-memory-limit first): > ini_set("memory_limit",0); > phpinfo(); > ?> > produces for me segfault with last HEAD and PHP_4_3 branch. > > Backtrace: > > Program received signal SIGSEGV, Segmentation fault. > _efree (ptr=0x0) at /root/CVS/php-src/Zend/zend_alloc.c:257 > 257 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size); > (gdb) bt > #0 _efree (ptr=0x0) at /root/CVS/php-src/Zend/zend_alloc.c:257