Bug 1402137

Summary: Segfault with bad openssl engines directory
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Robert Bost <rbost>
Component: httpdAssignee: Weinan Li <weli>
Status: CLOSED WONTFIX QA Contact: Michal Karm Babacek <mbabacek>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.2CC: jdoyle, pslavice, rsvoboda
Target Milestone: ---   
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: 2019-06-13 12:20:01 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:
Attachments:
Description Flags
coredump httpd-2.2.26-55.ep6.el6.x86_64 none

Description Robert Bost 2016-12-06 21:13:11 UTC
Created attachment 1228681 [details]
coredump httpd-2.2.26-55.ep6.el6.x86_64

Description of problem:

When the openssl engines directory is not correct, httpd segfaults on startup:

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

How reproducible: always

Steps to Reproduce:
# export OPENSSL_ENGINES=/bad/path
# ./apachectl start 
Syntax error on line 74 of /etc/httpd/conf.d/ssl.conf:
SSLCryptoDevice: Invalid argument; must be one of: 'builtin' (none), 'dynamic' (Dynamic engine loading support)
./apachectl: line 102:  2314 Segmentation fault      (core dumped) $HTTPD $OPTIONS -k $ARGV


Actual results: Segmentation fault on startup

Expected results: No segfault and clean failure.

Additional info:
core dump is attached for httpd-2.2.26-55.ep6.el6.x86_64

Not super high priority since segfault happens during shutdown.