[php-maint] Bug#827370: Bug#827370: php5-common: mail clutter from sessionclean cronjob

Ondřej Surý ondrej at sury.org
Wed Jun 15 14:23:15 UTC 2016


Hi Daniel,

could you please apply this patch:

$ git diff
diff --git a/debian/sessionclean b/debian/sessionclean
index 237b033..816528a 100644
--- a/debian/sessionclean
+++ b/debian/sessionclean
@@ -22,7 +22,7 @@ while IFS=: read -r conf_dir proc_name; do
 done
 # first find all open session files and touch them (hope it's not
 massive amount of files)
 for pid in $(pidof $proc_names); do
-    find "/proc/$pid/fd" -ignore_readdir_race -lname
"$save_path/sess_\*" -exec touch -c {} \;
+    if [ -d "/proc/$pid/fd" ]; then find "/proc/$pid/fd"
-ignore_readdir_race -lname "$save_path/sess_\*" -exec touch -c {} \;;
fi
 done
 } ) | sort -rn -t: -k2,2 | sort -u -t: -k 1,1 | while IFS=: read -r
 save_path gc_maxlifetime; do
     # find all files older then maxlifetime and delete them

This won't eliminate all the race conditions (as the PID might shutdown
between test -d and find run), but it should eliminate most of them.

Most probably you haven't seen this messages as the sessionclean script
was not touching any of those files at all, see #799155. So while it's
not regression per se, because the sessionclean script was broken
before.

Cheers,
-- 
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
fast DNS(SEC) resolver
Vše pro chleba (https://vseprochleba.cz) – Potřeby pro pečení chleba
všeho druhu

On Wed, Jun 15, 2016, at 14:20, Daniel Reichelt wrote:
> Package: php5-common
> Version: 5.6.22+dfsg-0+deb8u1
> Severity: normal
> 
> Hi,
> 
> since the most recent security upgrade, I keep receiving cronjob mails
> saying
> 
> --------8<---------
> find: `/proc/14918/fd': No such file or directory
> --------8<---------
> 
> The count of these entries variies of course, and whether or not that
> race-conditions triggers depends on the server load. At least during
> daytime
> it's pretty constant - and annoying...
> 
> 
> 
> Thanks
> Daniel
> 
> 
> --------8<---------
> 
> -- Package-specific info:
> ==== Additional PHP 5 information ====
> 
> ++++ PHP 5 SAPI (php5query -S): ++++
> cli
> cgi
> apache2
> 
> ++++ PHP 5 Extensions (php5query -M -v): ++++
> mysqlnd (Enabled for cli by maintainer script)
> mysqlnd (Enabled for cgi by maintainer script)
> mysqlnd (Enabled for apache2 by maintainer script)
> apcu (Enabled for cli by maintainer script)
> apcu (Enabled for cgi by maintainer script)
> apcu (Enabled for apache2 by maintainer script)
> mysql (Enabled for cli by maintainer script)
> mysql (Enabled for cgi by maintainer script)
> mysql (Enabled for apache2 by maintainer script)
> pdo (Enabled for cli by maintainer script)
> pdo (Enabled for cgi by maintainer script)
> pdo (Enabled for apache2 by maintainer script)
> pspell (Enabled for cli by maintainer script)
> pspell (Enabled for cgi by maintainer script)
> pspell (Enabled for apache2 by maintainer script)
> json (Enabled for cli by maintainer script)
> json (Enabled for cgi by maintainer script)
> json (Enabled for apache2 by maintainer script)
> mysqli (Enabled for cli by maintainer script)
> mysqli (Enabled for cgi by maintainer script)
> mysqli (Enabled for apache2 by maintainer script)
> gd (Enabled for cli by maintainer script)
> gd (Enabled for cgi by maintainer script)
> gd (Enabled for apache2 by maintainer script)
> opcache (Enabled for cli by maintainer script)
> opcache (Enabled for cgi by maintainer script)
> opcache (Enabled for apache2 by maintainer script)
> curl (Enabled for cli by maintainer script)
> curl (Enabled for cgi by maintainer script)
> curl (Enabled for apache2 by maintainer script)
> mcrypt (Enabled for cli by maintainer script)
> mcrypt (Enabled for cgi by maintainer script)
> mcrypt (Enabled for apache2 by maintainer script)
> pdo_mysql (Enabled for cli by maintainer script)
> pdo_mysql (Enabled for cgi by maintainer script)
> pdo_mysql (Enabled for apache2 by maintainer script)
> intl (Enabled for cli by maintainer script)
> intl (Enabled for cgi by maintainer script)
> intl (Enabled for apache2 by maintainer script)
> 
> ++++ Configuration files: ++++
> **** /etc/php5/mods-available/pdo.ini ****
> extension=pdo.so
> 
> **** /etc/php5/mods-available/opcache.ini ****
> zend_extension=opcache.so
> 
> 
> -- System Information:
> Debian Release: 8.5
>   APT prefers stable
>   APT policy: (990, 'stable'), (500, 'stable-updates'), (500,
>   'proposed-updates')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.16.0-4-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
> Init: sysvinit (via /sbin/init)
> 
> Versions of packages php5-common depends on:
> ii  libc6   2.19-18+deb8u4
> ii  lsof    4.86+dfsg-1
> ii  psmisc  22.21-2
> ii  sed     4.2.2-4+b1
> ii  ucf     3.0030
> 
> php5-common recommends no packages.
> 
> Versions of packages php5-common suggests:
> ii  php5-apcu [php5-user-cache]  4.0.7-1
> 
> Versions of packages php5-cli depends on:
> ii  libbz2-1.0        1.0.6-7+b3
> ii  libc6             2.19-18+deb8u4
> ii  libcomerr2        1.42.12-1.1
> ii  libdb5.3          5.3.28-9
> ii  libedit2          3.1-20140620-2
> ii  libgssapi-krb5-2  1.12.1+dfsg-19+deb8u2
> ii  libk5crypto3      1.12.1+dfsg-19+deb8u2
> ii  libkrb5-3         1.12.1+dfsg-19+deb8u2
> ii  libmagic1         1:5.22+15-2+deb8u1
> ii  libonig2          5.9.5-3.2
> ii  libpcre3          2:8.35-3.3+deb8u4
> ii  libqdbm14         1.8.78-5+b1
> ii  libssl1.0.0       1.0.1t-1+deb8u2
> ii  libxml2           2.9.1+dfsg1-5+deb8u2
> ii  mime-support      3.58
> ii  php5-json         1.3.6-1
> ii  tzdata            2016d-0+deb8u1
> ii  ucf               3.0030
> ii  zlib1g            1:1.2.8.dfsg-2+b1
> 
> Versions of packages php5-cli recommends:
> pn  php5-readline  <none>
> 
> Versions of packages php5-cli suggests:
> ii  php-pear  5.6.22+dfsg-0+deb8u1
> 
> Versions of packages libapache2-mod-php5 depends on:
> ii  apache2                             2.4.10-10+deb8u4
> ii  apache2-bin [apache2-api-20120211]  2.4.10-10+deb8u4
> ii  libbz2-1.0                          1.0.6-7+b3
> ii  libc6                               2.19-18+deb8u4
> ii  libcomerr2                          1.42.12-1.1
> ii  libdb5.3                            5.3.28-9
> ii  libgssapi-krb5-2                    1.12.1+dfsg-19+deb8u2
> ii  libk5crypto3                        1.12.1+dfsg-19+deb8u2
> ii  libkrb5-3                           1.12.1+dfsg-19+deb8u2
> ii  libmagic1                           1:5.22+15-2+deb8u1
> ii  libonig2                            5.9.5-3.2
> ii  libpcre3                            2:8.35-3.3+deb8u4
> ii  libqdbm14                           1.8.78-5+b1
> ii  libssl1.0.0                         1.0.1t-1+deb8u2
> ii  libstdc++6                          4.9.2-10
> ii  libxml2                             2.9.1+dfsg1-5+deb8u2
> ii  mime-support                        3.58
> ii  php5-cli                            5.6.22+dfsg-0+deb8u1
> ii  php5-json                           1.3.6-1
> ii  tzdata                              2016d-0+deb8u1
> ii  ucf                                 3.0030
> ii  zlib1g                              1:1.2.8.dfsg-2+b1
> 
> Versions of packages libapache2-mod-php5 suggests:
> ii  php-pear  5.6.22+dfsg-0+deb8u1
> 
> Versions of packages php5-cgi depends on:
> ii  libbz2-1.0        1.0.6-7+b3
> ii  libc6             2.19-18+deb8u4
> ii  libcomerr2        1.42.12-1.1
> ii  libdb5.3          5.3.28-9
> ii  libgssapi-krb5-2  1.12.1+dfsg-19+deb8u2
> ii  libk5crypto3      1.12.1+dfsg-19+deb8u2
> ii  libkrb5-3         1.12.1+dfsg-19+deb8u2
> ii  libmagic1         1:5.22+15-2+deb8u1
> ii  libonig2          5.9.5-3.2
> ii  libpcre3          2:8.35-3.3+deb8u4
> ii  libqdbm14         1.8.78-5+b1
> ii  libssl1.0.0       1.0.1t-1+deb8u2
> ii  libxml2           2.9.1+dfsg1-5+deb8u2
> ii  mime-support      3.58
> ii  php5-cli          5.6.22+dfsg-0+deb8u1
> ii  php5-json         1.3.6-1
> ii  tzdata            2016d-0+deb8u1
> ii  ucf               3.0030
> ii  zlib1g            1:1.2.8.dfsg-2+b1
> 
> Versions of packages php5-cgi suggests:
> ii  php-pear  5.6.22+dfsg-0+deb8u1
> 
> -- no debconf information
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



More information about the pkg-php-maint mailing list