Skip to content
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

Memory sanitizer fails. #365

Closed
Cvelth opened this issue May 1, 2020 · 3 comments
Closed

Memory sanitizer fails. #365

Cvelth opened this issue May 1, 2020 · 3 comments

Comments

@Cvelth
Copy link
Contributor

Cvelth commented May 1, 2020

Description

Included with clang memory sanitizer fails when running the tests: link to a workflow output (*.yml)

Steps to reproduce

Run tests with memory sanitizer enabled (-fsanitize=memory on clang).

Extra information

  • doctest version: dev branch
  • Operating System: ubuntu-latest (Github Actions)
  • Compiler+version: Clang 9.0.0 / Clang 10.0.0
@Cvelth
Copy link
Contributor Author

Cvelth commented May 2, 2020

Update: seems like it's an issue with libc++, as something as simple, as this produces the same error:

#include <iostream>
int main() {
	std::cout << "\033[0;36msome text" << std::endl;
}

image

@onqtam
Copy link
Member

onqtam commented May 2, 2020

The stdlib needs to be instrumented with MSAN as well - in contrast to ASAN/UBSAN..
https://github.com/onqtam/doctest/issues?q=memory+sanitizer

@Cvelth
Copy link
Contributor Author

Cvelth commented May 2, 2020

Sorry for a false positive. Thanks for the correction.

@Cvelth Cvelth closed this as completed May 2, 2020
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

No branches or pull requests

2 participants