Bug#682264: #682264,libapache2-mod-perl2: Crash at server startup when pre-loading Plack app

2018-04-11 Thread Dominic Hargreaves
On Fri, Sep 01, 2017 at 10:33:38AM +0100, Dominic Hargreaves wrote:
> On Fri, Sep 01, 2017 at 03:47:57PM +1000, Dmitry Smirnov wrote:
> > I had the same problem until I've realised that Apache now uses event module
> > by default. Solution is simple -- just switch to (traditional) MPM Prefork
> > model as follows:
> > 
> > 
> > a2dismod mpm_event
> > a2enmod mpm_prefork
> > 
> 
> Hi Dmitry,
> 
> Thanks for pointing this out. And to the original submitter, I'm sorry
> that there was no reply on this bug before in many years!
> 
> As far as I know from a quick bit of digging it is indeed the case
> that mod_perl will not work with the event mpm, so we should
> arrange for it to either not be possible to load it it in that
> configuration, or at least to print dire warnings if that happens
> (which may be safer in any case).
> 
> I will try and have a look at this at some point but it might not be
> soon, so help would be appreciated.
> 
> FTR, Red Hat does the same thing:
> .

I asked Jan Kaluza (the Redhat contact) if the Redhat fix could be
shared, as I couldn't find that change anywhere online. No response
yet. Maybe someone more familiar with the Redhat ecosystem could dig it up?

Cheers,
Dominic.



Bug#682264: #682264,libapache2-mod-perl2: Crash at server startup when pre-loading Plack app

2017-09-01 Thread Kjetil Kjernsmo
On Friday, 1 September 2017 10:33:38 CEST Dominic Hargreaves wrote:
> Kjetil, do you have any additional observations about this bug since
> it was first filed in 2012? (For example did you find out that it
> was in fact caused by use of the event mpm?)

To be honest, I don't remember anything about it...  I probably just 
switched to prefork too. Nowadays, I run my stuff with uwsgi and ngnix.

I feel there are many things that have improved when considering automating 
installation and configuration with uwsgi, so from my perspective just an  
improved error message would be the right approach.

Best,

Kjetil



Bug#682264: #682264,libapache2-mod-perl2: Crash at server startup when pre-loading Plack app

2017-09-01 Thread Dominic Hargreaves
On Fri, Sep 01, 2017 at 03:47:57PM +1000, Dmitry Smirnov wrote:
> I had the same problem until I've realised that Apache now uses event module
> by default. Solution is simple -- just switch to (traditional) MPM Prefork
> model as follows:
> 
> 
> a2dismod mpm_event
> a2enmod mpm_prefork
> 

Hi Dmitry,

Thanks for pointing this out. And to the original submitter, I'm sorry
that there was no reply on this bug before in many years!

As far as I know from a quick bit of digging it is indeed the case
that mod_perl will not work with the event mpm, so we should
arrange for it to either not be possible to load it it in that
configuration, or at least to print dire warnings if that happens
(which may be safer in any case).

I will try and have a look at this at some point but it might not be
soon, so help would be appreciated.

FTR, Red Hat does the same thing:
.

Kjetil, do you have any additional observations about this bug since
it was first filed in 2012? (For example did you find out that it
was in fact caused by use of the event mpm?)

.

Best,
Dominic. 



Bug#682264: #682264,libapache2-mod-perl2: Crash at server startup when pre-loading Plack app

2017-09-01 Thread Dmitry Smirnov
I had the same problem until I've realised that Apache now uses event 
module by default. Solution is simple -- just switch to (traditional) 
MPM Prefork model as follows:



a2dismod mpm_event
a2enmod mpm_prefork


--
All the best,
 Dmitry Smirnov