<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#464646" bgcolor="#FFFFFF">
<font face="monospace">Thanks Amos.<br>
<br>
Did you have a release date of the 7.3 version ?<br>
</font><br>
<div class="moz-cite-prefix">Le 21/10/2025 à 01:42, David Touzeau a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:749f9e2b-26aa-4d3d-94fb-f50371f03f9e@articatech.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font face="monospace">Hi, on debian 13, have a segmentation fault<br>
<br>
<br>
squid -v<br>
Squid Cache: Version 7.2-VCS<br>
Service Name: squid<br>
<br>
This binary uses OpenSSL 3.5.1 1 Jul 2025. configure options:
'--prefix=/usr' '--build=x86_64-linux-gnu'
'--includedir=/include' '--mandir=/share/man'
'--infodir=/share/info' '--localstatedir=/var'
'--libexecdir=/lib/squid3' '--disable-maintainer-mode'
'--disable-dependency-tracking' '--datadir=/usr/share/squid3'
'--sysconfdir=/etc/squid3' '--enable-gnuregex'
'--enable-removal-policy=heap' '--enable-follow-x-forwarded-for'
'--enable-removal-policies=lru,heap' '--enable-arp-acl'
'--enable-truncate' '--with-large-files' '--with-pthreads'
'--enable-esi' '--enable-storeio=aufs,diskd,ufs,rock'
'--enable-x-accelerator-vary'
'--with-dl--enable-linux-netfilter' '--with-netfilter-conntrack'
'--enable-wccpv2' '--enable-eui' '--enable-auth'
'--enable-auth-basic' '--enable-snmp' '--enable-icmp'
'--enable-auth-digest' '--enable-log-daemon-helpers'
'--enable-url-rewrite-helpers' '--enable-auth-ntlm'
'--with-default-user=squid' '--enable-icap-client'
'--disable-cache-digests' '--enable-poll' '--enable-epoll'
'--enable-async-io=128' '--enable-zph-qos'
'--enable-delay-pools' '--enable-http-violations'
'--enable-url-maps' '--enable-ecap' '--enable-ssl'
'--with-openssl' '--enable-ssl-crtd'
'--enable-xmalloc-statistics' '--enable-ident-lookups'
'--with-filedescriptors=163840' '--with-aufs-threads=128'
'--disable-arch-native' '--without-gnutls'
'--with-logdir=/var/log/squid'
'--with-pidfile=/var/run/squid/squid.pid'
'--with-swapdir=/var/cache/squid' 'CXXFLAGS=-O1 -g
-fsanitize=address -fno-omit-frame-pointer
-Wno-error=maybe-uninitialized' 'build_alias=x86_64-linux-gnu'
'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:'<br>
<br>
<br>
<br>
2025/10/20 22:40:14| Initializing IP Cache...<br>
=================================================================<br>
==284891==ERROR: AddressSanitizer: new-delete-type-mismatch on
0x503000147bb0 in thread T0:<br>
object passed to delete has wrong type:<br>
size of the allocated type: 28 bytes;<br>
size of the deallocated type: 16 bytes.<br>
#0 0x7f55bd2f6678 in operator delete(void*, unsigned long)
../../../../src/libsanitizer/asan/asan_new_delete.cpp:164<br>
#1 0x55bd86e79254 in Ip::Address::FreeAddr(addrinfo*&)
/root/squid-7.2.patched/src/ip/Address.cc:710<br>
#2 0x55bd86d6c923 in comm_local_port(int)
/root/squid-7.2.patched/src/comm.cc:194<br>
#3 0x55bd86667a94 in Dns::Init()
/root/squid-7.2.patched/src/dns_internal.cc:1594<br>
#4 0x55bd869fe2ec in mainInitialize
/root/squid-7.2.patched/src/main.cc:1149<br>
#5 0x55bd869fe2ec in SquidMain(int, char**)
/root/squid-7.2.patched/src/main.cc:1665<br>
#6 0x55bd869ff6fe in SquidMainSafe
/root/squid-7.2.patched/src/main.cc:1351<br>
#7 0x55bd869ff6fe in main
/root/squid-7.2.patched/src/main.cc:1339<br>
#8 0x7f55bc233ca7
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
#9 0x7f55bc233d64 in __libc_start_main
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
#10 0x55bd86605960 in _start (/usr/sbin/squid+0x36f960)
(BuildId: 610a22a0102aabfd95125cac39325f2ee96de29b)<br>
<br>
0x503000147bb0 is located 0 bytes inside of 28-byte region
[0x503000147bb0,0x503000147bcc)<br>
allocated by thread T0 here:<br>
#0 0x7f55bd2f5778 in operator new(unsigned long)
../../../../src/libsanitizer/asan/asan_new_delete.cpp:95<br>
#1 0x55bd86e79106 in Ip::Address::InitAddr(addrinfo*&)
/root/squid-7.2.patched/src/ip/Address.cc:698<br>
#2 0x55bd86d6c6ab in comm_local_port(int)
/root/squid-7.2.patched/src/comm.cc:184<br>
#3 0x55bd86667a94 in Dns::Init()
/root/squid-7.2.patched/src/dns_internal.cc:1594<br>
#4 0x55bd869fe2ec in mainInitialize
/root/squid-7.2.patched/src/main.cc:1149<br>
#5 0x55bd869fe2ec in SquidMain(int, char**)
/root/squid-7.2.patched/src/main.cc:1665<br>
#6 0x55bd869ff6fe in SquidMainSafe
/root/squid-7.2.patched/src/main.cc:1351<br>
#7 0x55bd869ff6fe in main
/root/squid-7.2.patched/src/main.cc:1339<br>
#8 0x7f55bc233ca7
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
<br>
SUMMARY: AddressSanitizer: new-delete-type-mismatch
../../../../src/libsanitizer/asan/asan_new_delete.cpp:164 in
operator delete(void*, unsigned long)<br>
==284891==HINT: if you don't care about these errors you may set
ASAN_OPTIONS=new_delete_type_mismatch=0<br>
==284891==ABORTING<br>
root@artica-appliance:~#
=================================================================<br>
==284891==ERROR: AddressSanitizer: new-delete-type-mismatch on
0x503000147bb0 in thread T0:<br>
object passed to delete has wrong type:<br>
size of the allocated type: 28 bytes;<br>
size of the deallocated type: 16 bytes.<br>
#0 0x7f55bd2f6678 in operator delete(void*, unsigned long)
../../../../src/libsanitizer/asan/asan_new_delete.cpp:164<br>
#1 0x55bd86e79254 in Ip::Address::FreeAddr(addrinfo*&)
/root/squid-7.2.patched/src/ip/Address.cc:710<br>
#2 0x55bd86d6c923 in comm_local_port(int)
/root/squid-7.2.patched/src/comm.cc:194<br>
#3 0x55bd86667a94 in Dns::Init()
/root/squid-7.2.patched/src/dns_internal.cc:1594<br>
#4 0x55bd869fe2ec in mainInitialize
/root/squid-7.2.patched/src/main.cc:1149<br>
#5 0x55bd869fe2ec in SquidMain(int, char**)
/root/squid-7.2.patched/src/main.cc:1665<br>
#6 0x55bd869ff6fe in SquidMainSafe
/root/squid-7.2.patched/src/main.cc:1351<br>
#7 0x55bd869ff6fe in main
/root/squid-7.2.patched/src/main.cc:1339<br>
#8 0x7f55bc233ca7
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
#9 0x7f55bc233d64 in __libc_start_main
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
#10 0x55bd86605960 in _start (/usr/sbin/squid+0x36f960)
(BuildId: 610a22a0102aabfd95125cac39325f2ee96de29b)<br>
<br>
0x503000147bb0 is located 0 bytes inside of 28-byte region
[0x503000147bb0,0x503000147bcc)<br>
allocated by thread T0 here:<br>
#0 0x7f55bd2f5778 in operator new(unsigned long)
../../../../src/libsanitizer/asan/asan_new_delete.cpp:95<br>
#1 0x55bd86e79106 in Ip::Address::InitAddr(addrinfo*&)
/root/squid-7.2.patched/src/ip/Address.cc:698<br>
#2 0x55bd86d6c6ab in comm_local_port(int)
/root/squid-7.2.patched/src/comm.cc:184<br>
#3 0x55bd86667a94 in Dns::Init()
/root/squid-7.2.patched/src/dns_internal.cc:1594<br>
#4 0x55bd869fe2ec in mainInitialize
/root/squid-7.2.patched/src/main.cc:1149<br>
#5 0x55bd869fe2ec in SquidMain(int, char**)
/root/squid-7.2.patched/src/main.cc:1665<br>
#6 0x55bd869ff6fe in SquidMainSafe
/root/squid-7.2.patched/src/main.cc:1351<br>
#7 0x55bd869ff6fe in main
/root/squid-7.2.patched/src/main.cc:1339<br>
#8 0x7f55bc233ca7
(/usr/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId:
def5460e3cee00bfee25b429c97bcc4853e5b3a8)<br>
<br>
SUMMARY: AddressSanitizer: new-delete-type-mismatch
../../../../src/libsanitizer/asan/asan_new_delete.cpp:164 in
operator delete(void*, unsigned long)<br>
==284891==HINT: if you don't care about these errors you may set
ASAN_OPTIONS=new_delete_type_mismatch=0<br>
==284891==ABORTING<br>
<br>
I’m not exactly sure why I’m hitting this bug, but it comes from
a 6.14 → 7.2 configuration upgrade.<br data-start="190"
data-end="193">
I patched the functions <code data-start="217" data-end="243">Ip::Address::getAddrInfo</code>,
<code data-start="245" data-end="268">Ip::Address::FreeAddr</code>,
and <code data-start="274" data-end="297">Ip::Address::InitAddr</code>
to get Squid working.<br data-start="319" data-end="322">
I’m attaching the modified <code data-start="349"
data-end="361" data-is-only-node="">Address.cc</code> that
makes it run, but there may be something upstream that forced me
to change the code (most likely a <code data-start="466"
data-end="474">malloc</code>-related issue).<br>
</font>
<pre class="moz-signature" cols="72">--
David Touzeau - Artica Tech France
Development team, level 3 support
----------------------------------
P: +33 6 58 44 69 46
www: <a class="moz-txt-link-freetext" href="https://wiki.articatech.com"
moz-do-not-send="true">https://wiki.articatech.com</a>
www: <a class="moz-txt-link-freetext" href="http://articatech.net"
moz-do-not-send="true">http://articatech.net</a> </pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
squid-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<a class="moz-txt-link-freetext" href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
David Touzeau - Artica Tech France
Development team, level 3 support
----------------------------------
P: +33 6 58 44 69 46
www: <a class="moz-txt-link-freetext" href="https://wiki.articatech.com">https://wiki.articatech.com</a>
www: <a class="moz-txt-link-freetext" href="http://articatech.net">http://articatech.net</a> </pre>
<br>
</body>
</html>