SV: [PHP4BETA] Maximum execution time of 30 seconds exceeded
| From: | Johan Ekenberg | Date: | Fri, 10 Dec 1999 23:24:44 +0000 |
| Subject: | SV: [PHP4BETA] Maximum execution time of 30 seconds exceeded | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7782@lists.php.net to get a copy of this message | ||
> > This basically means that your script took more than the default 30
> > seconds to run. If you want to change it you can use set_time_limit()
> > function, but it was broken in beta 2 and beta 3. You'd have to use the
> > latest CVS version.
>
> I'm not sure I follow you here. The process that dies is the main
> httpd process; the one that accepts connections and forks off the
> child processes. The child processes run the scripts, right?
>
Lars Magne is right, this can't be a normal timeout. This is the exact same
bug that I've been reporting, unfortunately yet without response from any
core-developer. See below for backtrace and detailed bug-description.
A normal timeout would report filename and line number, not "[no active
file] on line 0", and it would certainly not crash the root-httpd process.
Lars Magne, thank you for pointing out that this only applies to
SMP-machines. I suspected this, but since we only run SMP, I haven't had the
possibility of verifying it.
Please note that the problem persists _even with_ the CVS versions that has
Rasmus latest fix to max_execution_time. We currently use CVS-19991206.
After Rasmus made the fix things have been a lot better, but crasches still
occur.
=== Backtrace and configuration: ===
Core was generated by `/usr/local/apache/bin/httpd -DSSL'.
Program terminated with signal 11, Segmentation fault.
Cannot access memory at address 0x40007138.
#0 0x80cc91e in sapi_apache_send_headers (sapi_headers=Cannot access memory
at address 0xbffff0c8.
) at mod_php4.c:207
207 ((request_rec *) SG(server_context))->status =
SG(sapi_headers).http_response_code;
(gdb) bt
#0 0x80cc91e in sapi_apache_send_headers (sapi_headers=Cannot access memory
at address 0xbffff0c8.
) at mod_php4.c:207
Cannot access memory at address 0xbffff0c0.
PHP configuration:
CFLAGS='-I../openssl-0.9.4/include' \
./configure \
--with-apache=../apache_1.3.9 \
--with-mysql=/usr/local \
--with-gd=/usr/lib \
--enable-memory-limit=yes \
--enable-track-vars
/Johan Ekenberg