Bug 1338661

Summary: mod_jk Segmentation fault when trying to resolve unknown host
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Michal Karm Babacek <mbabacek>
Component: Apache Server (httpd) and ConnectorsAssignee: George Zaronikas <gzaronik>
Status: CLOSED EOL QA Contact: Jan Stefl <jstefl>
Severity: high Docs Contact:
Priority: high    
Version: 6.4.0CC: jclere, jdoyle, jpallich, jstefl, mturk, pslavice, rbost, rsvoboda
Target Milestone: DR2   
Target Release: EAP 6.4.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of: 1328231 Environment:
Last Closed: 2019-08-19 12:45:10 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:
Embargoed:
Bug Depends On: 1341701    
Bug Blocks:    

Description Michal Karm Babacek 2016-05-23 08:26:14 UTC
+++ This bug was initially created as a clone of Bug #1328231 +++

Description of problem: Segfault occurrs in mod_jk when trying to resolve an unknown hostname. 


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


How reproducible: Always


Steps to Reproduce:
1. Configure mod_jk
2. In workers.properties, set worker host to something that will not be resolved: 
3. Make request: curl http://localhost/fail

Here's a simple reproducing config:
JkMount /* worker1
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=testhost

# ping testhost
ping: unknown host testhost


Actual results: Segmentation fault


Expected results: Nice error message about not being able to resolve hostname


Additional info:
Related upstream reports:
https://bz.apache.org/bugzilla/show_bug.cgi?id=56452
https://bz.apache.org/bugzilla/show_bug.cgi?id=59164
https://mail-archives.apache.org/mod_mbox/tomcat-dev/201501.mbox/%3C20150101213422.B7310AC08A8@hades.apache.org%3E

Comment 1 Jean-frederic Clere 2016-06-06 09:14:21 UTC
ASF 56452 was fixed in 1.2.40
ASF 59164 is still new but the fix looks "easy".

Comment 2 Michal Karm Babacek 2016-08-18 15:51:56 UTC
@Jan Stefl: Consider: https://bugzilla.redhat.com/show_bug.cgi?id=1328231#c12

Comment 3 Robert Bost 2016-09-13 21:51:02 UTC
This issue has been resolved in mod_jk-1.2.42 per a similar upstream report. Is the upstream report same as this bugzilla?

https://bz.apache.org/bugzilla/show_bug.cgi?id=59164

Comment 4 Jan Stefl 2016-09-20 11:10:42 UTC
The issues is not fixed, after described configuration I get:

> [notice] child pid 19865 exit signal Segmentation fault (11)


Verification FAILED, returning to ASSIGNED.

Comment 5 Michal Karm Babacek 2016-09-20 11:31:39 UTC
@Jan Stefl, could you talk to Jan Onderka about it? He has never managed to reproduce the issue: https://bugzilla.redhat.com/show_bug.cgi?id=1328231

Comment 6 Jan Stefl 2016-09-20 13:51:59 UTC
@Michal Babacek, yes we have talked about it already.


Just for complete the information:
Problem is in EAP native-web-connectors (for EAP 6.4.10) and EWS-2.1.1 as well.