Re: mod_perl-2.0.5 -- nullpointer patch

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wednesday, 22 February 2012 16:13:19 [email protected] wrote:
> My fix:
> cd mod_perl-2.0.5/src/modules/perl
> vi modperl_pcw.c # ap_pcw_walk_files_config
> 
>     if (0 == dconf->sec_file) { // nullpointer fix
>         return;
>     }
> 
> 
> Now the daemon seems to work, but I do not know, why this happens.

I have seen that while working on the 2.4 port of modperl. In the httpd24 
branch each of ap_pcw_walk_location_config, ap_pcw_walk_directory_config and 
ap_pcw_walk_files_config are instrumented with

  if( !sconf->sec_XXX ) return;

before doing anything (where XXX is one of url, dir or file).

Would be interesting to see the configuration that triggers it. Can you 
provide an as much as possible stripped down configuration that exposes the 
bug?

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.