#32183 [Fbk->Opn]: PHP Seg faults on normal code
| From: | zedar at zedar dot org | Date: | Mon, 07 Mar 2005 03:12:12 +0000 |
| Subject: | #32183 [Fbk->Opn]: PHP Seg faults on normal code | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74999@lists.php.net to get a copy of this message | ||
ID: 32183
User updated by: zedar at zedar dot org
Reported By: zedar at zedar dot org
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Linux 2.4.26
PHP Version: 5.0.3
New Comment:
A sample page that produces a segfault is available at the
following URL:
http://barra.telenet.net.au/WAME/Users/Options/details2.txt
Sorry about the lenght, but thats the minimum I could get
it down to and still produce the seg fault. I can't give
you access to an actual php version on the server as we
use auto-prepends on our scripts, and you wouldn't see any
output from it anyway.
I have put comments in front of the sections of code that
can be removed to stop it from segfaulting.
Previous Comments:
------------------------------------------------------------------------
[2005-03-04 09:28:35] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-03-04 08:24:54] zedar at zedar dot org
Description:
------------
PHP segmentation faults on lines of unremarkable code (or
in some cases, not code at all). The code causing the
crashes is part of a large management system so i can't
really provide a sample of what causes the crash, but I'm
not sure it would help anyway. A couple of sample lines it
has crashed on are shown below, but I'm not sure they
caused the crash or if it was something else internal.
It has also on occasion crashed while on non-php code, in
the one case i saw it was a html comment. If i removed the
comment, the page loaded fine.
Reproduce code:
---------------
// Crashes on this line
$selected = ($status==$s)?'selected':'';
Actual result:
--------------
From apache error log:
[Fri Mar 4 16:49:54 2005] [error] PHP Warning: Unknown
list entry type in request shutdown (1919251285) in
Unknown on line 0
[Fri Mar 4 16:49:55 2005] [notice] child pid 23476 exit
signal Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32183&edit=1