Skip to content

[llvm-nm] Fix msan error in llvm-nm/wasm/weak-symbols.yaml.test #65538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2023
Merged

[llvm-nm] Fix msan error in llvm-nm/wasm/weak-symbols.yaml.test #65538

merged 1 commit into from
Sep 6, 2023

Conversation

danlark1
Copy link
Contributor

@danlark1 danlark1 commented Sep 6, 2023

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

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
@MaskRay MaskRay self-requested a review September 6, 2023 22:26
@MaskRay
Copy link
Member

MaskRay commented Sep 6, 2023

Please add a link https://reviews.llvm.org/D158799 to the description.

@danlark1
Copy link
Contributor Author

danlark1 commented Sep 6, 2023

Please add a link https://reviews.llvm.org/D158799 to the description.

Done

@MaskRay MaskRay merged commit aea0ea5 into llvm:main Sep 6, 2023
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
…#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants