Fwd: Re: apr / freebsd

krichy at cflinux.hu krichy at cflinux.hu
Thu Jan 2 14:46:53 UTC 2014

Dear apache maintainers,

I've found an issue with mod_fcgid on FreeBSD 9. I had /tmp cleaning 
enabled in my box, and mod_fcgid had chosen a lockfile under /tmp, which 
after some time was removed,
and the whole httpd process stopped working from that time. I made some 
tests, and found that SYSV serialization could also be used, does not 
need a temp file, and avoids this issue.

Now I worked around with my local /etc/make.conf as this:

# devel/apr1
.if ${.CURDIR:M*ports/devel/apr1}

But maybe this could be applied to the port globally. Or any other 


-------- Eredeti üzenet --------
Tárgy: Re: apr / freebsd
Dátum: 2013-11-24 20:45
Feladó: Richard Kojedzinszky <krichy at cflinux.hu>
Címzett: Greg Ames <gregames at apache.org>
Másolat: Jeff Trawick <trawick at gmail.com>, dev <dev at apr.apache.org>

Dear Greg,

Thanks for your efforts.


Kojedzinszky Richard

On Sun, 24 Nov 2013, Greg Ames wrote:

> Hi Richard,
> I retired from IBM last Jan, but still lurk on some of the apr/httpd 
> mailing lists even though I haven't contributed any code in a long 
> time.
> Back when we came up with those lock hints, our priorities were
> 1. reliability,
> 2. simplicity for users (i.e. idiot proof), and
> 3. performance.
> I know FreeBSD has matured in the last decade, so I wouldn't be 
> surprised if the best default is different today. 
> re mod_fcgid: I haven't contributed anything to it, other than 
> enthusiastic support of the concept.  I've cc'd people who are more 
> actively involved with apr and mod_fcgid.
> Best regards,
> Greg Ames
> on a sailboat anchored in the Sea of Abaco, Bahamas :-) looking at a 
> red sunrise and Barometer Bob's forecast of an approaching cold front 
> plus 25-35 knot winds tonight :( 
> On Nov 20, 2013 3:50 AM, "Richard Kojedzinszky" <krichy at cflinux.hu> 
> wrote:
>       Dear Greg,
>       I've found your name in a commit in apr sources, specially in 
> build/apr_hints.m4. You've set apr_lock_method to FLOCK for FreeBSD 
> systems, but that was more than
>       ten years ago. I am courious about that hint is still needed or 
> not, but how I get there is a strange way:
>       I've set up apache2.2 and mod_fcgid, and as this lock method is 
> forced, mod_fcgid creates temp lock files in /tmp, and my regular /tmp 
> cleaning process
>       unfortunately removes that files after some days. And this 
> effectively stops apache from working.
>       So please review that decision, is that hint still needed in 
> FreeBSD systems or not.
>       Thanks in advance,
>       Kojedzinszky Richard

More information about the freebsd-apache mailing list