Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15288 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77320 invoked by uid 1010); 6 Mar 2005 15:50:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77292 invoked from network); 6 Mar 2005 15:50:06 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 6 Mar 2005 15:50:06 -0000 X-Host-Fingerprint: 212.204.192.51 jdi.jdimedia.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([212.204.192.51:48639] helo=jdi.jdimedia.nl) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 9F/C0-29225-DA62B224 for ; Sun, 06 Mar 2005 10:50:06 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j26Fo28N001162 for ; Sun, 6 Mar 2005 16:50:02 +0100 Received: from jdi.jdimedia.nl ([127.0.0.1]) by localhost (jdi.jdimedia.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31746-05-2 for ; Sun, 6 Mar 2005 16:50:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j26FnwB7001138; Sun, 6 Mar 2005 16:49:58 +0100 Date: Sun, 6 Mar 2005 16:49:57 +0100 (CET) X-X-Sender: derick@localhost To: Greg Beaver cc: internals@lists.php.net In-Reply-To: <20050306153830.62045.qmail@lists.php.net> Message-ID: References: <20050306153830.62045.qmail@lists.php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] assistance with segfaults in debug_backtrace() From: derick@php.net (Derick Rethans) On Sun, 6 Mar 2005, Greg Beaver wrote: > We're getting quite a few reports of PEAR segfaulting on a > debug_backtrace() call found in the constructor of PEAR_Error. Jan > Schneider reported that it seemed to occur when one of the methods in > the trace happened in a file that the uid did not have write access to > (i.e. a PEAR file installed by root), but Davey Shafik posted a report > that it happened to him while running "pear upgrade PEAR" as root. He > also posted a backtrace that might be useful at: > > http://pear.php.net/bugs/bug.php?id=3683 > > Any tips on how to proceed in isolating this? I can't reproduce the > problem on any of my systems (windows xp, gentoo). Disable the memory manager in zend_alloc.h (it's a define "ZEND_ALLOC" afaik). Then use valgrind to run PHP and see whether it shows errors... regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org