Red Hat Bugzilla – Bug 990982
mod_rewrite problem - restarts Apache on Windows x86_64
Last modified: 2014-01-03 07:58:21 EST
Description of problem:
Its specific problem on Windows x86_64 architecture.
The same steps works fine on Windows i686.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create rewrite.conf in conf.d directory like this (there is a tabulator signbefore test):
<Directory "C:\Program Files\jboss-ews-2.0\var\www\html\rhts>
RewriteRule ^path(.*) "http://127.0.0.1/ test/"
2. create directory C:\Program Files\jboss-ews-2.0\var\www\html\rhts
3. start httpd
4. access url in browser: http://localhost/rhts/path
5. you will see "Connection was reset" and in apache error_log you see:
[notice] Parent: child process exited with status 255 -- Restarting.
It is <Directory "C:\Program Files\jboss-ews-2.0\var\www\html\rhts">
Created attachment 781540 [details]
Apache logs - debug mode
Created attachment 781578 [details]
Httpd backtrace from Win 2008R2 x86_64 attached.
Created attachment 781580 [details]
Created attachment 781602 [details]
error_log core modules
OK, so the problem disappears if you put
(no rewrite logging)
So this means that the error is either inside mod_rewrite logging or inside apr's apr_vprintf function that crashes. Since its only on 32-bit I presume that either some casting (size_t presumed 4 bytes, etc) is wrong or there is a but inside APR.
I'll check both APR and mod_rewrite for changes between our version and confirmed working version (2.2.25) which has different APR version
Please verify the build:
Seems this was a known bug with APR (ASF's PR 49155)
so the patch already existed in the APR's SVN.
there should also be built win6.x86_64 application servers zip file because it inculdes apr dlls
I'll also rebuild tomcat-native because it has apr as compile time dependency. Cannot tell for sure if the pointer size macros are used anywhere but better be safe then sorry.
Here is the fixed build for application-servers
I also rebuild sources with latest patches added
VERIFIED on Windows 2008 x86_64 and Windows 2008 R2 x86_64
No regression found.