Re: cvs commit: squid3/include Range.h

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sat, 14 May 2005 19:04:17 +0200

Hi Henrik,

At 01.28 09/05/2005, hno@squid-cache.org wrote:

>hno 2005/05/08 17:28:06 MDT
>
> Modified files:
> include Range.h
> Log:
> const correctness
>
> Revision Changes Path
> 1.6 +2 -2 squid3/include/Range.h

With an empty "port" acl, Squid crashes when dumping configuration in cachemgr:

2005/05/14 18:59:10| Warning: empty ACL: acl bad_port port

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 31519)]
0x08056a37 in Range<int>::size (this=0x4) at Range.h:80
80 return end > start ? end - start : 0;
(gdb) backtrace
#0 0x08056a37 in Range<int>::size (this=0x4) at Range.h:80
#1 0x08059d94 in ACLStrategised<int>::dump (this=0x4) at ACLStrategised.h:166
#2 0x08051357 in ACL::dumpGeneric (this=0x0) at acl.cc:563
#3 0x08065bce in dump_acl (entry=0x4068c8c0, name=0x816b2b6 "acl", ae=0x4)
at cache_cf.cc:811
#4 0x0806cfd5 in dump_config (entry=0x4068c8c0) at cf_parser.h:1620
#5 0x0807138d in cachemgrStart (fd=140053524, request=0x85940d8,
entry=0x4068c8c0)
     at cache_manager.cc:332

and non empty "port" acl are not working: this is the dump output of the
default squid.conf:

acl to_localhost dst 127.0.0.0/255.0.0.0
acl SSL_ports port
acl Safe_ports port
acl CONNECT method CONNECT

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sat May 14 2005 - 11:04:56 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 31 2005 - 12:00:03 MDT