Debian Bug report logs - #634864
php5-common: PHP cron job generates warnings due to race conditions

version graph

Package: php5-common; Maintainer for php5-common is (unknown);

Reported by: Jonathan Snell <jsnell-debian@e-normous.com>

Date: Wed, 20 Jul 2011 16:51:02 UTC

Severity: minor

Found in version php5/5.3.6-8

Fixed in version 5.4.0~rc7-2

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#634864; Package php5-common. (Wed, 20 Jul 2011 16:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Snell <jsnell-debian@e-normous.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 20 Jul 2011 16:51:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jonathan Snell <jsnell-debian@e-normous.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-common: PHP cron job generates warnings due to race conditions
Date: Wed, 20 Jul 2011 11:42:18 -0500
Package: php5-common
Version: 5.3.6-8
Severity: minor

I get many:
find: `/var/lib/php5/sess_00dd09ad86cf2bb7b601cabebd5191a6_form_4e12aa19b9fee': No such file or directory	

This can be easily fixed by adding:
-ignore_readdir_race to /etc/cron.d/php5 so it looks like:
09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-common depends on:
ii  libc6                         2.11.2-1   Embedded GNU C Library: Shared lib
ii  sed                           4.2-1      The GNU sed stream editor

Versions of packages php5-common recommends:
pn  php5-suhosin                  <none>     (no description available)

php5-common suggests no packages.

-- no debconf information




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Mon, 09 Apr 2012 08:39:08 GMT) (full text, mbox, link).


Notification sent to Jonathan Snell <jsnell-debian@e-normous.com>:
Bug acknowledged by developer. (Mon, 09 Apr 2012 08:39:08 GMT) (full text, mbox, link).


Message #10 received at 634864-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 634864-done@bugs.debian.org
Subject: Fixed in 5.4.0~rc7-2
Date: Mon, 9 Apr 2012 10:35:02 +0200
Version: 5.4.0~rc7-2

php5 (5.4.0~rc7-2) experimental; urgency=low

  * Use corrected module PHPAPI (20100525) and not (220100525)
  * Use $ZEND_MODULE_API_NO for $DEBIAN_PHP_API. Check for PHPAPI
    changes, so we don't become binary incompatible without knowing it.
  * Update debian/README.Debian.security:
    + register_globals was removed from PHP 5.4
    + Remove safe_mode (removed upstream) and update and reformat text
      slightly
    + Reviewed by english l10n team (thanks a lot)
  * php5-fpm now listen on socket instead of localhost by default
    (Closes: #650204)
  * Add NEWS about change of default location of php5-fpm socket
  * Stop php5-fpm on runlevels 0 1 6 (Closes: #650203)
  * Add -ignore_readdir_race to find call in session cleanup (#634864)
  * Don't prefix extension list automatically, it's done by subsvars now
    (Closes: #633491)
  * Depends on non-forking fuser in psmisc (Closes: #633100)
  * php5-common.README.Debian additions and cleanup:
    + Add a paragraph about PHP_INI_SCAN_DIR (Closes: #659123)
    + Reformat README.Debian to common formatting
    + Mention php5-fpm where appropriate
    + Use 'PHP 5' and 'Apache HTTP Server' instead of php5 and apache2

 -- Ondřej Surý <ondrej@debian.org>  Thu, 09 Feb 2012 00:03:26 +0100


-- 
Ondřej Surý <ondrej@sury.org>




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 08 May 2012 07:40:30 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 02:06:46 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.