[PATCH] [lsan] Add leak_check_at_exit flag.

Alexey Samsonov samsonov at google.com
Thu Aug 1 08:14:36 PDT 2013



================
Comment at: lib/lsan/lit_tests/TestCases/leak_check_at_exit.cc:12
@@ +11,3 @@
+int main(int argc, char *argv[]) {
+  printf("printf to break optimization\n");
+  if (argc > 1)
----------------
Sergey Matveev wrote:
> Alexey Samsonov wrote:
> > Do you really need this printf here?
> Somehow atexit handlers are not invoked if main is a no-op. I didn't investigate further.
That is, LSan wouldn't run leak checking if main() is empty? I think it's
worth investigating.



http://llvm-reviews.chandlerc.com/D1258

BRANCH
  feat/detect_leaks_at_exit

ARCANIST PROJECT
  compiler-rt



More information about the llvm-commits mailing list