php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57801 Timeout problems
Submitted: 2007-08-28 07:08 UTC Modified: 2007-09-10 10:28 UTC
From: info at a-wing dot co dot uk Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 5.1.6 OS: CentOS
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at a-wing dot co dot uk
New email:
PHP Version: OS:

 

 [2007-08-28 07:08 UTC] info at a-wing dot co dot uk
Description:
------------
A script that triggers a 30 second timeout 
(max_execution_time) does not cause a Fatal Error.  PHP does 
die after 30 seconds, but no error in the apache error log and 
the apache process is stuck in "W" mode forever.

Without APC this behaves normally.

Reproduce code:
---------------
<?
$x=1;
while(1) {
$x=$x*2;
sleep(1);
}
?>

Expected result:
----------------
Fatal Error for max execution time in apache error log and 
apache process to return to "-" mode.

Actual result:
--------------
A brief backtrace from running process:

#0  0x00fbf7a2 in _dl_sysinfo_int80 () from /lib/ld-
linux.so.2
#1  0x002e5026 in flock () from /lib/tls/libc.so.6
#2  0x010ae1c7 in ps_files_open (data=0x92769e8, 
    key=0x927bcf8 "mpq2r114aiv9lbrhiqh3g7v6o5")
    at /usr/src/redhat/BUILD/php-
5.1.6/ext/session/mod_files.c:166
#3  0x010ae49f in ps_read_files (mod_data=0x12d2250, 
    key=0x927bcf8 "mpq2r114aiv9lbrhiqh3g7v6o5", 
val=0xbff02c8c, 
    vallen=0xbff02c90)
    at /usr/src/redhat/BUILD/php-
5.1.6/ext/session/mod_files.c:322
#4  0x010acc56 in php_session_start ()
    at /usr/src/redhat/BUILD/php-
5.1.6/ext/session/session.c:802
#5  0x010ad230 in zif_session_start (ht=0, 
return_value=0x92758a0, 
    return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /usr/src/redhat/BUILD/php-
5.1.6/ext/session/session.c:1726
#6  0x011b94aa in zend_do_fcall_common_helper_SPEC 
(execute_data=0xbff03190)
    at /usr/src/redhat/BUILD/php-
5.1.6/Zend/zend_vm_execute.h:200




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-10 10:28 UTC] info at a-wing dot co dot uk
I managed to get it to happen without APC after this report, 
the bug is in PHP and is fixed somewhere between 5.1.6 and 
5.2.3.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 22 17:01:24 2021 UTC