Re: Parsing IP error on squid 3.1.10 on solaris 10/64bits

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 07 Jan 2011 17:15:06 +1300

On 01/01/11 00:13, rmkml wrote:
> oops, I have more information:
> Im use Solaris Studio 12 cc,
> and I have same IP parsing pb with dns_nameservers 10.0.0.245 (cache.log):
> 2010/12/31 10:57:20.260| Adding nameserver 10.0.0.245 from /etc/resolv.conf
> 2010/12/31 10:57:20.260| WARNING: rejecting '10.0.0.245' as a name
> server, because it is not a numeric IP address
> maybe it's related?
> Regards
> Rmkml
>
>
> On Fri, 31 Dec 2010, rmkml wrote:
>
>> Hi,
>> Im use squid v3.0 stable 25 without pb on solaris 10/64bits,
>> but when I test lastest squid v3.1.10 on solaris 10/64bits (not tested
>> 32bits):
>> 2010/12/31 10:41:57| aclIpParseIpData: unknown first address in
>> '127.0.0.1/32'
>> FATAL: Bungled squid1.conf line 556: acl localhost src 127.0.0.1/32
>> and squid debug mode:
>> ...
>> 2010/12/31 10:41:48.004| Processing: 'acl localhost src 127.0.0.1/32'
>> 2010/12/31 10:41:48.004| ACL::Prototype::Registered: invoked for type src
>> 2010/12/31 10:41:48.004| ACL::Prototype::Registered: yes
>> 2010/12/31 10:41:48.004| ACL::FindByName 'localhost'
>> 2010/12/31 10:41:48.004| ACL::FindByName found no match
>> 2010/12/31 10:41:48.004| aclParseAclLine: Creating ACL 'localhost'
>> 2010/12/31 10:41:48.004| ACL::Prototype::Factory: cloning an object
>> for type 'src'
>> 2010/12/31 10:41:48.004| aclIpParseIpData: 127.0.0.1/32
>> 2010/12/31 10:41:48.004| aclIpParseIpData: '127.0.0.1/32' matched:
>> SCAN3-v4: %[0123456789.]/%[0123456789.]
>> 2010/12/31 10:41:48.004| aclIpParseIpData: unknown first address in
>> '127.0.0.1/32'
>> ...
>>
>> Same results with or without ipv6 on configure line.
>>
>> Do you already know this pb? Anyone can help me?
>> Regards
>> Rmkml
>>

Same problem cause, different symptoms.

There seems to be something wrong with the getaddrinfo() implementation
being used. Or some bug getting the results back.

Squid pases the text string to the OS and gets back an IP address in
binary format, or a nil result. DNS is not performed so only real IPs
get a result. The "unknown first address" / "not a numeric IP" messages
are displayed when Squid receives nil back.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Fri Jan 07 2011 - 04:15:14 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 07 2011 - 12:00:03 MST