<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - race condition in writing asan/clang_rt.asan-dynamic-x86_64.vers"
   href="https://bugs.llvm.org/show_bug.cgi?id=46333">46333</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>race condition in writing asan/clang_rt.asan-dynamic-x86_64.vers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>asan
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yaxun.liu@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>