Bug 1397858

Summary: Using chunked transfer encoding makes mod_wsgi crash
Product: Red Hat Enterprise Linux 7 Reporter: Juan Antonio Osorio <josorior>
Component: mod_wsgiAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED WONTFIX QA Contact: rhel-cs-infra-services-qe <rhel-cs-infra-services-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: bnater, jkejda, jorton, josorior, luhliari, rcritten
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-15 07:28:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juan Antonio Osorio 2016-11-23 13:21:59 UTC
Description of problem:

Using "WSGIChunkedRequest on", services using chunked transfer encoding make mod_wsgi crash with a segmentation fault. It seems that the fact that it still tries to read the content-length for requests using chunked transfer encoding, even though it's not present. As seen in logs like this:

[Thu Nov 17 13:51:24.572138 2016] [http:info] [pid 20503] [remote 192.168.24.1:136] AH01588: Requested content-length of 9223372036854775807 is larger than the configured limit of 2147483647

The file I was uploading to that service was surely not of size 9223372036854775807 .

Version-Release number of selected component (if applicable):
mod_wsgi-3.4-12.el7_0.x86_64

I noticed this when trying to run the OpenStack service called Glance over httpd, and trying to upload images to it.

Steps to Reproduce:
1. deploy a service that requires transfer-encoding (such as glance)
2. try to do a request that uses chunked transfer encoding

Actual results:
requests fail and I see the logs I posted above.

Expected results:
The image upload should finish.


Additional info:

Using the latest mod_wsgi from source (having compiled it) works and the issue cannot be reproduced with it.

Comment 12 RHEL Program Management 2021-01-15 07:28:47 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.