Re: [squid-users] squid failing every 5 minutes

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 06 Dec 2009 23:36:27 +1300

Landy Landy wrote:
> Hello.
>
> I'm reposting about squid stoping and restarting every 5 minutes. I didn't get any more responses about it last time I posted and havent find a solution to the problem.
>
> Here's part of syslog:
>
> Dec 5 21:50:38 optimum-router squid[4769]: Squid Parent: child process 11973 exited due to signal 6 with status 0
> Dec 5 21:50:41 optimum-router squid[4769]: Squid Parent: child process 12061 started
> Dec 5 21:55:35 optimum-router squid[4769]: Squid Parent: child process 12061 exited due to signal 6 with status 0
> Dec 5 21:55:38 optimum-router squid[4769]: Squid Parent: child process 12183 started
> Dec 5 22:00:35 optimum-router squid[4769]: Squid Parent: child process 12183 exited due to signal 6 with status 0
> Dec 5 22:00:38 optimum-router squid[4769]: Squid Parent: child process 12252 started
> Dec 5 22:05:36 optimum-router squid[4769]: Squid Parent: child process 12252 exited due to signal 6 with status 0
> Dec 5 22:05:39 optimum-router squid[4769]: Squid Parent: child process 12313 started
> Dec 5 22:07:58 optimum-router squid[12391]: Squid Parent: child process 12393 started
> Dec 5 22:10:36 optimum-router squid[12391]: Squid Parent: child process 12393 exited due to signal 6 with status 0
> Dec 5 22:10:39 optimum-router squid[12391]: Squid Parent: child process 12522 started
> Dec 5 22:15:41 optimum-router squid[12391]: Squid Parent: child process 12522 exited due to signal 6 with status 0
> Dec 5 22:15:44 optimum-router squid[12391]: Squid Parent: child process 31594 started
> Dec 5 22:20:35 optimum-router squid[12391]: Squid Parent: child process 31594 exited due to signal 6 with status 0
> Dec 5 22:20:38 optimum-router squid[12391]: Squid Parent: child process 5466 started
>
> Dec 5 22:25:36 optimum-router squid[12391]: Squid Parent: child process 5466 exited due to signal 6 with status 0
> Dec 5 22:25:39 optimum-router squid[12391]: Squid Parent: child process 13301 started
>
>
> And here's cache.log
>
> 2009/12/05 22:15:55| IpIntercept.cc(137) NetfilterInterception: NF getsockopt(SO_ORIGINAL_DST) failed on FD 14: (2) No such file or directory
> 2009/12/05 22:15:55| IpIntercept.cc(137) NetfilterInterception: NF getsockopt(SO_ORIGINAL_DST) failed on FD 15: (2) No such file or directory

First problem: the above errors are due to non-NATed traffic arriving at
a squid port flagged with "intercept" or "transparent".

This is not a safe situation. You should have different ports for NAT
intercepted traffic and normal traffic.

> (squid)(death+0x4b)[0x818b8cb]
> [0xb7fb3420]
> /usr/local/lib/ecap_adapter_gzip.so(_ZN7Adapter7Xaction17noteVbContentDoneEb+0x61)[0xb7aba411]
> (squid)(_ZN10Adaptation4Ecap10XactionRep23noteBodyProductionEndedE8RefCountI8BodyPipeE+0x61)[0x81fdd61]
> (squid)(_ZN12UnaryMemFunTI12BodyConsumer8RefCountI8BodyPipeEE6doDialEv+0x48)[0x80f1208]
> (squid)(_ZN9JobDialer4dialER9AsyncCall+0x51)[0x8199661]
> (squid)(_ZN10AsyncCallTI18BodyConsumerDialerE4fireEv+0x18)[0x80f1138]
> (squid)(_ZN9AsyncCall4makeEv+0x17b)[0x819888b]
> (squid)(_ZN14AsyncCallQueue8fireNextEv+0xf9)[0x819b4a9]
> (squid)(_ZN14AsyncCallQueue4fireEv+0x28)[0x819b5a8]
> (squid)(_ZN9EventLoop13dispatchCallsEv+0x13)[0x81096c3]
> (squid)(_ZN9EventLoop7runOnceEv+0xf6)[0x81098b6]
> (squid)(_ZN9EventLoop3runEv+0x28)[0x8109988]
> (squid)(_Z9SquidMainiPPc+0x4b5)[0x8151e75]
> (squid)(main+0x27)[0x81522f7]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xc8)[0xb7cfaea8]
> (squid)(__gxx_personality_v0+0x155)[0x80bd081]
> FATAL: Received Segment Violation...dying.
> 2009/12/05 22:20:35| storeDirWriteCleanLogs: Starting...
>

eCAP adapter is crashing when Squid runs it's end-of-object handler.

Also, a bug in Squid is causing Squid to fail catching the error and die
itself.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
   Current Beta Squid 3.1.0.15
Received on Sun Dec 06 2009 - 10:36:39 MST

This archive was generated by hypermail 2.2.0 : Sun Dec 06 2009 - 12:00:02 MST