Mr. Engelschall,

> > Full_Name: Erik Horstkotte
> > Version: 2.6.4-1.3.12
> > OS: Solaris 2.7
> > Submission from: (NULL) (209.80.49.145)
> > 
> > The EAPI patches make a single insertion in the routine
> > internal_internal_redirect in http_request.c. As shipped, the lines
> > are inserted just before the call to ap_table_setn. They need to be
> > moved to near the top of the routine, before the call to ap_parse_uri,
> > or a segmentation fault will occur inside that routine if an internal
> > redirection is performed by another module.
> 
> Hmmm... can you show me _where_ in ap_parse_uri() is segfaults and can you
> additionally explain why it segfaults there? From a quick look into both
> functions I still cannot see why a still not initialized r->ctx of EAPI should
> cause a segfault while the URL is parsed into pieces.

Here's the backtrace at the SIGSEGV:

#0  0x555f8 in ap_ctx_get ()
#1  0x346f4 in ap_parse_uri ()
#2  0x3d230 in internal_internal_redirect ()
#3  0x3d4a8 in ap_internal_redirect ()
#4  0xfed446c8 in HandleTransaction () from /opt/apache/libexec/mod_webreach.so
#5  0xfed44d2c in HandleTrack () from /opt/apache/libexec/mod_webreach.so
#6  0x200e4 in ap_invoke_handler ()
#7  0x3cf88 in process_request_internal ()
#8  0x3d00c in ap_process_request ()
#9  0x309a8 in child_main ()
#10 0x30d5c in make_child ()
#11 0x312d4 in perform_idle_server_maintenance ()
#12 0x31b38 in standalone_main ()
#13 0x32484 in main ()

As you can see, I'm running (actually developing) an Apache module called
mod_webreach that performs internal redirections under some circumstances.
The segfault happens whenever my module calls ap_internal_redirect.

-- Erik


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to