Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 726 invoked by uid 1010); 15 Jan 2007 20:58:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 711 invoked from network); 15 Jan 2007 20:58:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2007 20:58:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:35371] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/ED-33655-7DAEBA54 for ; Mon, 15 Jan 2007 15:58:01 -0500 Received: (qmail 32417 invoked from network); 15 Jan 2007 20:56:19 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 15 Jan 2007 20:56:19 -0000 Message-ID: <45ABEAD2.6090804@zend.com> Date: Mon, 15 Jan 2007 23:57:54 +0300 User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Arnold Daniels CC: internals@lists.php.net References: <45ABE8FF.4060400@adaniels.nl> In-Reply-To: <45ABE8FF.4060400@adaniels.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Newbie help: Segmentation fault From: antony@zend.com (Antony Dovgal) On 01/15/2007 11:50 PM, Arnold Daniels wrote: > Hi, > > I could use some help on an extension I've written. It worked fine > before, but from out the blue I started to get segmentation faults. I've > located it down to this piece of code, but I don't do any writes to the > code memory, so I don't get what's wrong. It seems like the error lies > in the 'ret != NULL'. > > The module compiled against php 5.1.6 and runs under linux version > 2.6.15.4 (Debian). - zval *ret; + zval *ret = NULL; -- Wbr, Antony Dovgal