[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Instability at startup for Apache2/mod_perl2 using worker MPM
From:       Robert Landrum <rlandrum () aol ! net>
Date:       2006-11-30 23:47:45
Message-ID: 456F6DA1.8070101 () aol ! net
[Download RAW message or body]

Perrin Harkins wrote:
> David Scott wrote:
>> I've built Apache 2.2.3 and mod_perl 2.0.3 with libapreq 2.08 and the 
>> worker MPM.  There appears to be some kind of race condition at 
>> startup that prevents the server from coming up.  This only happens 
>> once in a while, and can be fixed by some minor configuration or code 
>> change (ie, adding a 'print STDERR "foobar\n"' to one of my Perl 
>> modules can cause the problem to occur; moving the print statement by 
>> one line can fix it).
> 
> This sounds like a possible issue with your code and threaded perl.  It 
> doesn't ring a bell as a general mod_perl issue.
> 

Interesting problem.  I remember reading about an issue with threading 
(not specific to apache or mod_perl) that occured when file descriptors 
were being modified while there were contents in the buffer.

Just for giggles, try

{
local $|=1;
use MyModules;
...
}

Rob
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic