Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6 Next Backports #1947

Open
wants to merge 1 commit into
base: v6
Choose a base branch
from
Open

Commits on Nov 14, 2024

  1. Annotate PoolMalloc memory in valgrind builds (squid-cache#1946)

    MemPoolMalloc code (i.e. memory_pools code used by default) was missing
    VALGRIND_MAKE_MEM_*() calls. Similar calls do exist in MemPoolChunked
    code (i.e. code enabled by setting MEMPOOLS environment variable to 1).
    
    Even with these markings, "memory_pools on" configuration is still not
    quite compatible with Valgrind leak reporting suppressions: In some
    cases, Valgrind may still incorrectly suppress leak reporting (or report
    leaks that should have been suppressed) because Valgrind associates leak
    suppressions with memory _allocators_ while buggy code may leak memory
    allocated by others. The long-term solution (if it exists) requires
    upgrading these markings to VALGRIND_MEMPOOL_*() API targeting memory
    pools, but that requires a serious effort, especially when dealing with
    MemPoolChunked complexities. The added markings help detect non-leak
    violations and improve PoolMalloc/MemPoolChunked code symmetry.
    rousskov authored and squidadm committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    7a5547b View commit details
    Browse the repository at this point in the history