php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28061 Apache crashes upon SIGHUP when PHP module is loaded
Submitted: 2004-04-19 16:52 UTC Modified: 2004-04-19 20:16 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michal at logix dot cz Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4CVS-2004-04-19 (stable) OS: Linux, glibc 2.3.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michal at logix dot cz
New email:
PHP Version: OS:

 

 [2004-04-19 16:52 UTC] michal at logix dot cz
Description:
------------
Apache 2.0.49 and PHP 4.3.6 (as well as lates CVS snapshot).

When everything is up and running I remove one of the Apache's logfiles (e.g. ~www/logs/access_log) and tell Apache to recreate it by calling "killall -HUP httpd". 

Apache immediately crashes with the following in error_log:

[Mon Apr 19 15:26:08 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 19 15:26:08 2004] [notice] seg fault or similar nasty error detected in the parent process

When I disable loading of the PHP module in httpd.conf everything works just fine. When I downgrade to PHP 4.3.4 it works as well.

Reproduce code:
---------------
Compile Apache 2.0.49 with 
./configure --prefix=/home/www --enable-http \
--enable-so --enable-usertrack

and PHP 4.3.6 with:
./configure --prefix=/home/www/php \
--with-apxs2=/home/www/bin/apxs

Install and run.

Make any request, remove ~www/logs/access_log and run 
'killall -HUP httpd'

Expected result:
----------------
access_log should be recreated

Actual result:
--------------
This appears in the error_log:

[Mon Apr 19 15:26:08 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 19 15:26:08 2004] [notice] seg fault or similar nasty error detected in the parent process

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-19 20:16 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Please search the bug database before submitting a bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 15:01:29 2024 UTC