Page MenuHomePhabricator

Demonstrating lack of thread-safety in BackendUtil

Authored by teemperor on Wed, Mar 31, 4:34 AM.



Do not merge, this is just a demo patch.

Build with LLDB in the enabled LLVM projects and then run ninja SymbolTests ; ./tools/lldb/unittests/Symbol/SymbolTests --gtest_filter="*Fuzz*"

Diff Detail

Unit TestsFailed

610 msx64 debian > AddressSanitizer-x86_64-linux-dynamic.TestCases/Linux::malloc_delete_mismatch.cpp
Script: -- : 'RUN: at line 4'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -shared-libasan -g /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/asan/TestCases/Linux/malloc_delete_mismatch.cpp -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/asan/X86_64LinuxDynamicConfig/TestCases/Linux/Output/malloc_delete_mismatch.cpp.tmp 2>&1
910 msx64 debian > AddressSanitizer-x86_64-linux.TestCases/Linux::malloc_delete_mismatch.cpp
Script: -- : 'RUN: at line 4'; /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=address -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -m64 -g /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/asan/TestCases/Linux/malloc_delete_mismatch.cpp -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/asan/X86_64LinuxConfig/TestCases/Linux/Output/malloc_delete_mismatch.cpp.tmp 2>&1
40 msx64 debian > Clang Tools.clang-apply-replacements::conflict.cpp
Script: -- : 'RUN: at line 1'; mkdir -p /mnt/disks/ssd0/agent/llvm-project/build/tools/clang/tools/extra/test/clang-apply-replacements/Output/Inputs/conflict
40 msx64 debian > Clang Tools.clang-apply-replacements::order-dependent.cpp
Script: -- : 'RUN: at line 1'; mkdir -p /mnt/disks/ssd0/agent/llvm-project/build/tools/clang/tools/extra/test/clang-apply-replacements/Output/Inputs/order-dependent
50 msx64 debian > Clang Tools.clang-tidy/checkers::google-runtime-int.m
Script: -- : 'RUN: at line 1'; clang-tidy -checks=-*,google-runtime-int /mnt/disks/ssd0/agent/llvm-project/clang-tools-extra/test/clang-tidy/checkers/google-runtime-int.m 2>&1 -- | count 0
View Full Test Results (374 Failed)

Event Timeline

teemperor created this revision.Wed, Mar 31, 4:34 AM
teemperor requested review of this revision.Wed, Mar 31, 4:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptWed, Mar 31, 4:34 AM
teemperor abandoned this revision.Wed, Mar 31, 4:46 AM
teemperor edited the summary of this revision. (Show Details)

Not a real review, just dumping code here.

I think there's a way to post a Phab 'reivew' that won't send mail to the -commits lists, but I forget what it is. I thought it might've been some metadata tag, but can't find it (maybe @MaskRay or @mehdi_amini recall what the magic was)

arc diff 'HEAD^' --draft creates a draft Diff which triggers pre-commit bots but does not trigger llvm-commits, IIRC.