php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13153 Some functions calls made Apache Segfault
Submitted: 2001-09-05 14:05 UTC Modified: 2001-09-05 14:10 UTC
From: d dot denis at absyde dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-09-05 14:05 UTC] d dot denis at absyde dot com
Hello all,

Some weird bugs were found playing with Apache 1.3.20 and PHP 4.0.6. Apache reported that some child process died after a Segfault. I have tracked a little the .php files, not all are crashing Apache. I found the nasty sequences in one of them :

this works fine:
setcookie("cookie" ,$date_now , time()+24*3600 , "p.php" ); 

this makes some Apache child process segfault:
setcookie("cookie");

funny isn't it ? :)

I have tried with and without output buffering, removing mysql and mhash modules, nothing changes. After installing 4.0.5 debian packages everything went ok. Other php pages made Apache segfault( without setcookie() calls ). I haven't  
tracked them. Hope this will help :)

 Regards,



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-05 14:10 UTC] rasmus@php.net
This has been fixed in CVS and will be in 4.0.7
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 03:01:28 2024 UTC