[Gllug] Re: PHP segmentation fault
jon at pecorous.co.uk
jon at pecorous.co.uk
Sat Mar 17 11:25:59 UTC 2007
On Fri, Mar 16, 2007 at 11:35:01PM +0000, Nix wrote:
> On 15 Mar 2007, Jon Dye outgrape:
> >> You could try installing a debug version of PHP, then running the
> >> script from the command line.
> >
> > The debug version doesn't segfault at all. I eventually ran
> > valgrind on php and it reported:
>
> Compile with -g and get debugging, I'd guess.
When I said debug version I mean I set the Gentoo debug USE flag which I'm pretty sure compiles with -g. When I do that it doesn't crash at all.
> (FWIW php 5.2.1 does not crash here nor emit any valgrind errors with the
> testcase you provided. Are you using weird CFLAGS or a known-broken version
> of GCC such as 4.0.0 or something?)
gcc 3.4.6 with CFLAGS="-O2 -march=athlon-xp -funroll-loops -pipe"
Can't remember why I put -funroll-loops in there.
For now I'm running with the debug version (-g) because it works and
I've submitted a bug report to Gentoo but I was hoping to be able to
diagnose the problem further.
JD
--
"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies and the other
way is to make it so complicated that there are no obvious deficiencies"
- C. A. R. Hoare
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070317/a6709479/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list