[llvm-commits] LLVM changes for detecting initialization order problems in Address Sanitizer

Dmitry Vyukov dvyukov at google.com
Mon Jul 2 10:25:41 PDT 2012


Does it take into account that global ctors may create threads (that access
globals in the same TU)?


On Sat, Jun 30, 2012 at 1:36 AM, Reid Watson <reidw at google.com> wrote:

> Hello,
>
> I've attached a patch to add basic support for detecting problems with
> initialization order in C++ to AddressSanitizer.
> This patch relies on changes to the runtime library, and I've sent a
> patch for this to cfe-commits.
> This is definitely a first draft, and it leans toward false positives
> (function local statics, in particular), but it does detect the most
> basic cases of the "static initialization order fiasco".
> For now, I'd like to get a working baseline/infrastructure committed,
> in order to avoid any monster commits.
>
> All the best,
> Reid
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120702/9df0d58c/attachment.html>


More information about the llvm-commits mailing list