[PATCH] D35443: Enable 64-bit Darwin LeakSanitizer by default on AddressSanitizer builds
Francis Ricci via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 11:20:56 PDT 2017
fjricci added a comment.
Still working on swift, but looks like bootstrapped llvm-tblgen has a few leaks. They don't show up on Linux, but they also don't really look like false positives:
Direct leak of 61440 byte(s) in 256 object(s) allocated from:
#0 0x1030e30eb in wrap__Znwm (/Users/fjricci/Source/llvm/build/lib/clang/5.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:x86_64+0x600eb)
#1 0x1029b9f56 in (anonymous namespace)::TupleExpander::expand(llvm::SetTheory&, llvm::Record*, llvm::SmallSetVector<llvm::Record*, 16u>&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100161f56)
#2 0x102cb0f3e in llvm::SetTheory::expand(llvm::Record*) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100458f3e)
#3 0x102990ad4 in llvm::CodeGenRegBank::CodeGenRegBank(llvm::RecordKeeper&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100138ad4)
#4 0x102a0f788 in llvm::CodeGenTarget::getRegBank() const (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x1001b7788)
#5 0x1028b7f82 in llvm::EmitAsmWriter(llvm::RecordKeeper&, llvm::raw_ostream&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x10005ff82)
#6 0x102bdca7a in (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100384a7a)
#7 0x102c7f1d3 in llvm::TableGenMain(char*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x1004271d3)
#8 0x102bdc390 in main (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100384390)
#9 0x7fffaf267234 in start (/usr/lib/system/libdyld.dylib:x86_64+0x5234)
Indirect leak of 80640 byte(s) in 224 object(s) allocated from:
#0 0x1030d7f30 in wrap_realloc (/Users/fjricci/Source/llvm/build/lib/clang/5.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib:x86_64+0x54f30)
#1 0x102c2e5c9 in llvm::SmallVectorBase::grow_pod(void*, unsigned long, unsigned long) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x1003d65c9)
#2 0x1029bae01 in (anonymous namespace)::TupleExpander::expand(llvm::SetTheory&, llvm::Record*, llvm::SmallSetVector<llvm::Record*, 16u>&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100162e01)
#3 0x102cb0f3e in llvm::SetTheory::expand(llvm::Record*) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100458f3e)
#4 0x102990ad4 in llvm::CodeGenRegBank::CodeGenRegBank(llvm::RecordKeeper&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100138ad4)
#5 0x102a0f788 in llvm::CodeGenTarget::getRegBank() const (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x1001b7788)
#6 0x1028b7f82 in llvm::EmitAsmWriter(llvm::RecordKeeper&, llvm::raw_ostream&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x10005ff82)
#7 0x102bdca7a in (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100384a7a)
#8 0x102c7f1d3 in llvm::TableGenMain(char*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x1004271d3)
#9 0x102bdc390 in main (/Users/fjricci/Source/llvm/bootstrap/bin/llvm-tblgen:x86_64+0x100384390)
#10 0x7fffaf267234 in start (/usr/lib/system/libdyld.dylib:x86_64+0x5234)
https://reviews.llvm.org/D35443
More information about the llvm-commits
mailing list