>Number: 2483
>Category: mod_rewrite
>Synopsis: using a RewriteMap prg directive results in apache fault when
>trying to activate the child program
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Jun 22 04:30:01 PDT 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.0
>Environment:
Windows NT 4.0 SP3, Visual C++ 5.0, found also in the binary distribution
>Description:
even after installing the patch for mod rewrite, the activation of the child
program is incorrect. in particular:
rewritemap_program_child is called as
pid = (*func) (data, NULL); // alloc.c line 1879
that causes a fault in
si.hStdInput = pinfo->hPipeInputRead; // mod_rewrite.c line 3204
>How-To-Repeat:
>Fix:
The following fix allow the server to start correctly, and the external filter
works OK
alloc.c:
line 1853, add:
child_info info;
line 1879, add:
info.hPipeInputRead = GetStdHandle(STD_INPUT_HANDLE);
info.hPipeOutputWrite = GetStdHandle(STD_OUTPUT_HANDLE);
info.hPipeErrorWrite = GetStdHandle(STD_ERROR_HANDLE);
and replace the call with:
pid = (*func) (data, &info);
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]