Re: [squid-users] Squid 3.x and wccp2_router crash

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 30 Dec 2013 23:30:57 +1300

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/12/2013 9:54 a.m., Guy Helmer wrote:
>
> On Dec 16, 2013, at 11:02 AM, Don Brearley
> <donbrearley_at_hibbing.edu> wrote:
>
>> Hello squid-users,
>>
>>
>> I am trying to get wccp2 with squid 3.4 working on Debian Jessie
>> (amd64). Squid itself works fine, until I add "wccp2_router"
>> into the mix, where then squid crashes.
>>
>>
>> When I define:
>>
>>
>> wccp2_router 1.2.3.4
>>
>>
>> I get a "Unable to convert non-IPv4 to IPv4 from [::]" errors in
>> the log, and squid exits. There are no IPv6 addresses in the
>> mix anywhere, so I dont know where the [::] is originating. I
>> have tried with IPv6 enabled and disabled in Debian.
>>
>>
>> I also see a "assertion(failed) failed" error.... i modified the
>> code to use an ISASSERT and I get an error along the lines of
>> "isIPv6:Y isIPV4:N"
>>
>>
>> I have also tried FreeBSD 10-RC, and gotten the same error. I
>> believe this to be a squid bug.
>>
>>
>> I have tried this with --disable-ipv6 and without. I have
>> tried 3.4, 3.3, and 3.2 -- I only can get it to work under 2.7.
>>
>>
>> If I simply define 'wccp_router' -- I get no crash, but I am not
>> interested in using wccp v1.
>>
>>
>> Anyone running 3.x and wccp2 OK out there? Can I provide details
>> for a proper bug report?
>>
>
> A work-around that I am using is to set wccp2_address 0.0.0.0
>
> It seems the default wccp2_address is [::], which seems to trigger
> this problem if squid is not built with IPv6 support.
>
> Regards, Guy
>

FYI for anyone trying to find the solution for this. It turned out to
be Squid not handling packet errors before trying to use the IP and is
fixed in Squid-3.4.2.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSwUthAAoJELJo5wb/XPRjvT4IAJWzVs91bq39wj83thvxLZmg
Ul6Td2j5wHYZCYFMFfrQ7w/P2Ptlo5jMv871pkpPLk3Sb+nM3mn9AkS8jUoGOs1R
ioulfNswFPaVPhEWYHxhdPzuz8xzkiTzewCpaXsaSutdqcDRtqX9zjejBUXJ+WT/
fvD7dNcnjV2wIeSkZRVLoDBBuTc4Plgcbigmd4ONDxHBS5TEB1gRii6FF5rNs/RC
WsXviBSINkT0qmAiXArcay/nblHWl4owAo46lJrlI0NmBWGDwERUUmRrrQYYOn0x
xeWkquwhVeiCohzpt6pA0dgJUZKkTHTzHiGmLx0Alj3WsUwfH7CztfMpgj6sl/A=
=jXjz
-----END PGP SIGNATURE-----
Received on Mon Dec 30 2013 - 10:31:11 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 30 2013 - 12:00:06 MST