Re: [squid-users] IPv6 error prevents Squid start

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 16 May 2012 23:00:35 +1200

On 16/05/2012 8:44 a.m., Zill, Gregory (OMA-GIS) wrote:
> I get the same error when I revert to Squid 3.2.0.16.
>
> squid[7989]: Address.cc(958) GetSockAddr: Ip::Address::GetSockAddr : Cannot convert non-IPv4 to IPv4. from [::]
>
> context from line 958 of Address.cc
>
> void
> Ip::Address::GetSockAddr(struct sockaddr_in&buf) const
> {
> if ( IsIPv4() ) {
> buf.sin_family = AF_INET;
> buf.sin_port = m_SocketAddr.sin6_port;
> Map6to4( m_SocketAddr.sin6_addr, buf.sin_addr);
> } else {
>>> debugs(14, DBG_CRITICAL, HERE<< "Ip::Address::GetSockAddr : Cannot convert non-IPv4 to IPv4. from "<< *this );
> memset(&buf,0xFFFFFFFF,sizeof(struct sockaddr_in));
> assert(false);
> }

Hmm. I was thinking it was SetIPv4() failing. Not actually loading a
IPv4-only sockaddr_in from an IPv6 address.

Do you have a backtrace from that assert? to see which component is
doing this.

Amos
Received on Wed May 16 2012 - 11:00:42 MDT

This archive was generated by hypermail 2.2.0 : Wed May 16 2012 - 12:00:04 MDT