[PATCH] D35085: Respect exitcode sanitizer option in UBSan

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 14:35:09 PDT 2017


fjricci abandoned this revision.
fjricci added a comment.

Looking further into it, _exit family functions don't get called on linux when return from main is used (__GI__exit in libc calls the exit syscall directly), so interception won't work. TSan and LSan get around this by calling exit() from their atexit() handlers, but we've established that we don't want to do this because of dlclose() issues. I think we're stuck with the current behavior, at least on Linux.


https://reviews.llvm.org/D35085





More information about the llvm-commits mailing list