Bug 159632 - RewriteRule causes segmentation fault
RewriteRule causes segmentation fault
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: httpd (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2005-06-06 08:47 EDT by Carlo de Wolf
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-19 15:01:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
A config file to create core dumps (doesn't work though) (35.63 KB, text/plain)
2005-06-06 09:58 EDT, Carlo de Wolf
no flags Details

  None (edit)
Description Carlo de Wolf 2005-06-06 08:47:06 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412 (KHTML, like Gecko) Safari/412

Description of problem:
The following bit of configuration worked in 2.0.46-44.ent, but causes a segmentation fault in 
2.0.46-46.ent when a user requests either http://host/jira/ or https://host/jira/.

<Location "/jira">
        JkUriSet channel.socket ajp13
        RewriteEngine On
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R]

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create a configuration similar to the above
2. lynx http://localhost/jira
3. Observe crashing apache

Actual Results:  (gdb) where
#0  0x0093f503 in strlen () from /lib/tls/libc.so.6
#1  0x002c068c in ?? () from /etc/httpd/modules/mod_rewrite.so
#2  0x00000000 in ?? ()

Expected Results:  redirect to https://localhost/jira

Additional info:
Comment 1 Joe Orton 2005-06-06 09:03:19 EDT
Thanks for the report.

I cannot reproduce the above issue in an identical configuration except without
any use of JkURISet.

- Can you reproduce this in a configuration without using JkURISet?
- What JK module are you using?
- Can you attach a bzip2'ed core dump file to this bug?  (add "CoreDumpDirectory
/tmp" to your httpd.conf to ensure httpd can dump core)

Comment 2 Carlo de Wolf 2005-06-06 09:58:21 EDT
Created attachment 115166 [details]
A config file to create core dumps (doesn't work though)

The config file attached should create a core, but doesn't. Even with ulimit -c
Another weird side effect: if I comment in the first RewriteEngine on, it all
works as expected. But if I try to incorporate this in the main configuration
it fails again.
Comment 3 RHEL Product and Program Management 2007-10-19 15:01:00 EDT
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.

Note You need to log in before you can comment on or make changes to this bug.