httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@en.muc.de>
Subject Re: module status
Date Sun, 04 Aug 1996 10:04:19 GMT
On 4 Aug 1996 03:07:07 +0200 in en.lists.apache-new-httpd you wrote:
> On Sat, 3 Aug 1996, Ralf S. Engelschall wrote:

> [...]

> > 1. Due to the change "never change r->uri" there is a difficult
> >    problem inside Apache 1.1.1: It dumps core under a _very special_
> >    situation. Have a look at the following two rules:
> > 
> >    RewriteRule ^/[uge]/([^/]+)/\.www/(.+)\.scgi(.*)  ...
> >                ...  /internal/cgi/user/cgiwrap/~$1/$2.scgi$3  [NS]
> >    RewriteRule ^/[uge]/([^/]+)/\.www/(.+)\.phtml(.*) ...
> >                ...  /internal/cgi/user/eperl/u/$1/.www/$2.phtml$3  [NS]

> [...]

> >    When I reference /u/rse/abc/index.scgi directly it works.
> >    When I reference /u/rse/abc/ and there is the index.scgi it works.
> >    When I reference /u/rse/abc/index.phtml directly it works.
> >    When I reference /u/rse/abc/ and there is the index.phtml it dumps core.

> This may be related to the SCRIPT_NAME problem that was reported a week or
> so ago. Here's something you might check: See what the value of
> path_info_start is at line 215 of util_script.c (in add_cgi_vars()). I
> have a feeling it might be negative. If so, it's a problem with the core
> code, don't worry about it, hopefully we'll fix it.

YES! Correct! Good hint! It is actually -5 in the above case! But the core
dump occurs not at this point. It occurs later:

:> asr /v/sw/gnu/bin/gdb ./httpd
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
 There is absolutely no warranty for GDB; type "show warranty" for details.
 GDB 4.15.1 (i386-unknown-freebsd), Copyright (c) Ralf S. Engelschall, All
 Rights Reserved. 1995 Free Software Foundation, Inc...
 (gdb) run -X
 Starting program:
 /am/en1/v/dsk/3/g/sw/free/PKG/infosys/www/apache/dist/apache/src/./httpd -X
 C1
 B1
 1a
 1b
 1a
 1b
 1a
 2:</u/rse/y/index.phtml>
 2b
 4
 B1
 ok
 path_info_start=-5
 B2
 4b
 2c
 B2
 C2
 C3
 C4
 C5

The various lines are fprintf's at varous points. After C5 it dumps core, but
as you can see, my gdb (4.15.1) does not catch the core dump. C5 is at the
end of process_request() in http_request, just after the call to
update_child_status() and before return.

Hmmm.. ok, I will ignore this problem because it seems not mod_rewrite
related. I will continue to port to new snapshots.

Greetings,
                                        Ralf S. Engelschall    
                                        rse@engelschall.com
                                        http://www.engelschall.com/~rse

Mime
View raw message