www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Emmerton <memme...@undergrad.math.uwaterloo.ca>
Subject mod_rewrite/1391: mod_rewrite tries to perform file locking on a pipe
Date Tue, 11 Nov 1997 00:56:40 GMT

>Number:         1391
>Category:       mod_rewrite
>Synopsis:       mod_rewrite tries to perform file locking on a pipe
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Nov 10 17:00:00 PST 1997
>Originator:     memmerto@undergrad.math.uwaterloo.ca
>Release:        post 1.2b6
SCO OpenServer 5.0.0 and 5.0.2
Under SCO OpenServer 5.0.0 and 5.0.2, using fcntl() to lock a pipe is illegal.

This results in an error 22 (EINVAL) when mod_rewrite tries to lock the pipe when fd_lock()
is called from lookup_map_program() (which uses unnamed pipes to the lookup process).

When this occurs, the lock isn't created, and the child process of Apache immediately terminates,
which causes a host of client errors (conenction unexpectdly terminated, unknown response,

This bug is documented at SCO's website:

Get a SCO 5.0.0 or 5.0.2 box, create a simple shell script to perform some task of a rewrite
operation, and watch it provide you with various client errors.

(I've fixed my servers, but I can break one if you want a demonstration.)
If you're running SCO ODT 5.0.0 or 5.0.2, simply add this to mod_rewrite.h
(I guess SCO is as braindead as Sun sometimes... <g>)

#ifdef SCO5

View raw message