Re: mod_perl, SVN::Core-related segfault condition

[prev] [thread] [next] [Date index for 2004/11/23]

From: Stas Bekman
Subject: Re: mod_perl, SVN::Core-related segfault condition
Date: 20:02 on 23 Nov 2004
Dorian Taylor wrote:

>>>i suspect though that anything trying to directly call apr_terminate()
>>
>>>from an END block would do the same. the debugger gets all fuzzy
>>
>>>when it gets into there though.
>>
>>Yeah, sounds like a design problem.
> 
> 
> what exactly is required from mod_perl in the preflight config
> stage? does it basically just `use' every preloaded module in the
> conf to see if it can?

I'm not sure what do you ask. I meant apr design problem, not modperl's 
one. mod_perl does not init apr, httpd does.

BTW, I think you may have the same problem with mod_cgi. I'm not sure 
whether apr_terminate is called on child process shutdown.

>>Are you in rush to get this fixed? Or can I try to finish a few other 
>>things first (though not urgent).
> 
> 
> a bit of one. i'm basically doing a kind of a reimplementation of
> mod_negotiation, mod_dir and mod_mime (plus a couple other things)
> to work on svn repositories. those modules interface directly with
> the filesystem, so i need to provide a different method for emulating
> various features of the filesystem. i wanted to do them up in
> mod_perl with SVN::Core.

OK, so post that XS module that reproduces the problem and I'll see if 
something can be done.

>>If you have an XS module that doesn't depend on SVN that would be handy too.
> 
> 
> yeah, that's what i'm going to be working on. just basically BEGIN
> { apr_initialize() } END { apr_terminate() }, in xs. i bet it'll
> do the same thing.

It depends on how it is implemented. The fix should be most likely in the 
SVN module. It should detect that it's running under Apache or APR 
environment and in which case not run the shutdown of apr environment. And 
this solution will be transparent to mod_perl.


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

mod_perl, SVN::Core-related segfault condition
Dorian Taylor 19:58 on 22 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Dorian Taylor 19:51 on 23 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Stas Bekman 20:02 on 23 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Dorian Taylor 20:40 on 23 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Dorian Taylor 20:41 on 23 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Dorian Taylor 22:08 on 23 Nov 2004

Re: mod_perl, SVN::Core-related segfault condition
Dorian Taylor 17:31 on 24 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52