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

MSAN is saying std::cout is uninitialized #43316

Closed
ghost opened this issue Sep 3, 2020 · 2 comments
Closed

MSAN is saying std::cout is uninitialized #43316

ghost opened this issue Sep 3, 2020 · 2 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening library-ffi type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@ghost
Copy link

ghost commented Sep 3, 2020

vm-kernel-msan-linux-release-x64 is currently failing with:

==11039==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7fa9b26ae04c in std::__2::basic_ostream<char, std::__2::char_traits<char> >& std::__2::__put_character_sequence<char, std::__2::char_traits<char> >(std::__2::basic_ostream<char, std::__2::char_traits<char> >&, char const*, unsigned long) ../../out/ReleaseMSANX64/../../buildtools/linux-x64/clang/bin/../include/c++/v1/ostream:727:13
    #1 0x7fa9b26a55ae in std::__2::basic_ostream<char, std::__2::char_traits<char> >& std::__2::operator<<<std::__2::char_traits<char> >(std::__2::basic_ostream<char, std::__2::char_traits<char> >&, char const*) ../../out/ReleaseMSANX64/../../buildtools/linux-x64/clang/bin/../include/c++/v1/ostream:869:12
    #2 0x7fa9b26a55ae in SumVeryManySmallInts ../../out/ReleaseMSANX64/../../runtime/bin/ffi_test/ffi_test_functions.cc:348:13

Which AFAICT points to std::cout: google/sanitizers#712.

The suggested fix is that libc++ needs to be built with MSan.

I do however not know if this is an issue with Dart, FFI, or something else.

@ghost ghost added area-build Use area-build for SDK build issues. gardening library-ffi type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Sep 3, 2020
@ghost
Copy link
Author

ghost commented Sep 3, 2020

[@dcharkes for FFI]

@dcharkes
Copy link
Contributor

dcharkes commented Sep 3, 2020

Thanks for reporting.

Duplicate of #43075.

@dcharkes dcharkes closed this as completed Sep 3, 2020
@dcharkes dcharkes added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. and removed area-build Use area-build for SDK build issues. labels Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening library-ffi type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant