mod_perl-2.0.5 -- nullpointer patch

<[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <28C10D22E644C84AB27BCF443218045A31BFDC38C6@HE111523.emea1.cds.t-internal.com>
Hello,

I got a nullpointer from mod_perl2 on a solaris x86 machine in:

#0  0xfca42b00 in ap_pcw_walk_files_config () from /opt/ae/modules/mod_perl.so
#1  0xfca42c9e in ap_pcw_walk_config () from /opt/ae/modules/mod_perl.so
#2  0xfca4294a in modperl_mgv_hash_handlers () from /opt/ae/modules/mod_perl.so
#3  0xfca39029 in modperl_hook_post_config_last () from /opt/ae/modules/mod_perl.so
#4  0x080a2034 in ap_run_post_config (pconf=0x8215970, plog=0x8253a68, ptemp=0x8255a70, s=0x821f5d0) at config.c:91
#5  0x08091ec2 in main (argc=3, argv=0x8047bfc) at main.c:679


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.


Greetings,
Alexander Elgert

--
Deutsche Telekom AG
Seamless ICT Security Infrastructure & Management
im Auftrag T-Systems International GmbH
Dipl. Inf Alexander Elgert
Langwadener Strasse 17
64625 Bensheim
+49 176 22 717 661 (Mobil)
+49 671 83419-12 (Tel)
+49 671 83419-30 (Fax)
E-Mail: [email protected]
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.