Re: [PATCH] Fix session helper "crashing too rapidly"

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 22 Sep 2011 18:42:32 +1200

On 22/09/11 18:32, Andrew Beverley wrote:
> On Thu, 2011-09-22 at 11:10 +1200, Amos Jeffries wrote:
>>> However, it still leaves the question: what is the best way to log
>>> errors from the helper. At the moment, even with the patch applied, a
>>> user will still get "The helpers are crashing too rapidly, need help" if
>>> they don't specify a concurrency value. I was trying to fix this, as I
>>> spent hours locating the problem!
>>>
>>
>> The correct way is with ERROR: or in this case "FATAL:" messages sent to
>> stderr from the helper. The user will get N of that message over a 30
>> seconds period, then Squids helpers dying message and abort.
>>
>> Why the message is not showing up in your cache.log is a mystery.
>> Perhapse it was buffered and discarded by the segfault? something like that?
>
> I'm still not getting anything, even with the segfault bug fixed.
>
> Could you point in the direction of the code where this should happen
> (sorry, I can't find it), so that I can try and work out why it's not
> happening for me please?
>
> Thanks for your reply to my other post.
>
> Andy
>
>

src/ipc.cc function ipcCreate() sets up the pipes and links stderr to
the debugs() log pipe.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.15
   Beta testers wanted for 3.2.0.12
Received on Thu Sep 22 2011 - 06:42:48 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 22 2011 - 12:00:05 MDT