On 21/10/2025 12:42, David Touzeau wrote:
Hi, on debian 13, have a segmentation fault
...
0x503000147bb0 is located 0 bytes inside of 28-byte region
[0x503000147bb0,0x503000147bcc)
allocated by thread T0 here:
#0 0x7f55bd2f5778 in operator new(unsigned long) ../../../../src/
libsanitizer/asan/asan_new_delete.cpp:95
#1 0x55bd86e79106 in Ip::Address::InitAddr(addrinfo*&) /root/
squid-7.2.patched/src/ip/Address.cc:698
...
I’m not exactly sure why I’m hitting this bug, but it comes from a 6.14
→ 7.2 configuration upgrade.
I patched the functions |Ip::Address::getAddrInfo|, |
Ip::Address::FreeAddr|, and |Ip::Address::InitAddr| to get Squid working.
I’m attaching the modified |Address.cc| that makes it run, but there may
be something upstream that forced me to change the code (most likely a |
malloc|-related issue).
The issue has been there for a long while. Recent updates to GCC 15 have
just started catching it.
The official patch can be downloaded from
<https://github.com/squid-cache/squid/commit/5750e4fc76b55f7bc27ae8b8953e491991a91e55>.
I have also scheduled a backport to get it into 7.3. Sorry it was missed
out of the previous v7.x releases.
HTH
Amos
_______________________________________________
squid-users mailing list
[email protected]
https://lists.squid-cache.org/listinfo/squid-users