Thanks Stas, i use gdb to trace to problem, and i get this when
requesting a location with a .htaccess contening my own directives (no
problem if directives are in httpd.conf).

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 28586)]
0x0807d141 in perl_section_hash_init ()
(gdb) bt
#0  0x0807d141 in perl_section_hash_init ()
#1  0x080765d4 in perl_cmd_perl_TAKE123 ()
#2  0x0807c98b in perl_cmd_perl_TAKE1 ()
#3  0x080b9fd9 in ap_clear_module_list ()
#4  0x080baa65 in ap_handle_command ()
#5  0x080baaf3 in ap_srm_command_loop ()
#6  0x080bb4a3 in ap_parse_htaccess ()
#7  0x080ce21f in ap_send_error_response ()
#8  0x080cf57c in ap_some_auth_required ()
#9  0x080cf955 in ap_process_request ()
#10 0x080c6302 in ap_child_terminate ()
#11 0x080c64b3 in ap_child_terminate ()
#12 0x080c663c in ap_child_terminate ()
#13 0x080c6d2c in ap_child_terminate ()
#14 0x080c75da in main ()

i also enable PERL_TRACE to 'all', and i get this at request time :

`PerlInitHandler' push_handlers() stack is empty
PerlInitHandler handlers returned -1
`PerlPostReadRequestHandler' push_handlers() stack is empty
PerlPostReadRequestHandler handlers returned -1
`PerlTransHandler' push_handlers() stack is empty
PerlTransHandler handlers returned -1
blessing cmd_parms=(0xbffffa30)
 

i hope it could help to resolve the problem.

Anthony


Le sam 08/05/2004 à 18:53, Stas Bekman a écrit :
> 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