[cfe-commits] Compiler-rt changes for detecting initialization order problems in Address Sanitizer

Reid Watson reidw at google.com
Fri Jun 29 14:35:37 PDT 2012


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 instrumentation pass, and I've
sent a patch for this to LLVM.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compilerrt-asan-initializers.patch
Type: application/octet-stream
Size: 6131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120629/630372c6/attachment.obj>


More information about the cfe-commits mailing list