[RTFACT-15315] Apt-get on https ends with segmentation fault Created: 21/Nov/17  Updated: 21/Nov/17  Resolved: 21/Nov/17

Status: Resolved
Project: Artifactory Binary Repository
Component/s: None
Affects Version/s: 5.6.0
Fix Version/s: 5.6.1

Type: Bug Priority: Normal
Reporter: Fred Simon Assignee: Fred Simon
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relationship
is related to RTFACT-12713 Upgrade to Tomcat 8.5 Resolved

 Description   

If during apt-get update command you get the following (happens in Ubuntu Trusty):

E: Method https has died unexpectedly!
E: Sub-process https received a segmentation fault.

This is due to a bug fixed in Debian apt http method fixed in 2009: https://github.com/Debian/apt/commit/dda7233c5d3879f2580543ead0ad7cd76196a160#diff-c8367b0733401af8a29f502c70434b89
that was never applied to the https method until recently.

This means that all modern web servers (Tomcat 8.5, 9, Squid, ...) and the new HTTP/2 will stop sending the reason phrase in the HTTP status.

The Tomcat dev team waited for more than a year before adding the flag back: https://bz.apache.org/bugzilla/show_bug.cgi?id=60362



 Comments   
Comment by Fred Simon [ 21/Nov/17 ]

We waited for version 8.5.23 of Tomcat to provide our users a way to fix this in the mean time.
Please change the following flag in your tomcat/conf/server.xml file:

 sendReasonPhrase="true"

And restart Artifactory.
Be aware that not upgrading Apt and Debian to newer version supporting the empty reason phrase will be problematic with other web servers and reverse proxy in the near future as more and more servers are dropping the reason phrase support.

Comment by Fred Simon [ 21/Nov/17 ]

The upgrade to Tomcat 8.5 generated this

Generated at Mon Aug 26 10:59:58 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.