Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58620 invoked by uid 1010); 18 Dec 2003 13:44:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58596 invoked from network); 18 Dec 2003 13:44:30 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 18 Dec 2003 13:44:30 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id hBIDiT6g025755; Thu, 18 Dec 2003 14:44:30 +0100 Date: Thu, 18 Dec 2003 14:44:29 +0100 (CET) X-X-Sender: derick@localhost To: Pierre-Alain Joye cc: internals@lists.php.net In-Reply-To: <20031218144221.5b76a088.paj@pearfr.org> Message-ID: References: <20031218124303.18e22274.paj@pearfr.org> <20031218134629.7c13aa17.paj@pearfr.org> <20031218144221.5b76a088.paj@pearfr.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated From: derick@php.net (Derick Rethans) On Thu, 18 Dec 2003, Pierre-Alain Joye wrote: > On Thu, 18 Dec 2003 13:50:10 +0100 (CET) > Derick Rethans wrote: > > > On Thu, 18 Dec 2003, Pierre-Alain Joye wrote: > > > > > Ok segfault is on line pear/PEAR/Registry.php line 345. > > > > > > This is a call to unserialize. I do not know yet why it fails. Maybe > > > (again) the serialized data is corrupted. Anyway unserialize should > > > ""never"" segfault. > > > > Can you put the datafile + serialize call in a test case? > > I tried (see links below), but a simple test case does not segfault > with the same file. > > Please note a weird notice about an undefined $data variable. The > problem is that $data is a function argument and is used in the 1st line > of the functon... Any idea? > > One of the serialized data which cause the segfault: > http://www.pearfr.org/~paj/pear/packageserialized > > A patch against /php-src/pear/ to see where that happens and to > reproduce the weird notice: > http://www.pearfr.org/~paj/pear/pear-install-seg.patch > > A useless test case: > http://www.pearfr.org/~paj/pear/test_seg.php > > It works perfectly, but the same file and code segfaults in PEAR. > > A bit lost right now, memory issue? Guesso... can you try to run it in valgrind, it should show all memory overruns etc.. Derick