[LLVMbugs] [Bug 22551] New: -fsanitize-address enables the leak checker by default
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 11 14:13:34 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22551
Bug ID: 22551
Summary: -fsanitize-address enables the leak checker by default
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: sstewartgallus00 at mylangara.bc.ca
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Sometime lately, the leak checker was enabled by default with the address
checker. This is wrong because it breaks otherwise working multiprocess
applications. Often times, a memory leak is of no consequence if it does not
grow over time and is freed when the application exits. However, when the leak
checker is enabled such an application exits with a nonzero exit status even if
it would have exited normally otherwise. In such a case, many monitoring
systems restart the process that exited with a nonzero exit status.
There are two reasonable workarounds I can think of.
Don't enable the leak checker by default with the address sanitizer.
Don't override the application's exit code in the leak checker.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150211/f600c149/attachment.html>
More information about the llvm-bugs
mailing list