I am wondering who out there may be running a configuration similar to
the following:

 Apache/1.3.12 (Unix) mod_ssl/2.6.4 OpenSSL/0.9.4 mod_perl/1.24

And dynamically loading

 mod_php3 3.0.16

Everything works fine with this configuration until I enable a mod_perl
module that uses custom configuration directives. When I do that I
consistently get segfaults that manifest themselves in mod_php3 in the
send_php3 method:

   if(conf->charset) {
->      r->content_type = (char *)malloc(strlen(conf->charset)+19);
      strcpy((char *)r->content_type,"text/html;charset=");

the strlen causes the problem. Where conf comes from:

    get_module_config(r->per_dir_config, &php3_module);

The custom configuration directives are from AxKit. I simplified my
setup and built a simple test configuration that only has one
configuration directive and it does the same thing.

This happens only when both the mod_perl configuration directives and
mod_php3 are invoked within the same virtual host.

Any .php3 files in different virtual hosts (that do not have custom
directives) work fine.

Just wondering if anyone can confirm any of this. I have looked through
the list and cannot find any mention of anyone else having this problem.

Is it possible that building mod_perl and mod_php3 static into httpd
could solve the problem?

Any help or suggestions would be greatly appreciated.

-- 
Owen Stenseth ([EMAIL PROTECTED])

Reply via email to