Opened 13 months ago

Last modified 13 months ago

#67216 new defect

libgcc12: ASAN_OPTIONS=detect_leaks=1 causes apparent hang

Reported by: msbit (Tom Sullivan) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: libgcc12

Description

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.

Attachments (2)

run.1681134439.sh (183 bytes) - added by msbit (Tom Sullivan) 13 months ago.
reproducible script
output (8.4 KB) - added by msbit (Tom Sullivan) 13 months ago.
output of the script, including sample

Download all attachments as: .zip

Change History (4)

Changed 13 months ago by msbit (Tom Sullivan)

Attachment: run.1681134439.sh added

reproducible script

Changed 13 months ago by msbit (Tom Sullivan)

Attachment: output added

output of the script, including sample

comment:1 Changed 13 months ago by msbit (Tom Sullivan)

Version: 2.8.1

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: libgcc12 removed
Note: See TracTickets for help on using tickets.