Anthony Hinsinger wrote:
Hello,

i'm currently writing a mod_perl authentification handler, and i want to add apache custom directives. I followed techniques explained in the mod_perl cookbook (http://www.modperlcookbook.org/chapters/ch07.pdf) using Apache::Extutils::command_table() to add 2 directives (req_override set to OR_AUTHCFG).

I use PerlModule into main httpd.conf to load my module, and i can successfully see it as a "C" module defining two directives with mod_info.

But i've a problem :
if i define directives into httpd.conf (in <Directory> or <Location> blocks) no problem, it works perfectly and i can retrieve directives values using Apache::ModuleConfig->get($r, __PACKAGE__);
But if i define directives in a .htaccess file, apache crash with this log added for each request :


[Mon May 3 16:12:39 2004] [notice] child pid 31813 exit signal Segmentation fault (11)

I don't know when apache crash exactly, because for example my authentification handler works, and i retrieve directives values. I think it crash when it send content.

Not volunteering to figure out what's wrong with it, but I can help you figure out where it crashes. You either need to run the server under gdb, or configure your system to allow a core dump. Either way you should get a backtrace of the calls which will hopefully show what's wrong. More details can be found here:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
and more extensively in the 2.0 docs:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_Files


BTW, in mod_perl 2, adding your own directives is a piece of cake since it's done in pure perl and requires no compilation:
http://perl.apache.org/docs/2.0/user/config/custom.html


--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] 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



Reply via email to