You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeroen Massar <je...@unfix.org> on 2005/05/22 22:02:43 UTC

endless loop trying to create ssl_scache (2.0.54)

Hi,

I had just killed off my apache2 and tried to restart it when the
following kept apache running at ~100% cpu usage, trying to create the
file but failing. Attaching a strace resulted in an endless loop of:

stat64("/var/run/apache2/ssl_scache", 0xbffff8a0) = -1 ENOENT (No such
file or directory)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)
open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
O_LARGEFILE, 0644) = -1 EEXIST (File exists)

Removing the files from /var/run/apache2/ resolved the issue and apache
is happily serving again :)

Could it be a locking issue? (O_EXCL)

IMHO it should simply abort after trying the above for n (say 50?) times
and at least log it then.

Greets,
 Jeroen

--

related version info:
ii  apache2-common              2.0.54-4                    next
generation, scalable, extendable web server
ii  apache2-mpm-prefork         2.0.54-4                    traditional
model for Apache2
ii  apache2-utils               2.0.54-4                    utility
programs for webservers
ii  libapache2-mod-php4         4.3.10-15                   server-side,
HTML-embedded scripting language (apache 2.0 module)


Re: endless loop trying to create ssl_scache (2.0.54)

Posted by Olaf van der Spek <ol...@gmail.com>.
On 5/22/05, Jeroen Massar <je...@unfix.org> wrote:
> stat64("/var/run/apache2/ssl_scache", 0xbffff8a0) = -1 ENOENT (No such
> file or directory)
> open("/var/run/apache2/__db.ssl_scache", O_RDWR|O_CREAT|O_EXCL|
> O_LARGEFILE, 0644) = -1 EEXIST (File exists)

/var/run/apache2/ssl_scache
/var/run/apache2/__db.ssl_scache

Why do those two differ?