[llvm-bugs] [Bug 46333] New: race condition in writing asan/clang_rt.asan-dynamic-x86_64.vers

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 15 15:06:13 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46333

            Bug ID: 46333
           Summary: race condition in writing
                    asan/clang_rt.asan-dynamic-x86_64.vers
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: asan
          Assignee: unassignedbugs at nondot.org
          Reporter: yaxun.liu at amd.com
                CC: llvm-bugs at lists.llvm.org

when building compiler-rt, we saw errors as below:

/usr/bin/ld:/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers:447:
syntax error in VERSION script
collect2: error: ld returned 1 exit status

Investigation shows that multiple processes are trying to write to the same
clang_rt.asan-dynamic-x86_64.vers, which corrupted the file and caused build
failure later on:

9653:[2020-06-02T07:04:59.355Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a.syms
9688:[2020-06-02T07:04:59.355Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-i386.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-i386.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-i386.vers
9707:[2020-06-02T07:04:59.355Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-i386.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-i386.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-i386.vers
9713:[2020-06-02T07:04:59.355Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers
9719:[2020-06-02T07:04:59.355Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-i386.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-i386.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-i386.vers
9724:[2020-06-02T07:04:59.356Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers
9734:[2020-06-02T07:04:59.356Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--version-list --extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers
9740:[2020-06-02T07:04:59.356Z] cd
/src/external/llvm-project/compiler-rt/lib/asan && /usr/bin/python
/src/external/llvm-project/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
--extra asan.syms.extra
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a
--nm-executable /usr/bin/nm -o
/src/out/ubuntu-16.04/16.04/build/lightning/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a.syms

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200615/cf535863/attachment-0001.html>


More information about the llvm-bugs mailing list