Received: (qmail 76370 invoked by uid 501); 26 Nov 2001 00:03:22 -0000 Message-Id: <20011126000322.76369.qmail@apache.org> Date: 26 Nov 2001 00:03:22 -0000 From: A.Steinmetz Reply-To: ast@domdv.de To: submit@bugz.apache.org Subject: RewriteLock lock file gets deleted during web server restart X-Send-Pr-Version: 3.110 >Number: 8859 >Category: mod_rewrite >Synopsis: RewriteLock lock file gets deleted during web server restart >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Nov 25 16:10:00 PST 2001 >Closed-Date: >Last-Modified: Sun Nov 25 16:30:00 PST 2001 >Originator: ast@domdv.de >Release: 1.3.22 >Organization: apache >Environment: linux 2.4.x gcc 2.95.3 >Description: The rewritelock file of mod_rewrite, i.e. the file defined with the 'RewriteLock' directive does get deleted during a webserver restart, i.e. by issuing 'apachectl restart'. This leaves any server depending on the lock file in a not working state. Further inconsistencies may happen as the deleted lock file my still be opened by other web server processes. >How-To-Repeat: See above. >Fix: Do not delete the rewrite lock file during web server restarts. >Release-Note: >Audit-Trail: From: Andreas Steinmetz To: submit@bugz.apache.org Cc: Subject: Re: mod_rewrite/8859: RewriteLock lock file gets deleted during Date: Mon, 26 Nov 2001 01:23:05 +0100 (CET) Hint: This can be race condition where the lock file is deleted by rewritelock_remove of the old server instance after being created by the new server instance. The problem usually happens at log rotate time of a test system with the HD in standby mode at execution start and the webserver otherwise idle. As the lock file deletion problem is only reproducible from time to time this too points to a race condition. A simple fix could be to prevent lock file deletion in mod_rewrite.c, function rewritelock_remove(). At least this is what I will try. Andreas Steinmetz D.O.M. Datenverarbeitung GmbH >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]