Bug #61662 [Opn->Nab]: header() cause apache to segfault
Edit report at https://bugs.php.net/bug.php?id=61662&edit=1
ID: 61662
Updated by: rasmus@php.net
Reported by: gmblar+php at gmail dot com
Summary: header() cause apache to segfault
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Debian 6
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
Yes, but we can't fix bugs in Apache 2.4. Show me a stack of a segfault in actual
PHP code and I can take a look.
Previous Comments:
------------------------------------------------------------------------
[2012-04-08 00:24:21] gmblar+php at gmail dot com
The problem occurs only with Apache 2.4, not in the CLI version of php.
$ uname -a
Linux foobox 2.6.32-238.19.1.el5.028stab092.2 #1 SMP Thu Sep 22 13:24:07 MSD 2011
x86_64 GNU/Linux
$ cat /etc/debian_version
6.0.4
------------------------------------------------------------------------
[2012-04-08 00:22:57] rasmus@php.net
But if you are running php-fpm then there is no PHP code in your Apache process.
It is only communicating via FastCGI. And since your segfault is in httpd then
this isn't a PHP bug. It doesn't matter what we send over FastCGI to Apache,
nothing we can possibly send should trigger a segfault. Report the bug to the
Apache folks.
------------------------------------------------------------------------
[2012-04-08 00:15:12] gmblar+php at gmail dot com
Tested with Apache 2.4 (mod_proxy_fcgi) and PHP-FPM 5.4.
Apache configuration: http://foobox.de/Apache/Konfiguration/
PHP configuration: http://foobox.de/PHP/info.php
------------------------------------------------------------------------
[2012-04-07 22:54:40] rasmus@php.net
Are you sure that's all you have in your script? I tried this both on Debian and
Ubuntu from CLI and under Apache and I also checked it with Valgrind. I see no
memory issues with this.
------------------------------------------------------------------------
[2012-04-07 22:03:10] gmblar+php at gmail dot com
Description:
------------
Apache segfault, when call header() with wrong parameters.
Test script:
---------------
header('Cache-Control', 'public,max-age=86400');
Expected result:
----------------
Nothing
Actual result:
--------------
httpd[26348]: [core:notice] [pid 26348:tid 47243385569824] AH00052: child pid
26491 exit signal Segmentation fault (11), referer:
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61662&edit=1
Thread (7 messages)