[Gllug] PHP segmentation fault

Jon Dye jon at pecorous.co.uk
Thu Mar 15 09:27:01 UTC 2007


Hi,

I'm getting a segmentation fault when running php.  I noticed that some
of the addresses on my website were returning a blank page and I
eventually tracked it down to php crashing.  Now when I run php with the
following php file it segfaults just after printing 1.

<?php
print "1\n";
define('FOO', 'BAR');
print "2\n";
?>

I ran strace on php and the last few lines are:

> read(3, "<?php\nprint \"1\\n\";\ndefine(\'FOO\',"..., 8192) = 57
> read(3, "", 4096)                       = 0
> read(3, "", 8192)                       = 0
> close(3)                                = 0
> munmap(0xb7f2a000, 4096)                = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
> write(1, "1\n", 21
> )                      = 2
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Process 3931 detached

I don't know where to start looking next, does anyone have any
suggestions?  This is on a Gentoo box with php version 5.2.1. I have
already tried reinstalling (recompiling) php but that didn't help.

JD

-- 
"Breaking into the Pentagon's computer. Double click on Yes."
		- Eddie Izzard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070315/1738085a/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