Re: B3, pear segfault, and msgs about deprecated
| From: | Derick Rethans | Date: | Thu, 18 Dec 2003 13:44:29 +0000 |
| Subject: | Re: B3, pear segfault, and msgs about deprecated | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6537@lists.php.net to get a copy of this message | ||
On Thu, 18 Dec 2003, Pierre-Alain Joye wrote:
> On Thu, 18 Dec 2003 13:50:10 +0100 (CET)
> Derick Rethans <derick@php.net> 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