<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [squid-users] Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hello Alex - here is the output of squid -v command:<BR>
<BR>
squid -v<BR>
Squid Cache: Version 6.3-20230903-ra9c06aa6a<BR>
Service Name: squid<BR>
no IPV6<BR>
<BR>
This binary uses OpenSSL 1.1.1n 15 Mar 2022. For legal restrictions on distribution see <A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A><BR>
<BR>
configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/include' '--mandir=/share/man' '--infodir=/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/lib/squid5' '--disable-maintainer-mode' '--disable-silent-rules' '--datadir=/usr/share/squid5' '--sysconfdir=/etc/squid5' '--mandir=/usr/share/man' '--enable-build-info=no IPV6' '--enable-inline' '--enable-arp-acl' '--disable-wccp' '--disable-wccp2' '--disable-htcp--disable-arch-native' '--disable-ipv6' '--enable-optimizations' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,SMB_LM' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group' '--enable-url-rewrite-helpers=fake' '--enable-security-cert-validators=fake' '--enable-storeid-rewrite-helpers=file' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--enable-snmp' '--disable-ident-lookups' '--disable-translation' '--with-swapdir=/var/spool/squid5' '--with-logdir=/var/log/squid5' '--with-pidfile=/var/run/squid5.pid' '--with-large-files' '--with-default-user=proxy' '--with-openssl' '--with-filedescriptors=8192' '--enable-ssl-crtd' '--enable-security-cert-generators' '--enable-security-cert-validators' '--enable-linux-netfilter' '--enable-stacktraces' 'PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'CFLAGS=-g -O2 -m64 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -m64 -fPIE -fstack-protector-strong -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'<BR>
<BR>
Please note two things - I was using 5.x branch for some time (ie. squid5 prefix) and lately did upgrade to 6.x as the developers said 5.x is EOL/not maintained, I do not have native ipv6 so I had some tun6to4 tunel to closed broker - so now I do not have ipv6 connectivity. So I decided to set --disable-ipv6 for now.<BR>
<BR>
I have gcc<BR>
gcc -v<BR>
Using built-in specs.<BR>
COLLECT_GCC=gcc<BR>
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper<BR>
OFFLOAD_TARGET_NAMES=nvptx-none<BR>
OFFLOAD_TARGET_DEFAULT=1<BR>
Target: x86_64-linux-gnu<BR>
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=<A HREF="file:///usr/share/doc/gcc-8/README.Bugs">file:///usr/share/doc/gcc-8/README.Bugs</A> --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu<BR>
Thread model: posix<BR>
gcc version 8.3.0 (Debian 8.3.0-6)<BR>
<BR>
with Debian 10 x64<BR>
<BR>
LL<BR>
<BR>
<BR>
-----Původní zpráva-----<BR>
Od: squid-users za uživatele Alex Rousskov<BR>
Odesláno: út 12.9.2023 16:48<BR>
Komu: squid-users@lists.squid-cache.org<BR>
Předmět: Re: [squid-users] Squid BUG: assurance failed: tok.skip(WellKnownUrlPathPrefix())<BR>
<BR>
On 2023-09-12 10:21, Loučanský Lukáš wrote:<BR>
> today I was going to compile a new version of my beloved squid<BR>
> proxy (v6.3 or 6.3-20230903-ra9c06aa6a)<BR>
<BR>
FWIW, "was going to compile" part does not make it clear (to me) whether<BR>
you did actually compile/test v6.3.<BR>
<BR>
<BR>
> just to be welcomed by non<BR>
> working older configmgr.cgi and [debian package installed] squidclient<BR>
> (v4.6). After replacing squidclient with (compiled with squid) version<BR>
> 6.3 it's still not working, giving me accesss denied page.<BR>
><BR>
> My cache.log contains these bug info lines:<BR>
><BR>
> 023/09/12 16:07:03 kid3| ERROR: Squid BUG: assurance failed:<BR>
> tok.skip(WellKnownUrlPathPrefix())<BR>
> exception location: cache_manager.cc(193) ParseUrl<BR>
<BR>
<BR>
If the above output is from Squid v6.3, then you may have found a v6.3<BR>
problem that we do not know about. Please share the HTTP request that<BR>
triggers the above output.<BR>
<BR>
Otherwise, please try to upgrade to Squid v6.3 because its commit<BR>
6695897 is meant to fix a v6.1 bug with the above symptoms.<BR>
<BR>
<BR>
Thank you,<BR>
<BR>
Alex.<BR>
<BR>
<BR>
> current master transaction: master469155<BR>
> 2023/09/12 16:07:03 kid3| ERROR: Squid BUG: assurance failed:<BR>
> tok.skip(WellKnownUrlPathPrefix())<BR>
> exception location: cache_manager.cc(193) ParseUrl<BR>
> current master transaction: master469155<BR>
><BR>
> In the file src/cache_manager.cc there is this<BR>
><BR>
> const SBuf &<BR>
> CacheManager::WellKnownUrlPathPrefix()<BR>
> {<BR>
> static const SBuf prefix("/squid-internal-mgr/");<BR>
> return prefix;<BR>
> }<BR>
><BR>
> and on the line 193 is this assure (after tok tokenizer)<BR>
><BR>
> Parser::Tokenizer tok(uri.path());<BR>
><BR>
> Assure(tok.skip(WellKnownUrlPathPrefix()));<BR>
><BR>
> Is there something wrong with my config I should change after 6.2 to 6.3<BR>
> upgrade? I have some classic http_access manager allow ... and<BR>
> http_access manager deny lines. No definition what [acl] manager means.<BR>
><BR>
> I have found some mentions here<BR>
> <A HREF="https://github.com/squid-cache/squid/blob/master/ChangeLog">https://github.com/squid-cache/squid/blob/master/ChangeLog</A> and somewhere<BR>
> inside the commit / review git hub section for squid. But nothing says<BR>
> what to do make it work right. Besides this it seems squid as a proxy<BR>
> works fine...<BR>
><BR>
> Thanks<BR>
><BR>
> Lukas<BR>
><BR>
><BR>
><BR>
> _______________________________________________<BR>
> squid-users mailing list<BR>
> squid-users@lists.squid-cache.org<BR>
> <A HREF="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</A><BR>
<BR>
_______________________________________________<BR>
squid-users mailing list<BR>
squid-users@lists.squid-cache.org<BR>
<A HREF="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>