Re: [PATCH] "address.GetPort() != 0" assertion for helpers on FreeBSD

From: Kinkie <gkinkie_at_gmail.com>
Date: Thu, 10 Jan 2013 11:47:41 +0100

Hi,
  I second Amos' suggestion, +1 from me as well if it's followed.

On Thu, Jan 10, 2013 at 10:07 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 9/01/2013 6:13 p.m., Alex Rousskov wrote:
>>
>> Hello,
>>
>> Some v3.3 and trunk helpers are broken on FreeBSD and possibly some
>> other non-Linux OSes. Squid using ssl_crtd, URL rewriter, and possibly
>> other helpers asserts on startup:
>>
>> assertion failed: comm.cc:800: "address.GetPort() != 0"
>>
>> Our src/defines.h #include file requires sys/socket.h on FreeBSD for
>> AF_UNIX to be defined in time for IPC_* tests. I suspect a similar but
>> not-yet-exposed dependency exists for O_TEXT and friends.
>>
>> The attached patch fixes the AF_UNIX bug in my tests. A better long-term
>> fix is welcomed.
>
>
> +1.
>
> Although, since defines.h is one of the files we are trying to eradicate I'm
> inclined to put the new #include right above the #if condition which is
> depending on it so they get shuffled together when that shuffling happens.
>
> Amos

-- 
    /kinkie
Received on Thu Jan 10 2013 - 10:47:53 MST

This archive was generated by hypermail 2.2.0 : Sat Jan 12 2013 - 12:00:10 MST