Bug 1404817

Summary: SIGSEV in TunnelStateData::handleConnectResponse() during squid reconfigure and restart
Product: Red Hat Enterprise Linux 7 Reporter: Rupesh Patel <rupatel>
Component: squidAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Ondřej Pták <optak>
Severity: high Docs Contact:
Priority: urgent    
Version: 7.4CC: bnater, fkrska, isenfeld, jorton, luhliari, optak, urs.breinlinger
Target Milestone: rcKeywords: OtherQA, Patch, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: squid-3.5.20-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1428378 (view as bug list) Environment:
Last Closed: 2017-08-01 21:35:36 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:    
Bug Blocks: 1428378    

Description Rupesh Patel 2016-12-14 17:55:27 UTC
Description:- 
 SIGSEV in TunnelStateData::handleConnectResponse() during squid reconfigure and restart

Customer has tried patch from http://bugs.squid-cache.org/show_bug.cgi?id=4406 and it appears to be fixing issue for them.

Customer update:- 

Under Load (~ 100 HTTP requests per minute) squid crashes almost every time on reconfigure '/sbin/squid -k reconfigure'
Reconfiguring without any load doesn't seem to cause any problem.

After some research we found this bug:

http://bugs.squid-cache.org/show_bug.cgi?id=4406

Right now, this patch seems to fix our problem.
Of course we would still like to have an official fix from RHEL, since we do not want to run self compiled software in productive environment.

2016/12/05 16:02:39| Set Current Directory to /var/log/squid
2016/12/05 16:02:39 kid1| Reconfiguring Squid Cache (version 3.5.20)...
2016/12/05 16:02:39 kid1| Closing HTTP port [::]:3130
2016/12/05 16:02:39 kid1| Closing SNMP receiving port [::]:3402
2016/12/05 16:02:39 kid1| Logfile: closing log syslog:local1.info
2016/12/05 16:02:39 kid1| Startup: Initializing Authentication Schemes ...
2016/12/05 16:02:39 kid1| Startup: Initialized Authentication Scheme 'basic'
2016/12/05 16:02:39 kid1| Startup: Initialized Authentication Scheme 'digest'
2016/12/05 16:02:39 kid1| Startup: Initialized Authentication Scheme 'negotiate'
2016/12/05 16:02:39 kid1| Startup: Initialized Authentication Scheme 'ntlm'
2016/12/05 16:02:39 kid1| Startup: Initialized Authentication.
2016/12/05 16:02:39 kid1| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2016/12/05 16:02:39 kid1| Initializing https proxy context
2016/12/05 16:02:39 kid1| Logfile: opening log syslog:local1.info
2016/12/05 16:02:39 kid1| Squid plugin modules loaded: 0
2016/12/05 16:02:39 kid1| Adaptation support is off.
2016/12/05 16:02:39 kid1| Store logging disabled
2016/12/05 16:02:39 kid1| DNS Socket created at [::], FD 8
2016/12/05 16:02:39 kid1| DNS Socket created at 0.0.0.0, FD 10
2016/12/05 16:02:39 kid1| HTCP Disabled.
2016/12/05 16:02:39 kid1| Sending SNMP messages from [::]:3402
2016/12/05 16:02:39 kid1| Finished loading MIME types and icons.
2016/12/05 16:02:39 kid1| Accepting HTTP Socket connections at local=[::]:3130 remote=[::] FD 11 flags=9
2016/12/05 16:02:39 kid1| Accepting SNMP messages on [::]:3402
FATAL: Received Segment Violation...dying.

(gdb) backtrace
#0  0x00007f36b6e261d7 in raise () from /lib64/libc.so.6
#1  0x00007f36b6e278c8 in abort () from /lib64/libc.so.6
#2  0x00007f36ba6d44ce in death(int) ()
#3  <signal handler called>
#4  0x00007f36ba6df064 in TunnelStateData::handleConnectResponse(unsigned long) ()
#5  0x00007f36ba6df2d3 in TunnelStateData::readConnectResponseDone(char*, unsigned long, Comm::Flag, int) ()
#6  0x00007f36ba75dba7 in AsyncCall::make() ()
#7  0x00007f36ba761f72 in AsyncCallQueue::fireNext() ()
#8  0x00007f36ba7623c0 in AsyncCallQueue::fire() ()
#9  0x00007f36ba5e4579 in EventLoop::runOnce() ()
#10 0x00007f36ba5e4668 in EventLoop::run() ()
#11 0x00007f36ba64efb1 in SquidMain(int, char**) ()
#12 0x00007f36ba54699b in main ()

Comment 11 errata-xmlrpc 2017-08-01 21:35:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2174