Bug 1338661 - mod_jk Segmentation fault when trying to resolve unknown host
Summary: mod_jk Segmentation fault when trying to resolve unknown host
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Apache Server (httpd) and Connectors
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: DR2
: EAP 6.4.9
Assignee: George Zaronikas
QA Contact: Jan Stefl
URL:
Whiteboard:
Depends On: 1341701
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-23 08:26 UTC by Michal Karm Babacek
Modified: 2019-10-10 12:08 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Clone Of: 1328231
Environment:
Last Closed: 2019-08-19 12:45:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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