[MacPorts] #67216: libgcc12: ASAN_OPTIONS=detect_leaks=1 causes apparent hang
MacPorts
noreply at macports.org
Mon Apr 10 14:03:45 UTC 2023
#67216: libgcc12: ASAN_OPTIONS=detect_leaks=1 causes apparent hang
----------------------+----------------------
Reporter: msbit | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: libgcc12 | Port: libgcc12
----------------------+----------------------
When running a binary I've compiled with `-fsanitize-address` with the
`ASAN_OPTIONS` variable set to `detect_leaks=1`, the process appears to
never terminate.
I note that when also adding `leak_check_at_exit=0` this doesn't occur,
but it also doesn't catch any leaks that exist at exit time. Further,
calling `__lsan_do_leak_check()` manually (with either
`leak_check_at_exit=0` or not) causes the hanging behaviour.
Attached is a reproducible script, and the output.
--
Ticket URL: <https://trac.macports.org/ticket/67216>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list