vitalybuka added a comment.

After this patch 
https://lab.llvm.org/buildbot/#/builders/74/builds/9049/steps/15/logs/stdio

  Note: Google Test filter = SortImportsTestJS.ImportEqAliases
  [==========] Running 1 test from 1 test suite.
  [----------] Global test environment set-up.
  [----------] 1 test from SortImportsTestJS
  [ RUN      ] SortImportsTestJS.ImportEqAliases
  ==6361==WARNING: MemorySanitizer: use-of-uninitialized-value
      #0 0x1341207 in 
clang::format::JavaScriptImportSorter::parseModuleReference(clang::format::AdditionalKeywords
 const&, clang::format::JsModuleReference&) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:456:9
      #1 0x133ac9d in 
clang::format::JavaScriptImportSorter::parseModuleReferences(clang::format::AdditionalKeywords
 const&, llvm::SmallVectorImpl<clang::format::AnnotatedLine*>&) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:406:12
      #2 0x1336c97 in 
clang::format::JavaScriptImportSorter::analyze(clang::format::TokenAnnotator&, 
llvm::SmallVectorImpl<clang::format::AnnotatedLine*>&, 
clang::format::FormatTokenLexer&) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:149:9
      #3 0x1358d64 in clang::format::TokenAnalyzer::process() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/TokenAnalyzer.cpp:126:9
      #4 0x133635f in 
clang::format::sortJavaScriptImports(clang::format::FormatStyle const&, 
llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:575:46
      #5 0x11cddd1 in clang::format::sortIncludes(clang::format::FormatStyle 
const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, 
llvm::StringRef, unsigned int*) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/Format.cpp:2889:12
      #6 0xd9ead7 in sort 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/unittests/Format/SortImportsTestJS.cpp:28:36
      #7 0xd9ead7 in clang::format::(anonymous 
namespace)::SortImportsTestJS::_verifySort(char const*, int, llvm::StringRef, 
llvm::StringRef, unsigned int, unsigned int) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/unittests/Format/SortImportsTestJS.cpp:40:26
      #8 0xda4ea6 in clang::format::(anonymous 
namespace)::SortImportsTestJS_ImportEqAliases_Test::TestBody() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/unittests/Format/SortImportsTestJS.cpp:450:3
      #9 0x106fe3d in HandleExceptionsInMethodIfSupported<testing::Test, void> 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc
      #10 0x106fe3d in testing::Test::Run() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2508:5
      #11 0x1075215 in testing::TestInfo::Run() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2684:11
      #12 0x10776b0 in testing::TestSuite::Run() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2816:28
      #13 0x10b8336 in testing::internal::UnitTestImpl::RunAllTests() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:5338:44
      #14 0x10b5f4d in 
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc
      #15 0x10b5f4d in testing::UnitTest::Run() 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4925:10
      #16 0x1047984 in RUN_ALL_TESTS 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2473:46
      #17 0x1047984 in main 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10
      #18 0x7f9bc766509a in __libc_start_main 
(/lib/x86_64-linux-gnu/libc.so.6+0x2409a) (BuildId: 
18b9a9a8c523e5cfe5b5d946d605d09242f09798)
      #19 0x459779 in _start 
(/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/tools/clang/unittests/Format/FormatTests+0x459779)
  
    Uninitialized value was created by an allocation of 'ref.tmp3' in the stack 
frame of function 
'_ZN5clang6format21sortJavaScriptImportsERKNS0_11FormatStyleEN4llvm9StringRefENS4_8ArrayRefINS_7tooling5RangeEEES5_'
      #0 0x1335d20 in 
clang::format::sortJavaScriptImports(clang::format::FormatStyle const&, 
llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef) 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:570
  SUMMARY: MemorySanitizer: use-of-uninitialized-value 
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/lib/Format/SortJavaScriptImports.cpp:456:9
 in 
clang::format::JavaScriptImportSorter::parseModuleReference(clang::format::AdditionalKeywords
 const&, clang::format::JsModuleReference&)
  Exiting
  ********************
  Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118361/new/

https://reviews.llvm.org/D118361

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to