<div dir="ltr"><div lang="EN-US" link="blue" vlink="purple"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The version
numbering you have identified seems to coincide with my issues as well. I moved
to the newer versions of squid for the newer enhanced ssl bumping features but
ran into this issue. I was hoping my stacktrace would finally allow the squid
developers to identify and resolve the issue. What your describing is an
improper shutdown procedure. I’m using a custom written system script to handle
my squid process, and that may very well be the issue. But I have also experienced
the random crash issue on configurations where no cache was configured.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><br></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">*** Begin </span><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">/etc/systemd/system/squid.service ***</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">[Unit]</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">Description=Squid caching proxy</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">After=syslog.target network.target nss-lookup.target</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px"><br></span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">[Service]</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">Type=forking</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">EnvironmentFile=/etc/sysconfig/squid</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">ExecReload=/usr/sbin/squid $SQUID_OPTS -k reconfigure -f $SQUID_CONF</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">ExecStop=/usr/sbin/squid $SQUID_OPTS -k shutdown -f $SQUID_CONF</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">PIDFile=/var/run/squid.pid</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px"><br></span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">[Install]</span></font></p><p class="MsoNormal"></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">WantedBy=multi-user.target</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">*** End </span></font><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6666669845581px">/etc/systemd/system/squid.service ***</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> <u></u><u></u></span></p><p class="MsoNormal"><a name="14ed05ac603ab70f__MailOriginal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b></a><span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> squid-users [mailto:<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank">squid-users-bounces@lists.squid-cache.org</a>] <b>On Behalf Of </b>Stanford Prescott<br><b>Sent:</b> Monday, July 27, 2015 9:44 AM<br><b>To:</b> Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>><br><b>Cc:</b> squid-users <<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>><br><b>Subject:</b> Re: [squid-users] Investigating squid crash.<u></u><u></u></span></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><span>The developers of Smoothwall Express v3.1 have been trying to address this issue for a few days now. We have had users complaining of this same issue with Squid 3.5.5 and 3.5.6. It didn't seem to happen with prior versions. We (or at least our lead developer Neal Murphy) thinks it is related to shutting down Squid with a single SIGTERM followed by a SIGKILL a few seconds later (or just using squid -k shutdown) is causing squid to close and exit before the swap.state file is written and saved. This causes a corrupted swap.state file to exist when squid is restarted. When Squid crashes, rebuilding the swap.state anew seems to fix the problem and Squid can restart.<u></u><u></u></span></p></div><p class="MsoNormal"><span>So, to fix the crashing problem, for us at least, seems to involve redesigning the shutdown and restarting of squid. Neal has come up with a process and scripts that seem to fix the issue, at least for low loads on squid that typically are what our users use. Neal has run some tests on higher loads and it seems to work as well for those environments as well, but we are continuing to test. Here is a link to the discussion in the Smoothwall community forums if anyone is interested.<br><br></span><a href="http://community.smoothwall.org/forum/viewtopic.php?p=340353#p340353" target="_blank"><span>http://community.smoothwall.org/forum/viewtopic.php?p=340353#p340353</span><span></span></a><span><u></u><u></u></span></p></div><div><p class="MsoNormal"><span><u></u> <u></u></span></p><div><p class="MsoNormal"><span>On Sun, Jul 26, 2015 at 3:53 PM, Amos Jeffries <</span><a href="mailto:squid3@treenet.co.nz" target="_blank"><span>squid3@treenet.co.nz</span><span></span></a><span>> wrote:<u></u><u></u></span></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal"><span>On 26/07/2015 5:09 p.m., The_Spider wrote:<br>> To anyone willing to assist.<br>><br>> My Squid continues to crash for some un-known reason only giving<br>> 'FATAL: Received Segment Violation...dying.' I have attached a copy of<br>> the cache log with the crash occurring and output debugging.<br>><br>> Aparently I'm not the first to experience this, but I have yet to find<br>> any documentation on how to resolve this issue. This is not unique to<br>> one single machine, it happens on a few different boxes with similar<br>> configuration, I have not been able to identify what configuration<br>> parameter has been causing the issue.<br>><br><br>Please follow the steps for obtaining a traceback as outlined at<br><</span><a href="http://wiki.squid-cache.org/SquidFaq/BugReporting#crashes_and_core_dumps" target="_blank"><span>http://wiki.squid-cache.org/SquidFaq/BugReporting#crashes_and_core_dumps</span><span></span></a><span>><br><br>For SEGFAULT errors that is the only easy way to identify what the<br>problem is. Trial-and-error can take a very, very long time.<br><br><br>As for the config. You certainly have a thing for regex. Most if not all<br>of the dstdom_regex patterns would be far better written as dstdomain ACLs.<br><br>Although note that neither dstdomain nor dstdom_regex work properly in<br>the ssl_bump directive lines. Use "ssl::server_name" ACL for those checks.<br><br><br><br>> I will attempt to provide any information possible to help resolve<br>> this issue. Hopefully this is a good start.<br>><br>> cache.log = </span><a href="http://filebin.ca/29vS8jkEfskt/cache.log" target="_blank"><span>http://filebin.ca/29vS8jkEfskt/cache.log</span><span></span></a><span><br>><br>> squid -v:<br>> Squid Cache: Version 3.5.6-20150725-r13869<br>> Service Name: squid<br>> configure options:  '--prefix=/usr' '--exec-prefix=/usr'<br>> '--includedir=/usr/include' '--datadir=/usr/share'<br>> '--libdir=/usr/lib64' '--libexecdir=/usr/lib64/squid'<br>> '--localstatedir=/var' '--sysconfdir=/etc/squid'<br>> '--sharedstatedir=/var/lib' '--with-logdir=/var/log/squid'<br>> '--with-pidfile=/var/run/squid.pid' '--with-default-user=squid'<br>> '--enable-silent-rules' '--enable-dependency-tracking'<br>> '--with-openssl' '--enable-icmp' '--enable-delay-pools'<br>> '--enable-useragent-log'<br><br>--enable-useragent-log no longer exists.<br><br>> '--enable-esi'<br>> '--enable-follow-x-forwarded-for' '--enable-auth'<br>> --enable-ltdl-convenience<br>><br>> cat /etc/redhat-release<br>> CentOS Linux release 7.1.1503 (Core)<br>><br><br>Amos<br><br>_______________________________________________<br>squid-users mailing list<br></span><a href="mailto:squid-users@lists.squid-cache.org" target="_blank"><span>squid-users@lists.squid-cache.org</span><span></span></a><span><br></span><a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank"><span>http://lists.squid-cache.org/listinfo/squid-users</span><span></span></a><span><u></u><u></u></span></p></blockquote></div><span></span><p class="MsoNormal"><u></u> <u></u></p></div></div></div>