Bug#720127: [php-maint] Bug#720127: php5: Maximum execution time exceeded immediately...
Hi Peter, could you try that with some simple script? O. On Mon, Aug 19, 2013 at 2:04 AM, Peter Chubb peter.ch...@nicta.com.auwrote: Package: php5 Version: 5.5.1+dfsg-2 Severity: normal Dear Maintainer, php5 seems to throw a maximum execution time exceeded immediately. I see this on owncloud and ampache. I've set the default timeout to 3600 (1 hour), but the error that time limit is exceeded comes almost immediately. Here's an example backtrace with timestamps. By my reading that's about a tenth of a second before the excepton is thrown. If I up the timelimit to 10 hours, the process succeeds. ( ! ) Fatal error: Maximum execution time of 3600 seconds exceeded in /usr/share/php/php-gettext/streams.php on line 113 Call Stack # TimeMemory FunctionLocation 1 0.0004 229952 {main}( ) ../login.php:0 2 0.0565 1471984 require( '/usr/share/ampache/www/templates/show_login_form.inc.php' ) ../login.php:176 3 0.0570 1472488 T_( ) ../show_login_form.inc.php:66 4 0.0570 1472520 __( ) ../gettext.inc:406 5 0.0570 1472568 _gettext( ) ../gettext.inc:285 6 0.0580 1483624 gettext_reader-translate( )../gettext.inc:278 7 0.0580 1484208 gettext_reader-load_tables( ) ../gettext.php:254 8 0.1082 1986656 FileReader-read( ) ../gettext.php:161 -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.10.0-rc4+ (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages php5 depends on: ii libapache2-mod-php5 5.5.1+dfsg-2 ii php5-common 5.5.1+dfsg-2 php5 recommends no packages. php5 suggests no packages. -- no debconf information ___ pkg-php-maint mailing list pkg-php-ma...@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint -- Ondřej Surý ond...@sury.org
Bug#720127: [php-maint] Bug#720127: php5: Maximum execution time exceeded immediately...
Ondřej == Ondřej Surý ond...@debian.org writes: Ondřej could you try that with some simple script? Simple scripts don't seem to show the problem. I see it on Owncloud and on Ampache. My *guess* as to what's happening is that there's some other timeout using SIGPROF, that triggers the Execution Time Exceeded message. Try this: ?php date_default_timezone_set('UTC'); @set_time_limit(3600); @ini_set('max_execution_time', 3600); @ini_set('max_input_time', -1); while (1) { echo date(DATE_RFC822) ; echo \n; } ? The output I see is: Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + Tue, 20 Aug 13 10:27:04 + PHP Fatal error: Maximum execution time of 3600 seconds exceeded in /home/peterc/xxx.php on line 7 PHP Stack trace: PHP 1. {main}() /home/peterc/xxx.php:0 PHP 2. date() /home/peterc/xxx.php:7 -- Peter C -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#720127: [php-maint] Bug#720127: php5: Maximum execution time exceeded immediately...
Peter == Peter Chubb peter.ch...@nicta.com.au writes: Ondřej == Ondřej Surý ond...@debian.org writes: Ondřej could you try that with some simple script? Actually here's an even simpler script: ?php @set_time_limit(3600); @ini_set('max_execution_time', 3600); while (1) { echo date(DATE_RFC822) ; echo \n; } ? I find this behaves correctly on some machines. but not the one running my webserver :-( -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#720127: [php-maint] Bug#720127: php5: Maximum execution time exceeded immediately...
I saw you are using: Kernel: Linux 3.10.0-rc4+ (SMP w/2 CPU cores) Could you try with prepackaged kernel (or even just some non-rc)? O. On Tue, Aug 20, 2013 at 12:41 PM, pe...@chubb.wattle.id.au wrote: Peter == Peter Chubb peter.ch...@nicta.com.au writes: Ondřej == Ondřej Surý ond...@debian.org writes: Ondřej could you try that with some simple script? Actually here's an even simpler script: ?php @set_time_limit(3600); @ini_set('max_execution_time', 3600); while (1) { echo date(DATE_RFC822) ; echo \n; } ? I find this behaves correctly on some machines. but not the one running my webserver :-( -- Ondřej Surý ond...@sury.org