[all-commits] [llvm/llvm-project] aea0ea: [llvm-nm] Fix msan error in llvm-nm/wasm/weak-symb...

Daniel Kutenin via All-commits all-commits at lists.llvm.org
Wed Sep 6 15:30:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aea0ea57b703efb2c376404001cad61b7d99d2fb
      https://github.com/llvm/llvm-project/commit/aea0ea57b703efb2c376404001cad61b7d99d2fb
  Author: Daniel Kutenin <kutdanila at yandex.ru>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M llvm/tools/llvm-nm/llvm-nm.cpp

  Log Message:
  -----------
  [llvm-nm] Fix msan error in llvm-nm/wasm/weak-symbols.yaml.test (#65538)

This happened because we had a section

```
- Index:           3
         Kind:            DATA
         Name:            weak_import_data
         Flags:           [ BINDING_WEAK, UNDEFINED ]
```

Which does not have size. We managed to reproduce it by building llvm
under msan with libcxx as a standard library and debug mode with
-D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK. It called comp(a, a) and
full tie detected uninitialized memory

This started to happen after https://reviews.llvm.org/D158799




More information about the All-commits mailing list