>Number:         2474
>Category:       general
>Synopsis:       httpd failed to start
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jun 19 18:20:00 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3b6
>Environment:
FreeBSD -current cvsup'd 06/16/98
gcc 2.7.2.1
>Description:
When I tried to start httpd, I would get the following error:
[Wed Jun 17 05:06:14 1998] [emerg] (2)No such file or directory: Parent cannot o
pen lock file:

Then the program terminated.

I traced the problem to a boundary condition when creating the string for the 
name of the lock file "/var/run/httpd.lock.18254".  Instead of creating the 
name, a 0 byte string was returned.  This was a result of the ap_vformatter 
going past the end of the current vbuff.
>How-To-Repeat:
Not sure.  I modified my httpd.conf file to have a "recoverable" bug.  I gave a 
VirtualHost 2 copies of the same address.  This causes a log message which 
allocates a block in the pool then everything is fine.
>Fix:
Check the return value form the expand_lock_fname to verify a valid string has 
been returned.  Retry if it failed.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]



Reply via email to