Skip to content

Instantly share code, notes, and snippets.

@njames93
Created July 2, 2020 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njames93/ab23dd038e406f4164520b723275abb4 to your computer and use it in GitHub Desktop.
Save njames93/ab23dd038e406f4164520b723275abb4 to your computer and use it in GitHub Desktop.
ninja check-clangd fsanatize=thread
This file has been truncated, but you can view the full file.
[0/1] Running the Clangd regression tests
-- Testing: 830 tests, 12 workers --
Testing: llvm-lit: /home/nathan/src/llvm-project/build/Release/bin/../../../llvm/utils/lit/lit/llvm/config.py:343: note: using clang: /home/nathan/src/llvm-project/build/Release/bin/clang
FAIL: Clangd :: delimited-input-comment-at-the-end.test (2 of 830)
******************** TEST 'Clangd :: delimited-input-comment-at-the-end.test' FAILED ********************
Script:
--
: 'RUN: at line 1'; clangd -input-style=delimited -sync -input-mirror-file /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/delimited-input-comment-at-the-end.test.tmp < /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/delimited-input-comment-at-the-end.test
: 'RUN: at line 2'; grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/delimited-input-comment-at-the-end.test.tmp
: 'RUN: at line 4'; clangd -lit-test -input-mirror-file /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/delimited-input-comment-at-the-end.test.tmp < /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/delimited-input-comment-at-the-end.test
: 'RUN: at line 5'; grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/delimited-input-comment-at-the-end.test.tmp
--
Exit Code: 66
Command Output (stdout):
--
Content-Length: 1393
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"codeActionProvider":true,"completionProvider":{"allCommitCharacters":" \t()[]{}<>:;,+-/*%^&#?.=\"'|","resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"referencesProvider":true,"renameProvider":true,"selectionRangeProvider":true,"semanticTokensProvider":{"documentProvider":{"edits":true},"legend":{"tokenModifiers":[],"tokenTypes":["variable","variable","parameter","function","member","function","member","variable","class","enum","enumConstant","type","dependent","dependent","namespace","typeParameter","concept","type","macro","comment"]},"rangeProvider":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)"}}}Content-Length: 38
{"id":3,"jsonrpc":"2.0","result":null}
--
Command Output (stderr):
--
I[11:46:09.817] clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)
I[11:46:09.818] PID: 1332247
I[11:46:09.818] Working directory: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test
I[11:46:09.818] argv[0]: clangd
I[11:46:09.818] argv[1]: -input-style=delimited
I[11:46:09.818] argv[2]: -sync
I[11:46:09.818] argv[3]: -input-mirror-file
I[11:46:09.818] argv[4]: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/delimited-input-comment-at-the-end.test.tmp
I[11:46:09.818] Starting LSP over stdin/stdout
I[11:46:09.821] <-- initialize(0)
I[11:46:09.837] --> reply:initialize(0) 16 ms
I[11:46:09.838] <-- shutdown(3)
I[11:46:09.838] --> reply:shutdown(3) 0 ms
I[11:46:09.839] <-- exit
I[11:46:09.839] LSP finished, exiting with status 0
==================
WARNING: ThreadSanitizer: thread leak (pid=1332247)
Thread T1 'ground-worker-1' (tid=1332272, finished) created by main thread at:
#0 pthread_create <null> (clangd+0x44eb4b)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (clangd+0x5ef871)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (clangd+0x5ef9ff)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (clangd+0xffc4c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (clangd+0xf40a56)
#5 make_unique<clang::clangd::BackgroundIndex, clang::clangd::Context, const clang::clangd::ThreadsafeFS &, const clang::clangd::GlobalCompilationDatabase &, llvm::unique_function<clang::clangd::BackgroundIndexStorage *(llvm::StringRef)>, const unsigned int &, (lambda at /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:170:9)> /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:857:34 (clangd+0xd931b6)
#6 clang::clangd::ClangdServer::ClangdServer(clang::clangd::GlobalCompilationDatabase const&, clang::clangd::ThreadsafeFS const&, clang::clangd::ClangdServer::Options const&, clang::clangd::ClangdServer::Callbacks*) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:165:21 (clangd+0xd931b6)
#7 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:89:43 (clangd+0xd3e514)
#8 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:238:13 (clangd+0xd3e514)
#9 clang::clangd::ClangdLSPServer::onInitialize(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:527:12 (clangd+0xd3e514)
#10 void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)::operator()(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:256:9 (clangd+0xd79826)
#11 std::_Function_handler<void (llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce), void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)>::_M_invoke(std::_Any_data const&, llvm::json::Value&&, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (clangd+0xd79307)
#12 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (clangd+0xd5a67b)
#13 clang::clangd::ClangdLSPServer::MessageHandler::onCall(llvm::StringRef, llvm::json::Value, llvm::json::Value) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:202:7 (clangd+0xd5a67b)
#14 handleMessage /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:188:20 (clangd+0xe4fbc0)
#15 clang::clangd::(anonymous namespace)::JSONTransport::loop(clang::clangd::Transport::MessageHandler&) /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:114:16 (clangd+0xe4fbc0)
#16 clang::clangd::ClangdLSPServer::run() /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:1411:25 (clangd+0xd52603)
#17 main /home/nathan/src/llvm-project/clang-tools-extra/clangd/tool/ClangdMain.cpp:777:28 (clangd+0x5700ed)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/bin/clangd+0x44eb4b) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
--
********************
Testing:
FAIL: Clangd :: background-index.test (10 of 830)
******************** TEST 'Clangd :: background-index.test' FAILED ********************
Script:
--
: 'RUN: at line 5'; rm -rf /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp
: 'RUN: at line 6'; cp -r /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/Inputs/background-index /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp
: 'RUN: at line 8'; sed -i -e "s|DIRECTORY|/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp|" /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/definition.jsonrpc
: 'RUN: at line 9'; sed -i -e "s|DIRECTORY|/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp|" /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/compile_commands.json
: 'RUN: at line 15'; clangd -background-index -lit-test < /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/definition.jsonrpc | FileCheck /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/definition.jsonrpc --check-prefixes=CHECK,BUILD
: 'RUN: at line 18'; ls /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/.clangd/index/foo.cpp.*.idx
: 'RUN: at line 19'; ls /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/sub_dir/.clangd/index/foo.h.*.idx
: 'RUN: at line 22'; rm /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp
: 'RUN: at line 23'; clangd -background-index -lit-test < /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/definition.jsonrpc | FileCheck /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/definition.jsonrpc --check-prefixes=CHECK,USE
--
Exit Code: 66
Command Output (stderr):
--
I[11:46:09.840] clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)
I[11:46:09.841] PID: 1332269
I[11:46:09.841] Working directory: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test
I[11:46:09.841] argv[0]: clangd
I[11:46:09.841] argv[1]: -background-index
I[11:46:09.850] argv[2]: -lit-test
I[11:46:09.850] Starting LSP over stdin/stdout
V[11:46:09.852] <<< {
"id": 0,
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"capabilities": {
"window": {
"implicitWorkDoneProgressCreate": true,
"workDoneProgress": true
}
},
"processId": 123,
"rootPath": "clangd",
"trace": "off"
}
}
I[11:46:09.852] <-- initialize(0)
I[11:46:09.862] --> reply:initialize(0) 10 ms
V[11:46:09.863] >>> {
"id": 0,
"jsonrpc": "2.0",
"result": {
"capabilities": {
"codeActionProvider": true,
"completionProvider": {
"allCommitCharacters": " \t()[]{}<>:;,+-/*%^&#?.=\"'|",
"resolveProvider": false,
"triggerCharacters": [
".",
"<",
">",
":",
"\"",
"/"
]
},
"declarationProvider": true,
"definitionProvider": true,
"documentFormattingProvider": true,
"documentHighlightProvider": true,
"documentLinkProvider": {
"resolveProvider": false
},
"documentOnTypeFormattingProvider": {
"firstTriggerCharacter": "\n",
"moreTriggerCharacter": []
},
"documentRangeFormattingProvider": true,
"documentSymbolProvider": true,
"executeCommandProvider": {
"commands": [
"clangd.applyFix",
"clangd.applyTweak"
]
},
"hoverProvider": true,
"referencesProvider": true,
"renameProvider": true,
"selectionRangeProvider": true,
"semanticTokensProvider": {
"documentProvider": {
"edits": true
},
"legend": {
"tokenModifiers": [],
"tokenTypes": [
"variable",
"variable",
"parameter",
"function",
"member",
"function",
"member",
"variable",
"class",
"enum",
"enumConstant",
"type",
"dependent",
"dependent",
"namespace",
"typeParameter",
"concept",
"type",
"macro",
"comment"
]
},
"rangeProvider": false
},
"signatureHelpProvider": {
"triggerCharacters": [
"(",
","
]
},
"textDocumentSync": {
"change": 2,
"openClose": true,
"save": true
},
"typeHierarchyProvider": true,
"workspaceSymbolProvider": true
},
"serverInfo": {
"name": "clangd",
"version": "clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)"
}
}
}
V[11:46:09.864] <<< {
"jsonrpc": "2.0",
"method": "textDocument/didOpen",
"params": {
"textDocument": {
"languageId": "cpp",
"text": "#include \"sub_dir/foo.h\"\nint main(){\nreturn foo();\n}",
"uri": "file:///home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp",
"version": 1
}
}
}
I[11:46:09.864] <-- textDocument/didOpen
I[11:46:09.868] Loaded compilation database from /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp
I[11:46:09.868] --> $/progress
V[11:46:09.868] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "begin",
"percentage": 0,
"title": "indexing"
}
}
}
I[11:46:09.868] --> $/progress
V[11:46:09.869] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "report",
"message": "0/1",
"percentage": 0
}
}
}
I[11:46:09.878] --> $/progress
V[11:46:09.878] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "report",
"message": "0/1",
"percentage": 0
}
}
}
I[11:46:09.878] Enqueueing 1 commands for indexing
V[11:46:09.878] Failed to load shard: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp
I[11:46:09.879] --> $/progress
V[11:46:09.879] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "report",
"message": "0/2",
"percentage": 0
}
}
}
I[11:46:09.880] --> $/progress
V[11:46:09.880] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "report",
"message": "1/2",
"percentage": 50
}
}
}
I[11:46:09.880] --> $/progress
V[11:46:09.880] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "report",
"message": "1/2",
"percentage": 50
}
}
}
V[11:46:09.880] Indexing /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp (digest:=38045A5BF6B029BF)
I[11:46:09.892] ASTWorker building file /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp version 1 with command inferred from /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp
[/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp]
/home/nathan/src/llvm-project/build/Release/bin/clang /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp -fsyntax-only -resource-dir=/home/nathan/src/llvm-project/build/Release/lib/clang/11.0.0
V[11:46:09.918] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir /home/nathan/src/llvm-project/build/Release/lib/clang/11.0.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/x86_64-linux-gnu/c++/9 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/backward -internal-isystem /usr/local/include -internal-isystem /home/nathan/src/llvm-project/build/Release/lib/clang/11.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp
V[11:46:09.918] Building first preamble for /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp version 1
I[11:46:09.962] Indexed /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp (1 symbols, 3 refs, 2 files)
I[11:46:09.964] Loaded compilation database from /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/sub_dir
V[11:46:09.965] BackgroundIndex: building version 1 after indexing enough files
V[11:46:09.965] BackgroundIndex: serving version 1 (21748 bytes)
I[11:46:09.970] --> $/progress
V[11:46:09.971] >>> {
"jsonrpc": "2.0",
"method": "$/progress",
"params": {
"token": "backgroundIndexProgress",
"value": {
"kind": "end"
}
}
}
V[11:46:10.112] indexed preamble AST for /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp version 1:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
V[11:46:10.113] Build dynamic index for header symbols with estimated memory usage of 7028 bytes
V[11:46:10.115] Built preamble of size 204644 for file /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp version 1
V[11:46:10.252] indexed file AST for /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp version 1:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
V[11:46:10.253] Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
I[11:46:10.253] --> textDocument/publishDiagnostics
V[11:46:10.253] >>> {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [],
"uri": "file:///home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp",
"version": 1
}
}
V[11:46:10.253] <<< {
"id": 1,
"jsonrpc": "2.0",
"method": "sync",
"params": null
}
I[11:46:10.253] <-- sync(1)
I[11:46:10.254] --> reply:sync(1) 0 ms
V[11:46:10.254] >>> {
"id": 1,
"jsonrpc": "2.0",
"result": null
}
V[11:46:10.254] <<< {
"id": 2,
"jsonrpc": "2.0",
"method": "textDocument/definition",
"params": {
"position": {
"character": 8,
"line": 2
},
"textDocument": {
"uri": "file:///home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp"
}
}
}
I[11:46:10.255] <-- textDocument/definition(2)
V[11:46:10.255] ASTWorker running Definitions on version 1 of /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/bar.cpp
I[11:46:10.256] --> reply:textDocument/definition(2) 1 ms
V[11:46:10.257] >>> {
"id": 2,
"jsonrpc": "2.0",
"result": [
{
"range": {
"end": {
"character": 7,
"line": 1
},
"start": {
"character": 4,
"line": 1
}
},
"uri": "file:///home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/background-index.test.tmp/foo.cpp"
}
]
}
V[11:46:10.257] <<< {
"id": 3,
"jsonrpc": "2.0",
"method": "shutdown"
}
I[11:46:10.257] <-- shutdown(3)
I[11:46:10.257] --> reply:shutdown(3) 0 ms
V[11:46:10.257] >>> {
"id": 3,
"jsonrpc": "2.0",
"result": null
}
V[11:46:10.257] <<< {
"jsonrpc": "2.0",
"method": "exit"
}
I[11:46:10.257] <-- exit
I[11:46:10.258] LSP finished, exiting with status 0
==================
WARNING: ThreadSanitizer: thread leak (pid=1332269)
Thread T1 'ground-worker-1' (tid=1332277, finished) created by main thread at:
#0 pthread_create <null> (clangd+0x44eb4b)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (clangd+0x5ef871)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (clangd+0x5ef9ff)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (clangd+0xffc4c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (clangd+0xf40a56)
#5 make_unique<clang::clangd::BackgroundIndex, clang::clangd::Context, const clang::clangd::ThreadsafeFS &, const clang::clangd::GlobalCompilationDatabase &, llvm::unique_function<clang::clangd::BackgroundIndexStorage *(llvm::StringRef)>, const unsigned int &, (lambda at /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:170:9)> /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:857:34 (clangd+0xd931b6)
#6 clang::clangd::ClangdServer::ClangdServer(clang::clangd::GlobalCompilationDatabase const&, clang::clangd::ThreadsafeFS const&, clang::clangd::ClangdServer::Options const&, clang::clangd::ClangdServer::Callbacks*) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:165:21 (clangd+0xd931b6)
#7 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:89:43 (clangd+0xd3e514)
#8 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:238:13 (clangd+0xd3e514)
#9 clang::clangd::ClangdLSPServer::onInitialize(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:527:12 (clangd+0xd3e514)
#10 void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)::operator()(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:256:9 (clangd+0xd79826)
#11 std::_Function_handler<void (llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce), void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)>::_M_invoke(std::_Any_data const&, llvm::json::Value&&, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (clangd+0xd79307)
#12 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (clangd+0xd5a67b)
#13 clang::clangd::ClangdLSPServer::MessageHandler::onCall(llvm::StringRef, llvm::json::Value, llvm::json::Value) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:202:7 (clangd+0xd5a67b)
#14 handleMessage /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:188:20 (clangd+0xe4fbc0)
#15 clang::clangd::(anonymous namespace)::JSONTransport::loop(clang::clangd::Transport::MessageHandler&) /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:114:16 (clangd+0xe4fbc0)
#16 clang::clangd::ClangdLSPServer::run() /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:1411:25 (clangd+0xd52603)
#17 main /home/nathan/src/llvm-project/clang-tools-extra/clangd/tool/ClangdMain.cpp:777:28 (clangd+0x5700ed)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/bin/clangd+0x44eb4b) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
--
********************
Testing: 0
FAIL: Clangd :: input-mirror.test (33 of 830)
******************** TEST 'Clangd :: input-mirror.test' FAILED ********************
Script:
--
: 'RUN: at line 1'; clangd -pretty -sync -input-mirror-file /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/input-mirror.test.tmp < /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/input-mirror.test
: 'RUN: at line 3'; diff -b /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/input-mirror.test.tmp /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/input-mirror.test
--
Exit Code: 66
Command Output (stdout):
--
Content-Length: 2258
{
"id": 0,
"jsonrpc": "2.0",
"result": {
"capabilities": {
"codeActionProvider": true,
"completionProvider": {
"allCommitCharacters": " \t()[]{}<>:;,+-/*%^&#?.=\"'|",
"resolveProvider": false,
"triggerCharacters": [
".",
"<",
">",
":",
"\"",
"/"
]
},
"declarationProvider": true,
"definitionProvider": true,
"documentFormattingProvider": true,
"documentHighlightProvider": true,
"documentLinkProvider": {
"resolveProvider": false
},
"documentOnTypeFormattingProvider": {
"firstTriggerCharacter": "\n",
"moreTriggerCharacter": []
},
"documentRangeFormattingProvider": true,
"documentSymbolProvider": true,
"executeCommandProvider": {
"commands": [
"clangd.applyFix",
"clangd.applyTweak"
]
},
"hoverProvider": true,
"referencesProvider": true,
"renameProvider": true,
"selectionRangeProvider": true,
"semanticTokensProvider": {
"documentProvider": {
"edits": true
},
"legend": {
"tokenModifiers": [],
"tokenTypes": [
"variable",
"variable",
"parameter",
"function",
"member",
"function",
"member",
"variable",
"class",
"enum",
"enumConstant",
"type",
"dependent",
"dependent",
"namespace",
"typeParameter",
"concept",
"type",
"macro",
"comment"
]
},
"rangeProvider": false
},
"signatureHelpProvider": {
"triggerCharacters": [
"(",
","
]
},
"textDocumentSync": {
"change": 2,
"openClose": true,
"save": true
},
"typeHierarchyProvider": true,
"workspaceSymbolProvider": true
},
"serverInfo": {
"name": "clangd",
"version": "clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)"
}
}
}Content-Length: 51
{
"id": 3,
"jsonrpc": "2.0",
"result": null
}
--
Command Output (stderr):
--
I[11:46:12.916] clangd version 11.0.0 (git@github.com:llvm/llvm-project.git d3bf1f3af2f26a7c100c3aa6b8ae93feb7034cb8)
I[11:46:12.917] PID: 1332399
I[11:46:12.917] Working directory: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test
I[11:46:12.917] argv[0]: clangd
I[11:46:12.917] argv[1]: -pretty
I[11:46:12.917] argv[2]: -sync
I[11:46:12.917] argv[3]: -input-mirror-file
I[11:46:12.917] argv[4]: /home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/test/Output/input-mirror.test.tmp
I[11:46:12.917] Starting LSP over stdin/stdout
I[11:46:12.924] <-- initialize(0)
I[11:46:12.931] --> reply:initialize(0) 6 ms
I[11:46:12.932] Warning: Missing Content-Length header, or zero-length message.
I[11:46:12.932] <-- textDocument/didOpen
E[11:46:12.932] Can't find scheme: test
E[11:46:12.932] Failed to decode textDocument/didOpen request.
I[11:46:12.932] Warning: Missing Content-Length header, or zero-length message.
I[11:46:12.933] <-- shutdown(3)
I[11:46:12.933] --> reply:shutdown(3) 0 ms
I[11:46:12.933] Warning: Missing Content-Length header, or zero-length message.
I[11:46:12.933] <-- exit
I[11:46:12.933] LSP finished, exiting with status 0
==================
WARNING: ThreadSanitizer: thread leak (pid=1332399)
Thread T1 'ground-worker-1' (tid=1332407, finished) created by main thread at:
#0 pthread_create <null> (clangd+0x44eb4b)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (clangd+0x5ef871)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (clangd+0x5ef9ff)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (clangd+0xffc4c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (clangd+0xf40a56)
#5 make_unique<clang::clangd::BackgroundIndex, clang::clangd::Context, const clang::clangd::ThreadsafeFS &, const clang::clangd::GlobalCompilationDatabase &, llvm::unique_function<clang::clangd::BackgroundIndexStorage *(llvm::StringRef)>, const unsigned int &, (lambda at /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:170:9)> /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:857:34 (clangd+0xd931b6)
#6 clang::clangd::ClangdServer::ClangdServer(clang::clangd::GlobalCompilationDatabase const&, clang::clangd::ThreadsafeFS const&, clang::clangd::ClangdServer::Options const&, clang::clangd::ClangdServer::Callbacks*) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:165:21 (clangd+0xd931b6)
#7 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:89:43 (clangd+0xd3e514)
#8 emplace<clang::clangd::OverlayCDB &, const clang::clangd::ThreadsafeFS &, clang::clangd::ClangdServer::Options &, clang::clangd::ClangdServer::Callbacks *> /home/nathan/src/llvm-project/llvm/include/llvm/ADT/Optional.h:238:13 (clangd+0xd3e514)
#9 clang::clangd::ClangdLSPServer::onInitialize(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:527:12 (clangd+0xd3e514)
#10 void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)::operator()(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:256:9 (clangd+0xd79826)
#11 std::_Function_handler<void (llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce), void clang::clangd::ClangdLSPServer::MessageHandler::bind<clang::clangd::InitializeParams, llvm::json::Value>(char const*, void (clang::clangd::ClangdLSPServer::*)(clang::clangd::InitializeParams const&, llvm::unique_function<void (llvm::Expected<llvm::json::Value>)>))::'lambda'(llvm::json::Value, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce)>::_M_invoke(std::_Any_data const&, llvm::json::Value&&, clang::clangd::ClangdLSPServer::MessageHandler::ReplyOnce&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (clangd+0xd79307)
#12 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (clangd+0xd5a67b)
#13 clang::clangd::ClangdLSPServer::MessageHandler::onCall(llvm::StringRef, llvm::json::Value, llvm::json::Value) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:202:7 (clangd+0xd5a67b)
#14 handleMessage /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:188:20 (clangd+0xe4fbc0)
#15 clang::clangd::(anonymous namespace)::JSONTransport::loop(clang::clangd::Transport::MessageHandler&) /home/nathan/src/llvm-project/clang-tools-extra/clangd/JSONTransport.cpp:114:16 (clangd+0xe4fbc0)
#16 clang::clangd::ClangdLSPServer::run() /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdLSPServer.cpp:1411:25 (clangd+0xd52603)
#17 main /home/nathan/src/llvm-project/clang-tools-extra/clangd/tool/ClangdMain.cpp:777:28 (clangd+0x5700ed)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/bin/clangd+0x44eb4b) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
--
********************
Testing: 0
FAIL: Clangd :: spaces-in-delimited-input.test (42 of 830)
******************** TEST 'Clangd :: spaces-in-delimited-input.test' FAILED ********************
Script:
--
: 'RUN: at line 1'; clangd -input-style=delimited -sync < /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/spaces-in-delimited-input.test 2>&1 | FileCheck /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/spaces-in-delimited-input.test
: 'RUN: at line 2'; clangd -lit-test -sync < /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/spaces-in-delimited-input.test 2>&1 | FileCheck /home/nathan/src/llvm-project/clang-tools-extra/clangd/test/spaces-in-delimited-input.test
--
Exit Code: 66
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.DirectIncludesTest (72 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.DirectIncludesTest' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.DirectIncludesTest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.DirectIncludesTest
[ OK ] BackgroundIndexTest.DirectIncludesTest (139 ms)
[----------] 1 test from BackgroundIndexTest (139 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (139 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=560402FA845AC8DF)
Indexed /clangd-test/root/A.cc (4 symbols, 4 refs, 3 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (24648 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332624)
Thread T1 'ground-worker-1' (tid=1332630, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_DirectIncludesTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:270:21 (ClangdTests+0x5caaf2)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.CmdLineHash (73 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.CmdLineHash' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.CmdLineHash
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.CmdLineHash
[ OK ] BackgroundIndexTest.CmdLineHash (163 ms)
[----------] 1 test from BackgroundIndexTest (163 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (164 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/A.cc
Indexing ../A.cc (digest:=9FB0F4837DD4795B)
Indexed ../A.cc (0 symbols, 0 refs, 2 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (576 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 2 after loading index from disk
BackgroundIndex: serving version 2 (576 bytes)
Indexing ../A.cc (digest:=8D6368B6CEF59C07)
Indexed ../A.cc (0 symbols, 0 refs, 1 files)
BackgroundIndex: building version 3 when background indexer is idle
BackgroundIndex: serving version 3 (576 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332623)
Thread T1 'ground-worker-1' (tid=1332639, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_CmdLineHash_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:538:19 (ClangdTests+0x5dc245)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.NoDotsInAbsPath (74 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.NoDotsInAbsPath' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.NoDotsInAbsPath
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.NoDotsInAbsPath
[ OK ] BackgroundIndexTest.NoDotsInAbsPath (221 ms)
[----------] 1 test from BackgroundIndexTest (221 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (222 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing ../A.cc (digest:=99E9D85137DB46EF)
Indexed ../A.cc (0 symbols, 0 refs, 1 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (288 bytes)
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/B.cc
Indexing ./B.cc (digest:=99E9D85137DB46EF)
Indexed ./B.cc (0 symbols, 0 refs, 1 files)
BackgroundIndex: building version 2 when background indexer is idle
BackgroundIndex: serving version 2 (576 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332631)
Thread T1 'ground-worker-1' (tid=1332651, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_NoDotsInAbsPath_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:444:19 (ClangdTests+0x5d4cee)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageLoad (77 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageLoad' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.ShardStorageLoad
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.ShardStorageLoad
[ OK ] BackgroundIndexTest.ShardStorageLoad (338 ms)
[----------] 1 test from BackgroundIndexTest (338 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (338 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=560402FA845AC8DF)
Indexed /clangd-test/root/A.cc (4 symbols, 4 refs, 2 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (24360 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 1 after loading index from disk
BackgroundIndex: serving version 1 (24360 bytes)
Indexing /clangd-test/root/A.cc (digest:=560402FA845AC8DF)
Indexed /clangd-test/root/A.cc (4 symbols, 4 refs, 2 files)
BackgroundIndex: building version 2 when background indexer is idle
BackgroundIndex: serving version 2 (27004 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 1 after loading index from disk
BackgroundIndex: serving version 1 (27004 bytes)
Indexing /clangd-test/root/A.cc (digest:=D9867C8946B3F4D3)
Indexed /clangd-test/root/A.cc (2 symbols, 2 refs, 2 files)
BackgroundIndex: building version 2 when background indexer is idle
BackgroundIndex: serving version 2 (27284 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332662)
Thread T1 'ground-worker-1' (tid=1332671, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageLoad_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:320:21 (ClangdTests+0x5ce348)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332662)
Thread T5 'ground-worker-1' (tid=1332683, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageLoad_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:335:21 (ClangdTests+0x5ce772)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332662)
Thread T9 'ground-worker-1' (tid=1332688, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageLoad_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:353:21 (ClangdTests+0x5cf3ba)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageTest (79 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageTest' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.ShardStorageTest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.ShardStorageTest
[ OK ] BackgroundIndexTest.ShardStorageTest (185 ms)
[----------] 1 test from BackgroundIndexTest (185 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (185 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=6C0FD13EDE5B44E6)
Indexed /clangd-test/root/A.cc (5 symbols, 5 refs, 2 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (29637 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 1 after loading index from disk
BackgroundIndex: serving version 1 (29637 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332687)
Thread T1 'ground-worker-1' (tid=1332694, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:202:21 (ClangdTests+0x5c5ee8)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332687)
Thread T5 'ground-worker-1' (tid=1332708, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:212:21 (ClangdTests+0x5c659c)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundQueueTest.Priority (81 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundQueueTest.Priority' FAILED ********************
Note: Google Test filter = BackgroundQueueTest.Priority
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundQueueTest
[ RUN ] BackgroundQueueTest.Priority
[ OK ] BackgroundQueueTest.Priority (25 ms)
[----------] 1 test from BackgroundQueueTest (25 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (27 ms total)
[ PASSED ] 1 test.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332705)
Thread T1 'worker' (tid=1332717, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Priority_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:670:16 (ClangdTests+0x5e0a93)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332705)
Thread T2 'worker' (tid=1332719, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Priority_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:670:16 (ClangdTests+0x5e0b0a)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332705)
Thread T3 'worker' (tid=1332720, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Priority_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:670:16 (ClangdTests+0x5e0b81)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332705)
Thread T4 'worker' (tid=1332721, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Priority_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:670:16 (ClangdTests+0x5e0bf8)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332705)
Thread T5 'worker' (tid=1332722, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Priority_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:670:16 (ClangdTests+0x5e0c6f)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.UncompilableFiles (83 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.UncompilableFiles' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.UncompilableFiles
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.UncompilableFiles
[ OK ] BackgroundIndexTest.UncompilableFiles (131 ms)
[----------] 1 test from BackgroundIndexTest (131 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (131 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/A.cc
Indexing ../A.cc (digest:=6336DA8887467ABC)
Ignored diagnostic. ../B.h:2:1:C++ requires a type specifier for all declarations
Ignored diagnostic. ../A.cc:4:12:'not_found_header.h' file not found
Indexed ../A.cc (2 symbols, 3 refs, 4 files)
Failed to compile /clangd-test/A.cc, index may be incomplete
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (32112 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332690)
Thread T1 'ground-worker-1' (tid=1332699, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_UncompilableFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:475:19 (ClangdTests+0x5d6028)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.NoCrashOnErrorFile (95 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.NoCrashOnErrorFile' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.NoCrashOnErrorFile
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.NoCrashOnErrorFile
[ OK ] BackgroundIndexTest.NoCrashOnErrorFile (82 ms)
[----------] 1 test from BackgroundIndexTest (82 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (83 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=60A26BC6618A12C6)
Ignored diagnostic. /clangd-test/root/A.cc:1:1:unknown type name 'error'
Ignored diagnostic. /clangd-test/root/A.cc:1:11:expected ';' after top level declarator
Indexed /clangd-test/root/A.cc (1 symbols, 0 refs, 1 files)
Failed to compile /clangd-test/root/A.cc, index may be incomplete
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (7164 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332626)
Thread T1 'ground-worker-1' (tid=1332644, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_NoCrashOnErrorFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:95:19 (ClangdTests+0x5c022a)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.IndexTwoFiles (97 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.IndexTwoFiles' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.IndexTwoFiles
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.IndexTwoFiles
[ OK ] BackgroundIndexTest.IndexTwoFiles (219 ms)
[----------] 1 test from BackgroundIndexTest (219 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (220 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=560402FA845AC8DF)
Indexed /clangd-test/root/A.cc (4 symbols, 5 refs, 2 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (24384 bytes)
Dex query tree: true
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/B.cc
Indexing /clangd-test/root/B.cc (digest:=3EB802631734A8D0)
Indexed /clangd-test/root/B.cc (1 symbols, 5 refs, 2 files)
BackgroundIndex: building version 2 when background indexer is idle
BackgroundIndex: serving version 2 (33264 bytes)
Dex query tree: true
Dex query tree: (& T=com T=mon T=mmo T=omm)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332625)
Thread T1 'ground-worker-1' (tid=1332628, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_IndexTwoFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:135:19 (ClangdTests+0x5c131e)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 1 warnings
********************
Testing: 0..
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageEmptyFile (98 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundIndexTest.ShardStorageEmptyFile' FAILED ********************
Note: Google Test filter = BackgroundIndexTest.ShardStorageEmptyFile
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundIndexTest
[ RUN ] BackgroundIndexTest.ShardStorageEmptyFile
[ OK ] BackgroundIndexTest.ShardStorageEmptyFile (245 ms)
[----------] 1 test from BackgroundIndexTest (245 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (246 ms total)
[ PASSED ] 1 test.
Enqueueing 1 commands for indexing
Failed to load shard: /clangd-test/root/A.cc
Indexing /clangd-test/root/A.cc (digest:=9370B9B14478EF26)
Indexed /clangd-test/root/A.cc (4 symbols, 4 refs, 3 files)
BackgroundIndex: building version 1 when background indexer is idle
BackgroundIndex: serving version 1 (24648 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 1 after loading index from disk
BackgroundIndex: serving version 1 (24648 bytes)
Enqueueing 1 commands for indexing
BackgroundIndex: building version 1 after loading index from disk
BackgroundIndex: serving version 1 (24648 bytes)
Indexing /clangd-test/root/A.cc (digest:=9370B9B14478EF26)
Indexed /clangd-test/root/A.cc (1 symbols, 1 refs, 3 files)
BackgroundIndex: building version 2 when background indexer is idle
BackgroundIndex: serving version 2 (35796 bytes)
==================
WARNING: ThreadSanitizer: thread leak (pid=1332649)
Thread T1 'ground-worker-1' (tid=1332656, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageEmptyFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:394:21 (ClangdTests+0x5d18da)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332649)
Thread T5 'ground-worker-1' (tid=1332663, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageEmptyFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:410:21 (ClangdTests+0x5d25bf)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332649)
Thread T9 'ground-worker-1' (tid=1332667, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundIndex::BackgroundIndex(clang::clangd::Context, clang::clangd::ThreadsafeFS const&, clang::clangd::GlobalCompilationDatabase const&, llvm::unique_function<clang::clangd::BackgroundIndexStorage* (llvm::StringRef)>, unsigned long, std::function<void (clang::clangd::BackgroundQueue::Stats)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/index/Background.cpp:109:16 (ClangdTests+0x26171d6)
#5 clang::clangd::BackgroundIndexTest_ShardStorageEmptyFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:426:21 (ClangdTests+0x5d2bc8)
#6 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#7 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#8 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#9 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#10 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#12 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#13 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#14 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 3 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdThreadingTest.NoConcurrentDiagnostics (102 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdThreadingTest.NoConcurrentDiagnostics' FAILED ********************
Note: Google Test filter = ClangdThreadingTest.NoConcurrentDiagnostics
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdThreadingTest
[ RUN ] ClangdThreadingTest.NoConcurrentDiagnostics
[ OK ] ClangdThreadingTest.NoConcurrentDiagnostics (671 ms)
[----------] 1 test from ClangdThreadingTest (671 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (671 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332760)
Thread T1 'TWorker:foo.cpp' (tid=1332767, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_NoConcurrentDiagnostics_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:852:10 (ClangdTests+0x63fa5b)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332760)
Thread T2 'eWorker:foo.cpp' (tid=1332768, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_NoConcurrentDiagnostics_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:852:10 (ClangdTests+0x63fa5b)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FallbackWhenPreambleIsNotReady (103 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FallbackWhenPreambleIsNotReady' FAILED ********************
Note: Google Test filter = ClangdVFSTest.FallbackWhenPreambleIsNotReady
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.FallbackWhenPreambleIsNotReady
[ OK ] ClangdVFSTest.FallbackWhenPreambleIsNotReady (603 ms)
[----------] 1 test from ClangdVFSTest (603 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (630 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang yolo.cc /clangd-test/foo.cpp
Could not build CompilerInvocation for file /clangd-test/foo.cpp
Build for file /clangd-test/foo.cpp is not ready. Enter fallback mode.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 1 from identifiers, 1 returned.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -std=c++11 /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 201084 for file /clangd-test/foo.cpp version null
Code complete: sema context Statement, query scopes [,ns::] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 1 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332790)
Thread T1 'TWorker:foo.cpp' (tid=1332801, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenPreambleIsNotReady_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1014:10 (ClangdTests+0x6458d5)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332790)
Thread T2 'eWorker:foo.cpp' (tid=1332804, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenPreambleIsNotReady_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1014:10 (ClangdTests+0x6458d5)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332790)
Thread T3 'task:foo.cpp' (tid=1332811, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenPreambleIsNotReady_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1016:23 (ClangdTests+0x6459cd)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332790)
Thread T4 'task:foo.cpp' (tid=1332836, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenPreambleIsNotReady_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1027:3 (ClangdTests+0x646263)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332790)
Thread T5 'task:foo.cpp' (tid=1332840, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenPreambleIsNotReady_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1034:3 (ClangdTests+0x64686b)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FileStats (105 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FileStats' FAILED ********************
Note: Google Test filter = ClangdVFSTest.FileStats
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.FileStats
[ OK ] ClangdVFSTest.FileStats (469 ms)
[----------] 1 test from ClangdVFSTest (469 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (469 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
ASTWorker building file /clangd-test/bar.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/bar.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/bar.cpp
Building first preamble for /clangd-test/bar.cpp version null
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
Built preamble of size 175392 for file /clangd-test/bar.cpp version null
==================
WARNING: ThreadSanitizer: thread leak (pid=1332821)
Thread T1 'TWorker:foo.cpp' (tid=1332827, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FileStats_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:530:10 (ClangdTests+0x62b12f)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332821)
Thread T2 'eWorker:foo.cpp' (tid=1332829, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FileStats_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:530:10 (ClangdTests+0x62b12f)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332821)
Thread T3 'TWorker:bar.cpp' (tid=1332830, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FileStats_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:531:10 (ClangdTests+0x62b179)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332821)
Thread T4 'eWorker:bar.cpp' (tid=1332831, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FileStats_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:531:10 (ClangdTests+0x62b179)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 4 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdTests.PreambleVFSStatCache (106 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdTests.PreambleVFSStatCache' FAILED ********************
Note: Google Test filter = ClangdTests.PreambleVFSStatCache
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdTests
[ RUN ] ClangdTests.PreambleVFSStatCache
[ OK ] ClangdTests.PreambleVFSStatCache (672 ms)
[----------] 1 test from ClangdTests (672 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (672 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175996 for file /clangd-test/foo.cpp version null
Code complete: sema context Statement, query scopes [] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332759)
Thread T1 'TWorker:foo.cpp' (tid=1332763, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdTests_PreambleVFSStatCache_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:981:3 (ClangdTests+0x643fc5)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332759)
Thread T2 'eWorker:foo.cpp' (tid=1332764, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdTests_PreambleVFSStatCache_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:981:3 (ClangdTests+0x643fc5)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332759)
Thread T3 'task:foo.cpp' (tid=1332805, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdTests_PreambleVFSStatCache_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:985:31 (ClangdTests+0x64429b)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.InvalidCompileCommand (107 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.InvalidCompileCommand' FAILED ********************
Note: Google Test filter = ClangdVFSTest.InvalidCompileCommand
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.InvalidCompileCommand
[ OK ] ClangdVFSTest.InvalidCompileCommand (105 ms)
[----------] 1 test from ClangdVFSTest (105 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (106 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp /clangd-test/foo.cpp
Could not build CompilerInvocation for file /clangd-test/foo.cpp
ASTWorker rebuilding evicted AST to run DumpAST: /clangd-test/foo.cpp version null
Build for file /clangd-test/foo.cpp is not ready. Enter fallback mode.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 2 from identifiers, 2 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332869)
Thread T1 'TWorker:foo.cpp' (tid=1332873, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_InvalidCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:561:3 (ClangdTests+0x63468b)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332869)
Thread T2 'eWorker:foo.cpp' (tid=1332874, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_InvalidCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:561:3 (ClangdTests+0x63468b)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332869)
Thread T3 'task:foo.cpp' (tid=1332875, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::signatureHelp(llvm::StringRef, clang::clangd::Position, llvm::unique_function<void (llvm::Expected<clang::clangd::SignatureHelp>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:295:17 (ClangdTests+0x247115a)
#6 clang::clangd::runSignatureHelp(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:82:10 (ClangdTests+0xaaba35)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_InvalidCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:568:3 (ClangdTests+0x63519b)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332869)
Thread T4 'task:foo.cpp' (tid=1332876, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_InvalidCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:570:3 (ClangdTests+0x6355a2)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 4 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FormatCode (108 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FormatCode' FAILED ********************
Note: Google Test filter = ClangdVFSTest.FormatCode
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.FormatCode
[ OK ] ClangdVFSTest.FormatCode (356 ms)
[----------] 1 test from ClangdVFSTest (356 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (356 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175416 for file /clangd-test/foo.cpp version null
==================
WARNING: ThreadSanitizer: thread leak (pid=1332862)
Thread T1 'TWorker:foo.cpp' (tid=1332864, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_FormatCode_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:879:3 (ClangdTests+0x641707)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332862)
Thread T2 'eWorker:foo.cpp' (tid=1332865, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_FormatCode_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:879:3 (ClangdTests+0x641707)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332862)
Thread T3 'Format' (tid=1332881, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::run(llvm::StringRef, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1295:18 (ClangdTests+0x25c1168)
#5 clang::clangd::ClangdServer::formatCode(llvm::StringRef, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::unique_function<void (llvm::Expected<clang::tooling::Replacements>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:588:17 (ClangdTests+0x2472437)
#6 clang::clangd::ClangdServer::formatFile(llvm::StringRef, llvm::StringRef, llvm::unique_function<void (llvm::Expected<clang::tooling::Replacements>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:314:3 (ClangdTests+0x24726ce)
#7 clang::clangd::runFormatFile(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:111:10 (ClangdTests+0xaae385)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_FormatCode_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:881:19 (ClangdTests+0x64172c)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ForceReparseCompileCommandDefines (109 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ForceReparseCompileCommandDefines' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ForceReparseCompileCommandDefines
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ForceReparseCompileCommandDefines
[ OK ] ClangdVFSTest.ForceReparseCompileCommandDefines (614 ms)
[----------] 1 test from ClangdVFSTest (614 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (619 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -DWITH_ERROR /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -D WITH_ERROR -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 202800 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command clangd fallback
[/clangd-test]
clang /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 202712 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command clangd fallback
[/clangd-test]
clang /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332854)
Thread T1 'TWorker:foo.cpp' (tid=1332860, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ForceReparseCompileCommandDefines_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:427:3 (ClangdTests+0x61c698)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332854)
Thread T2 'eWorker:foo.cpp' (tid=1332861, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ForceReparseCompileCommandDefines_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:427:3 (ClangdTests+0x61c698)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ChangedHeaderFromISystem (110 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ChangedHeaderFromISystem' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ChangedHeaderFromISystem
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ChangedHeaderFromISystem
[ OK ] ClangdVFSTest.ChangedHeaderFromISystem (809 ms)
[----------] 1 test from ClangdVFSTest (809 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (809 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/source/foo.cpp version null with command
[/clangd-test/source]
clang -ffreestanding -xc++ -isystem/clangd-test/headers /clangd-test/source/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -isystem /clangd-test/headers -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test/source -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/source/foo.cpp
Building first preamble for /clangd-test/source/foo.cpp version null
Built preamble of size 176172 for file /clangd-test/source/foo.cpp version null
Code complete: sema context DotMemberAccess, query scopes [] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
ASTWorker building file /clangd-test/source/foo.cpp version null with command
[/clangd-test/source]
clang -ffreestanding -xc++ -isystem/clangd-test/headers /clangd-test/source/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -isystem /clangd-test/headers -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test/source -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/source/foo.cpp
Rebuilding invalidated preamble for /clangd-test/source/foo.cpp version null (previous was version null)
Built preamble of size 176288 for file /clangd-test/source/foo.cpp version null
Code complete: sema context DotMemberAccess, query scopes [] (AnyScope=false), expected type <none>
Code complete: 2 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 2 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332775)
Thread T1 'TWorker:foo.cpp' (tid=1332786, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ChangedHeaderFromISystem_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:906:3 (ClangdTests+0x6422b7)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332775)
Thread T2 'eWorker:foo.cpp' (tid=1332787, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ChangedHeaderFromISystem_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:906:3 (ClangdTests+0x6422b7)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332775)
Thread T3 'task:foo.cpp' (tid=1332816, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ChangedHeaderFromISystem_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:907:31 (ClangdTests+0x6423cf)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332775)
Thread T4 'task:foo.cpp' (tid=1332843, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ChangedHeaderFromISystem_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:915:26 (ClangdTests+0x642874)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 4 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FallbackWhenWaitingForCompileCommand (111 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.FallbackWhenWaitingForCompileCommand' FAILED ********************
Note: Google Test filter = ClangdVFSTest.FallbackWhenWaitingForCompileCommand
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.FallbackWhenWaitingForCompileCommand
[ OK ] ClangdVFSTest.FallbackWhenWaitingForCompileCommand (547 ms)
[----------] 1 test from ClangdVFSTest (547 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (547 ms total)
[ PASSED ] 1 test.
Build for file /clangd-test/foo.cpp is not ready. Enter fallback mode.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 1 from identifiers, 1 returned.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clangd -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
Code complete: sema context Statement, query scopes [,ns::] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332796)
Thread T1 'TWorker:foo.cpp' (tid=1332808, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenWaitingForCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1079:10 (ClangdTests+0x649c65)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332796)
Thread T2 'eWorker:foo.cpp' (tid=1332809, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenWaitingForCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1079:10 (ClangdTests+0x649c65)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332796)
Thread T3 'task:foo.cpp' (tid=1332810, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenWaitingForCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1087:23 (ClangdTests+0x649e4c)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332796)
Thread T4 'task:foo.cpp' (tid=1332837, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_FallbackWhenWaitingForCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1092:3 (ClangdTests+0x64a258)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 4 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/BackgroundQueueTest.Progress (112 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/BackgroundQueueTest.Progress' FAILED ********************
Note: Google Test filter = BackgroundQueueTest.Progress
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BackgroundQueueTest
[ RUN ] BackgroundQueueTest.Progress
[ OK ] BackgroundQueueTest.Progress (2889 ms)
[----------] 1 test from BackgroundQueueTest (2889 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2890 ms total)
[ PASSED ] 1 test.
==================
WARNING: ThreadSanitizer: thread leak (pid=1332715)
Thread T1 'worker' (tid=1332725, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Progress_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:752:16 (ClangdTests+0x5e343d)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332715)
Thread T2 'worker' (tid=1332726, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Progress_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:752:16 (ClangdTests+0x5e34b4)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332715)
Thread T3 'worker' (tid=1332727, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Progress_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:752:16 (ClangdTests+0x5e352b)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332715)
Thread T4 'worker' (tid=1332728, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Progress_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:752:16 (ClangdTests+0x5e35a2)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332715)
Thread T5 'worker' (tid=1332729, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::BackgroundQueueTest_Progress_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp:752:16 (ClangdTests+0x5e3619)
#5 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#6 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#7 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#8 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#9 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#11 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#12 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#13 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.PropagatesContexts (113 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.PropagatesContexts' FAILED ********************
Note: Google Test filter = ClangdVFSTest.PropagatesContexts
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.PropagatesContexts
[ OK ] ClangdVFSTest.PropagatesContexts (467 ms)
[----------] 1 test from ClangdVFSTest (467 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (468 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
==================
WARNING: ThreadSanitizer: thread leak (pid=1332934)
Thread T1 'TWorker:foo.cpp' (tid=1332940, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_PropagatesContexts_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:297:12 (ClangdTests+0x6185a4)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332934)
Thread T2 'eWorker:foo.cpp' (tid=1332942, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_PropagatesContexts_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:297:12 (ClangdTests+0x6185a4)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.PropagatesVersion (114 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.PropagatesVersion' FAILED ********************
Note: Google Test filter = ClangdVFSTest.PropagatesVersion
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.PropagatesVersion
[ OK ] ClangdVFSTest.PropagatesVersion (524 ms)
[----------] 1 test from ClangdVFSTest (524 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (545 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version 42 with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version 42
Built preamble of size 175388 for file /clangd-test/foo.cpp version 42
==================
WARNING: ThreadSanitizer: thread leak (pid=1332935)
Thread T1 'TWorker:foo.cpp' (tid=1332945, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_PropagatesVersion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:317:3 (ClangdTests+0x61995d)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332935)
Thread T2 'eWorker:foo.cpp' (tid=1332946, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_PropagatesVersion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:317:3 (ClangdTests+0x61995d)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ForceReparseCompileCommand (116 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ForceReparseCompileCommand' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ForceReparseCompileCommand
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ForceReparseCompileCommand
[ OK ] ClangdVFSTest.ForceReparseCompileCommand (1221 ms)
[----------] 1 test from ClangdVFSTest (1221 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1221 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -xc /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -x c /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 198976 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -xc /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -x c /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 202680 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332853)
Thread T1 'TWorker:foo.cpp' (tid=1332856, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ForceReparseCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:393:3 (ClangdTests+0x61ba78)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332853)
Thread T2 'eWorker:foo.cpp' (tid=1332858, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ForceReparseCompileCommand_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:393:3 (ClangdTests+0x61ba78)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ParseWithHeader (118 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ParseWithHeader' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ParseWithHeader
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ParseWithHeader
[ OK ] ClangdVFSTest.ParseWithHeader (1777 ms)
[----------] 1 test from ClangdVFSTest (1777 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1778 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175408 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175520 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175524 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175812 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T1 'TWorker:foo.cpp' (tid=1332920, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:185:3 (ClangdTests+0x615eef)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T2 'eWorker:foo.cpp' (tid=1332922, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:185:3 (ClangdTests+0x615eef)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T3 'TWorker:foo.cpp' (tid=1332938, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:187:3 (ClangdTests+0x615f91)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T4 'eWorker:foo.cpp' (tid=1332941, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:187:3 (ClangdTests+0x615f91)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T5 'TWorker:foo.cpp' (tid=1332977, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:194:3 (ClangdTests+0x616027)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T6 'eWorker:foo.cpp' (tid=1332978, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:194:3 (ClangdTests+0x616027)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T7 'TWorker:foo.cpp' (tid=1332991, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:196:3 (ClangdTests+0x6160c4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332902)
Thread T8 'eWorker:foo.cpp' (tid=1332992, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_ParseWithHeader_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:196:3 (ClangdTests+0x6160c4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 8 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.SearchLibDir (119 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.SearchLibDir' FAILED ********************
Note: Google Test filter = ClangdVFSTest.SearchLibDir
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.SearchLibDir
[ OK ] ClangdVFSTest.SearchLibDir (822 ms)
[----------] 1 test from ClangdVFSTest (822 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (825 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding -xc++ -target x86_64-linux-unknown -m64 --gcc-toolchain=/randomusr -stdlib=libstdc++ /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-unknown -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/c++/4.9.3 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/x86_64-linux-gnu/c++/4.9.3/64 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/x86_64-unknown-linux-unknown/c++/4.9.3 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/c++/4.9.3/backward -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 176652 for file /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding -xc++ -target x86_64-linux-unknown -m64 --gcc-toolchain=/randomusr -stdlib=libstdc++ /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-unknown -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/c++/4.9.3 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/x86_64-linux-gnu/c++/4.9.3/64 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/x86_64-unknown-linux-unknown/c++/4.9.3 -internal-isystem /randomusr/lib/gcc/x86_64-linux-gnu/4.9.3/../../../../include/c++/4.9.3/backward -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Reusing preamble version null for version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332956)
Thread T1 'TWorker:foo.cpp' (tid=1332974, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_SearchLibDir_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:361:3 (ClangdTests+0x61a773)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332956)
Thread T2 'eWorker:foo.cpp' (tid=1332975, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_SearchLibDir_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:361:3 (ClangdTests+0x61a773)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.TestStackOverflow (127 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.TestStackOverflow' FAILED ********************
Note: Google Test filter = ClangdVFSTest.TestStackOverflow
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.TestStackOverflow
[ OK ] ClangdVFSTest.TestStackOverflow (541 ms)
[----------] 1 test from ClangdVFSTest (541 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (546 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
==================
WARNING: ThreadSanitizer: thread leak (pid=1333009)
Thread T1 'TWorker:foo.cpp' (tid=1333018, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_TestStackOverflow_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1116:10 (ClangdTests+0x64b5b3)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333009)
Thread T2 'eWorker:foo.cpp' (tid=1333019, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_TestStackOverflow_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:1116:10 (ClangdTests+0x64b5b3)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.Parse (128 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.Parse' FAILED ********************
Note: Google Test filter = ClangdVFSTest.Parse
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.Parse
[ OK ] ClangdVFSTest.Parse (2480 ms)
[----------] 1 test from ClangdVFSTest (2480 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2480 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T1 'TWorker:foo.cpp' (tid=1332889, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:169:16 (ClangdTests+0x612c52)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T2 'eWorker:foo.cpp' (tid=1332891, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:169:16 (ClangdTests+0x612c52)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T3 'TWorker:foo.cpp' (tid=1332927, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:170:18 (ClangdTests+0x612c93)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T4 'eWorker:foo.cpp' (tid=1332929, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:170:18 (ClangdTests+0x612c93)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T5 'TWorker:foo.cpp' (tid=1332962, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:171:20 (ClangdTests+0x612cd4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T6 'eWorker:foo.cpp' (tid=1332966, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:171:20 (ClangdTests+0x612cd4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T7 'TWorker:foo.cpp' (tid=1332985, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:176:17 (ClangdTests+0x613103)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T8 'eWorker:foo.cpp' (tid=1332987, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:176:17 (ClangdTests+0x613103)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T9 'TWorker:foo.cpp' (tid=1333001, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:177:19 (ClangdTests+0x613141)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T10 'eWorker:foo.cpp' (tid=1333003, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:177:19 (ClangdTests+0x613141)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T11 'TWorker:foo.cpp' (tid=1333036, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:178:21 (ClangdTests+0x613182)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332878)
Thread T12 'eWorker:foo.cpp' (tid=1333038, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest::parseSourceAndDumpAST[abi:cxx11](llvm::StringRef, llvm::StringRef, std::vector<std::pair<llvm::StringRef, llvm::StringRef>, std::allocator<std::pair<llvm::StringRef, llvm::StringRef> > >, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:157:12 (ClangdTests+0x613a9b)
#8 clang::clangd::(anonymous namespace)::ClangdVFSTest_Parse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:178:21 (ClangdTests+0x613182)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 12 warnings
********************
Testing: 0.. 10
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.Reparse (129 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.Reparse' FAILED ********************
Note: Google Test filter = ClangdVFSTest.Reparse
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.Reparse
[ OK ] ClangdVFSTest.Reparse (1504 ms)
[----------] 1 test from ClangdVFSTest (1504 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1504 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175812 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 175812 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332947)
Thread T1 'TWorker:foo.cpp' (tid=1332951, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_Reparse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:216:10 (ClangdTests+0x616470)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332947)
Thread T2 'eWorker:foo.cpp' (tid=1332952, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_Reparse_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:216:10 (ClangdTests+0x616470)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ReparseOpenedFiles (149 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ReparseOpenedFiles' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ReparseOpenedFiles
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ReparseOpenedFiles
[ OK ] ClangdVFSTest.ReparseOpenedFiles (1117 ms)
[----------] 1 test from ClangdVFSTest (1117 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1118 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -DMACRO=1 /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -D MACRO=1 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
ASTWorker building file /clangd-test/baz.cpp version null with command
[/clangd-test]
clang -DMACRO=1 /clangd-test/baz.cpp
Building first preamble for /clangd-test/foo.cpp version null
ASTWorker building file /clangd-test/bar.cpp version null with command
[/clangd-test]
clang -DMACRO=1 /clangd-test/bar.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name baz.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -D MACRO=1 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/baz.cpp
Building first preamble for /clangd-test/baz.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -D MACRO=1 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/bar.cpp
Building first preamble for /clangd-test/bar.cpp version null
Built preamble of size 202780 for file /clangd-test/foo.cpp version null
Built preamble of size 202760 for file /clangd-test/baz.cpp version null
Built preamble of size 202780 for file /clangd-test/bar.cpp version null
ASTWorker running Definitions on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command clangd fallback
[/clangd-test]
clang /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
ASTWorker building file /clangd-test/bar.cpp version null with command clangd fallback
[/clangd-test]
clang /clangd-test/bar.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/bar.cpp
Rebuilding invalidated preamble for /clangd-test/bar.cpp version null (previous was version null)
Built preamble of size 202704 for file /clangd-test/foo.cpp version null
Built preamble of size 202704 for file /clangd-test/bar.cpp version null
ASTWorker running Definitions on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T1 'TWorker:foo.cpp' (tid=1332959, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:476:10 (ClangdTests+0x61d0cf)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T2 'eWorker:foo.cpp' (tid=1332960, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:476:10 (ClangdTests+0x61d0cf)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T3 'TWorker:bar.cpp' (tid=1332961, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:477:10 (ClangdTests+0x61d11e)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T4 'eWorker:bar.cpp' (tid=1332963, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:477:10 (ClangdTests+0x61d11e)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T5 'TWorker:baz.cpp' (tid=1332964, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:478:10 (ClangdTests+0x61d16d)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332949)
Thread T6 'eWorker:baz.cpp' (tid=1332965, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOpenedFiles_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:478:10 (ClangdTests+0x61d16d)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 6 warnings
********************
Testing: 0.. 10.
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ReparseOnHeaderChange (150 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdVFSTest.ReparseOnHeaderChange' FAILED ********************
Note: Google Test filter = ClangdVFSTest.ReparseOnHeaderChange
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdVFSTest
[ RUN ] ClangdVFSTest.ReparseOnHeaderChange
[ OK ] ClangdVFSTest.ReparseOnHeaderChange (1374 ms)
[----------] 1 test from ClangdVFSTest (1374 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (1374 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175812 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 175524 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Rebuilding invalidated preamble for /clangd-test/foo.cpp version null (previous was version null)
Built preamble of size 175812 for file /clangd-test/foo.cpp version null
ASTWorker running DumpAST on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1332948)
Thread T1 'TWorker:foo.cpp' (tid=1332954, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOnHeaderChange_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:252:10 (ClangdTests+0x617538)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332948)
Thread T2 'eWorker:foo.cpp' (tid=1332955, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdVFSTest_ReparseOnHeaderChange_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:252:10 (ClangdTests+0x617538)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10..
FAIL: Clangd Unit Tests :: ./ClangdTests/CompletionTest.CommentsFromSystemHeaders (160 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CompletionTest.CommentsFromSystemHeaders' FAILED ********************
Note: Google Test filter = CompletionTest.CommentsFromSystemHeaders
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN ] CompletionTest.CommentsFromSystemHeaders
[ OK ] CompletionTest.CommentsFromSystemHeaders (411 ms)
[----------] 1 test from CompletionTest (411 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (411 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 6932 bytes
Built preamble of size 175900 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[
"c:I"
]
],
"ProximityPaths": [
[
"/clangd-test/foo.cpp"
]
],
"Query": "foo",
"RestrictForCodeCompletion": true,
"Scopes": [
[
""
]
]
})
Dex query tree: (& T=foo S= (| (* 2.340640e+00 U=unittest:///) true) (| (* 5.000000e+00 Ty=c:I) true) ?=Restricted For Code Completion)
Code complete: sema context Expression, query scopes [] (AnyScope=false), expected type int
Code complete: 1 results from Sema, 1 from Index, 1 matched, 0 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1333108)
Thread T1 'TWorker:foo.cpp' (tid=1333113, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_CommentsFromSystemHeaders_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:888:3 (ClangdTests+0x6a2ba9)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333108)
Thread T2 'eWorker:foo.cpp' (tid=1333114, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_CommentsFromSystemHeaders_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:888:3 (ClangdTests+0x6a2ba9)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333108)
Thread T3 'task:foo.cpp' (tid=1333122, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_CommentsFromSystemHeaders_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:890:22 (ClangdTests+0x6a2caf)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0.. 10..
FAIL: Clangd Unit Tests :: ./ClangdTests/CompletionTest.DocumentationFromChangedFileCrash (177 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CompletionTest.DocumentationFromChangedFileCrash' FAILED ********************
Note: Google Test filter = CompletionTest.DocumentationFromChangedFileCrash
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN ] CompletionTest.DocumentationFromChangedFileCrash
[ OK ] CompletionTest.DocumentationFromChangedFileCrash (657 ms)
[----------] 1 test from CompletionTest (657 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (662 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175868 for file /clangd-test/foo.cpp version null
Code complete: sema context Expression, query scopes [] (AnyScope=false), expected type int
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1333165)
Thread T1 'TWorker:foo.cpp' (tid=1333169, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DocumentationFromChangedFileCrash_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:1559:10 (ClangdTests+0x6cbf3d)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333165)
Thread T2 'eWorker:foo.cpp' (tid=1333170, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DocumentationFromChangedFileCrash_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:1559:10 (ClangdTests+0x6cbf3d)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333165)
Thread T3 'task:foo.cpp' (tid=1333195, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DocumentationFromChangedFileCrash_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:1571:16 (ClangdTests+0x6cc150)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 3 warnings
********************
Testing: 0.. 10..
FAIL: Clangd Unit Tests :: ./ClangdTests/CompletionTest.DynamicIndexIncludeInsertion (182 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CompletionTest.DynamicIndexIncludeInsertion' FAILED ********************
Note: Google Test filter = CompletionTest.DynamicIndexIncludeInsertion
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN ] CompletionTest.DynamicIndexIncludeInsertion
[ OK ] CompletionTest.DynamicIndexIncludeInsertion (929 ms)
[----------] 1 test from CompletionTest (929 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (937 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo_impl.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo_impl.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo_impl.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo_impl.cpp
Building first preamble for /clangd-test/foo_impl.cpp version null
indexed preamble AST for /clangd-test/foo_impl.cpp version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 7176 bytes
Built preamble of size 176160 for file /clangd-test/foo_impl.cpp version null
indexed file AST for /clangd-test/foo_impl.cpp version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11600 bytes
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175388 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 16448 bytes
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[]
],
"ProximityPaths": [
[
"/clangd-test/foo.cpp"
]
],
"Query": "Foo",
"RestrictForCodeCompletion": true,
"Scopes": [
[
""
]
]
})
Dex query tree: (& T=foo S= (| (* 2.340640e+00 U=unittest:///) true) ?=Restricted For Code Completion)
Code complete: sema context TopLevel, query scopes [] (AnyScope=false), expected type <none>
Code complete: 0 results from Sema, 1 from Index, 0 matched, 0 from identifiers, 1 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1333167)
Thread T1 'er:foo_impl.cpp' (tid=1333173, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexIncludeInsertion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:792:10 (ClangdTests+0x69e3d2)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333167)
Thread T2 'er:foo_impl.cpp' (tid=1333174, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexIncludeInsertion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:792:10 (ClangdTests+0x69e3d2)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333167)
Thread T3 'TWorker:foo.cpp' (tid=1333191, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexIncludeInsertion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:798:3 (ClangdTests+0x69e4a0)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333167)
Thread T4 'eWorker:foo.cpp' (tid=1333192, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexIncludeInsertion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:798:3 (ClangdTests+0x69e4a0)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333167)
Thread T5 'task:foo.cpp' (tid=1333226, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexIncludeInsertion_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:800:22 (ClangdTests+0x69e5a5)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0.. 10..
FAIL: Clangd Unit Tests :: ./ClangdTests/CompletionTest.DynamicIndexMultiFile (183 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CompletionTest.DynamicIndexMultiFile' FAILED ********************
Note: Google Test filter = CompletionTest.DynamicIndexMultiFile
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN ] CompletionTest.DynamicIndexMultiFile
[ OK ] CompletionTest.DynamicIndexMultiFile (802 ms)
[----------] 1 test from CompletionTest (802 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (803 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8636 bytes
Built preamble of size 176336 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 288 bytes
ASTWorker building file /clangd-test/bar.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/bar.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/bar.cpp
Building first preamble for /clangd-test/bar.cpp version null
indexed preamble AST for /clangd-test/bar.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/bar.cpp version null
indexed file AST for /clangd-test/bar.cpp version null:
symbol slab: 4 symbols, 5152 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 7552 bytes
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[]
],
"ProximityPaths": [
[
"/clangd-test/bar.cpp"
]
],
"Query": "",
"RestrictForCodeCompletion": true,
"Scopes": [
[
"ns::"
]
]
})
Dex query tree: (& S=ns:: (| (* 2.340640e+00 U=unittest:///) true) ?=Restricted For Code Completion)
Code complete: sema context Symbol, query scopes [ns::] (AnyScope=false), expected type <none>
Code complete: 2 results from Sema, 2 from Index, 0 matched, 0 from identifiers, 4 returned.
==================
WARNING: ThreadSanitizer: thread leak (pid=1333178)
Thread T1 'TWorker:foo.cpp' (tid=1333182, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexMultiFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:817:3 (ClangdTests+0x69fd1f)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333178)
Thread T2 'eWorker:foo.cpp' (tid=1333184, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexMultiFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:817:3 (ClangdTests+0x69fd1f)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333178)
Thread T3 'TWorker:bar.cpp' (tid=1333200, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexMultiFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:830:3 (ClangdTests+0x69fdb9)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333178)
Thread T4 'eWorker:bar.cpp' (tid=1333202, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexMultiFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:830:3 (ClangdTests+0x69fdb9)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333178)
Thread T5 'task:bar.cpp' (tid=1333231, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_DynamicIndexMultiFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:832:27 (ClangdTests+0x69febe)
#8 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#9 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#10 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#11 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#12 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#13 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#14 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#15 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#16 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0.. 10.. 20
FAIL: Clangd Unit Tests :: ./ClangdTests/CompletionTest.EnableSpeculativeIndexRequest (184 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CompletionTest.EnableSpeculativeIndexRequest' FAILED ********************
Note: Google Test filter = CompletionTest.EnableSpeculativeIndexRequest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompletionTest
[ RUN ] CompletionTest.EnableSpeculativeIndexRequest
[ OK ] CompletionTest.EnableSpeculativeIndexRequest (627 ms)
[----------] 1 test from CompletionTest (627 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (627 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[]
],
"ProximityPaths": [
[
"/clangd-test/foo.cpp"
]
],
"Query": "ab",
"RestrictForCodeCompletion": true,
"Scopes": [
[
"ns1::"
]
]
})
Code complete: sema context Symbol, query scopes [ns1::] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned (incomplete).
Ignored diagnostic. /clangd-test/foo.cpp:4:23:no member named 'ab' in namespace 'ns1'
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[]
],
"ProximityPaths": [
[
"/clangd-test/foo.cpp"
]
],
"Query": "ab",
"RestrictForCodeCompletion": true,
"Scopes": [
[
"ns1::"
]
]
})
Code complete: speculative fuzzy request matches the actual index request. Waiting for the speculative index results.
Code complete: sema context Symbol, query scopes [ns1::] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned.
Code complete: fuzzyFind({
"AnyScope": false,
"Limit": null,
"PreferredTypes": [
[]
],
"ProximityPaths": [
[
"/clangd-test/foo.cpp"
]
],
"Query": "ab",
"RestrictForCodeCompletion": true,
"Scopes": [
[
"ns2::"
]
]
})
Code complete: sema context Symbol, query scopes [ns2::] (AnyScope=false), expected type <none>
Code complete: 1 results from Sema, 0 from Index, 0 matched, 0 from identifiers, 1 returned (incomplete).
==================
WARNING: ThreadSanitizer: thread leak (pid=1333183)
Thread T1 'TWorker:foo.cpp' (tid=1333187, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2223:3 (ClangdTests+0x6f25e8)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333183)
Thread T2 'eWorker:foo.cpp' (tid=1333188, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2223:3 (ClangdTests+0x6f25e8)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333183)
Thread T3 'task:foo.cpp' (tid=1333209, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody()::$_3::operator()(llvm::StringRef) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2231:14 (ClangdTests+0x6f31ed)
#8 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2234:3 (ClangdTests+0x6f2726)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333183)
Thread T4 'task:foo.cpp' (tid=1333214, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody()::$_3::operator()(llvm::StringRef) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2231:14 (ClangdTests+0x6f31ed)
#8 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2239:3 (ClangdTests+0x6f2a49)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333183)
Thread T6 'task:foo.cpp' (tid=1333220, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody()::$_3::operator()(llvm::StringRef) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2231:14 (ClangdTests+0x6f31ed)
#8 clang::clangd::(anonymous namespace)::CompletionTest_EnableSpeculativeIndexRequest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:2245:3 (ClangdTests+0x6f2d12)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 5 warnings
********************
Testing: 0.. 10.. 20.. 30
FAIL: Clangd Unit Tests :: ./ClangdTests/ClangdThreadingTest.StressTest (281 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/ClangdThreadingTest.StressTest' FAILED ********************
Note: Google Test filter = ClangdThreadingTest.StressTest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ClangdThreadingTest
[ RUN ] ClangdThreadingTest.StressTest
[ OK ] ClangdThreadingTest.StressTest (13929 ms)
[----------] 1 test from ClangdThreadingTest (13929 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (13929 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Build for file /clangd-test/Foo1.cpp is not ready. Enter fallback mode.
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Code complete: 0 results from Sema, 0 from Index, 0 matched, 6 from identifiers, 6 returned.
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
Build for file /clangd-test/Foo3.cpp is not ready. Enter fallback mode.
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Reusing preamble version null for version null of /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Build for file /clangd-test/Foo0.cpp is not ready. Enter fallback mode.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Building first preamble for /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Build for file /clangd-test/Foo2.cpp is not ready. Enter fallback mode.
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Build for file /clangd-test/Foo4.cpp is not ready. Enter fallback mode.
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker running Definitions on version null of /clangd-test/Foo4.cpp
locateSymbolAt failed to convert position to source location: utf-16 offset 3 is invalid for line 0
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Reusing preamble version null for version null of /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Build for file /clangd-test/Foo2.cpp is not ready. Enter fallback mode.
Reusing preamble version null for version null of /clangd-test/Foo3.cpp
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Build for file /clangd-test/Foo2.cpp is not ready. Enter fallback mode.
Code completion position was invalid Line value is out of range (6)
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Code completion position was invalid Line value is out of range (6)
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Build for file /clangd-test/Foo3.cpp is not ready. Enter fallback mode.
Code completion position was invalid Line value is out of range (6)
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Building first preamble for /clangd-test/Foo4.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Build for file /clangd-test/Foo3.cpp is not ready. Enter fallback mode.
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo4.cpp version null
Code complete: 0 results from Sema, 0 from Index, 0 matched, 5 from identifiers, 5 returned.
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo4.cpp
Reusing preamble version null for version null of /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo0.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Building first preamble for /clangd-test/Foo2.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo0.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo2.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
ASTWorker running Definitions on version null of /clangd-test/Foo3.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Reusing preamble version null for version null of /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo1.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo1.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo1.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo1.cpp
Building first preamble for /clangd-test/Foo1.cpp version null
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo2.cpp
ASTWorker building file /clangd-test/Foo2.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo2.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker skipping Update (null) for /clangd-test/Foo3.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo2.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo2.cpp
Reusing preamble version null for version null of /clangd-test/Foo2.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Reusing preamble version null for version null of /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo4.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo4.cpp
ASTWorker building file /clangd-test/Foo0.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo0.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo4.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo4.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo0.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo0.cpp
Reusing preamble version null for version null of /clangd-test/Foo0.cpp
ASTWorker building file /clangd-test/Foo3.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/Foo3.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name Foo3.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/Foo3.cpp
Building first preamble for /clangd-test/Foo3.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo1.cpp version null
Built preamble of size 175400 for file /clangd-test/Foo3.cpp version null
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T1 'Worker:Foo2.cpp' (tid=1332770, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:722:9 (ClangdTests+0x63ebbc)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_2>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63ebbc)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 51 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T2 'Worker:Foo2.cpp' (tid=1332771, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:722:9 (ClangdTests+0x63ebbc)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_2>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63ebbc)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 51 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T5 'Worker:Foo1.cpp' (tid=1332778, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:710:7 (ClangdTests+0x63e63b)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_0>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63e63b)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 60 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T6 'Worker:Foo1.cpp' (tid=1332779, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:710:7 (ClangdTests+0x63e63b)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_0>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63e63b)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 60 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T21 'Worker:Foo1.cpp' (tid=1332802, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:715:7 (ClangdTests+0x63ea3b)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_1>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63ea3b)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 44 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T22 'Worker:Foo1.cpp' (tid=1332803, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:715:7 (ClangdTests+0x63ea3b)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_1>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63ea3b)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d759)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:774:9 (ClangdTests+0x63d759)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 44 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T43 'Worker:Foo1.cpp' (tid=1332867, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:732:9 (ClangdTests+0x63eddf)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_3>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63eddf)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d6d8)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:778:9 (ClangdTests+0x63d6d8)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 5 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T44 'Worker:Foo1.cpp' (tid=1332868, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:732:9 (ClangdTests+0x63eddf)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_3>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63eddf)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d6d8)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:778:9 (ClangdTests+0x63d6d8)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 5 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T45 'task:Foo1.cpp' (tid=1332870, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 clang::clangd::TUScheduler::runWithPreamble(llvm::StringRef, llvm::StringRef, clang::clangd::TUScheduler::PreambleConsistency, llvm::unique_function<void (llvm::Expected<clang::clangd::InputsAndPreamble>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1362:18 (ClangdTests+0x25c3473)
#5 clang::clangd::ClangdServer::codeComplete(llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions const&, llvm::unique_function<void (llvm::Expected<clang::clangd::CodeCompleteResult>)>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:266:17 (ClangdTests+0x24709ca)
#6 clang::clangd::runCodeComplete(clang::clangd::ClangdServer&, llvm::StringRef, clang::clangd::Position, clang::clangd::CodeCompleteOptions) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:75:10 (ClangdTests+0xaab142)
#7 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:743:16 (ClangdTests+0x63f026)
#8 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_3>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63f026)
#9 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d6d8)
#10 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:778:9 (ClangdTests+0x63d6d8)
#11 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#12 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#13 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#14 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#15 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#17 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#18 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#19 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 9 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T190 'Worker:Foo4.cpp' (tid=1333229, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:751:9 (ClangdTests+0x63f2de)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_4>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63f2de)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d6d8)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:778:9 (ClangdTests+0x63d6d8)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1332765)
Thread T191 'Worker:Foo4.cpp' (tid=1333232, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_7::operator()(unsigned int, bool) const /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:701:14 (ClangdTests+0x63e8d0)
#8 operator() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:751:9 (ClangdTests+0x63f2de)
#9 std::_Function_handler<void (), clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody()::$_4>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2 (ClangdTests+0x63f2de)
#10 operator() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:688:14 (ClangdTests+0x63d6d8)
#11 clang::clangd::(anonymous namespace)::ClangdThreadingTest_StressTest_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/ClangdTests.cpp:778:9 (ClangdTests+0x63d6d8)
#12 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#13 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#14 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#15 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#16 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#17 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#18 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#19 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#20 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 11 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.BasicSymbols (364 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.BasicSymbols' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.BasicSymbols
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.BasicSymbols
[ OK ] DocumentSymbolsTest.BasicSymbols (476 ms)
[----------] 1 test from DocumentSymbolsTest (476 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (476 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 21 symbols, 9096 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 15152 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333669)
Thread T1 'TWorker:foo.cpp' (tid=1333677, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x82f690)
#8 clang::clangd::DocumentSymbolsTest_BasicSymbols_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:375:3 (ClangdTests+0x82f690)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333669)
Thread T2 'eWorker:foo.cpp' (tid=1333679, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x82f690)
#8 clang::clangd::DocumentSymbolsTest_BasicSymbols_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:375:3 (ClangdTests+0x82f690)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Concepts (365 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Concepts' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.Concepts
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.Concepts
[ OK ] DocumentSymbolsTest.Concepts (483 ms)
[----------] 1 test from DocumentSymbolsTest (483 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (488 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -std=c++20 /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++20 -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 204268 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 288 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333671)
Thread T1 'TWorker:foo.cpp' (tid=1333683, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x837731)
#8 clang::clangd::DocumentSymbolsTest_Concepts_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:443:3 (ClangdTests+0x837731)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333671)
Thread T2 'eWorker:foo.cpp' (tid=1333684, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x837731)
#8 clang::clangd::DocumentSymbolsTest_Concepts_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:443:3 (ClangdTests+0x837731)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.FromMacro (366 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.FromMacro' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.FromMacro
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.FromMacro
[ OK ] DocumentSymbolsTest.FromMacro (385 ms)
[----------] 1 test from DocumentSymbolsTest (385 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (385 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 6324 bytes
Built preamble of size 175608 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 4 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12112 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333681)
Thread T1 'TWorker:foo.cpp' (tid=1333691, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x84144c)
#8 clang::clangd::DocumentSymbolsTest_FromMacro_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:623:3 (ClangdTests+0x84144c)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333681)
Thread T2 'eWorker:foo.cpp' (tid=1333692, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x84144c)
#8 clang::clangd::DocumentSymbolsTest_FromMacro_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:623:3 (ClangdTests+0x84144c)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.DeclarationDefinition (367 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.DeclarationDefinition' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.DeclarationDefinition
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.DeclarationDefinition
[ OK ] DocumentSymbolsTest.DeclarationDefinition (427 ms)
[----------] 1 test from DocumentSymbolsTest (427 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (427 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 6336 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333672)
Thread T1 'TWorker:foo.cpp' (tid=1333688, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x8362ad)
#8 clang::clangd::DocumentSymbolsTest_DeclarationDefinition_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:429:3 (ClangdTests+0x8362ad)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333672)
Thread T2 'eWorker:foo.cpp' (tid=1333695, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x8362ad)
#8 clang::clangd::DocumentSymbolsTest_DeclarationDefinition_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:429:3 (ClangdTests+0x8362ad)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.InHeaderFile (369 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.InHeaderFile' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.InHeaderFile
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.InHeaderFile
[ OK ] DocumentSymbolsTest.InHeaderFile (499 ms)
[----------] 1 test from DocumentSymbolsTest (499 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (499 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/bar.h version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/bar.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -x c-header /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name bar.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -x c-header /clangd-test/bar.h
Building first preamble for /clangd-test/foo.h version null
Building first preamble for /clangd-test/bar.h version null
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 171728 for file /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/bar.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 171708 for file /clangd-test/bar.h version null
indexed file AST for /clangd-test/bar.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20544 bytes
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175416 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20832 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.h
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T1 'ASTWorker:bar.h' (tid=1333722, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a35c)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:491:3 (ClangdTests+0x83a35c)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T2 'bleWorker:bar.h' (tid=1333724, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a35c)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:491:3 (ClangdTests+0x83a35c)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T3 'ASTWorker:foo.h' (tid=1333725, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a3c2)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:496:3 (ClangdTests+0x83a3c2)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T4 'bleWorker:foo.h' (tid=1333726, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a3c2)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:496:3 (ClangdTests+0x83a3c2)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T5 'TWorker:foo.cpp' (tid=1333727, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a416)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:501:3 (ClangdTests+0x83a416)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333719)
Thread T6 'eWorker:foo.cpp' (tid=1333728, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83a416)
#8 clang::clangd::DocumentSymbolsTest_InHeaderFile_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:501:3 (ClangdTests+0x83a416)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 6 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Enums (370 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Enums' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.Enums
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.Enums
[ OK ] DocumentSymbolsTest.Enums (436 ms)
[----------] 1 test from DocumentSymbolsTest (436 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (436 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 7 symbols, 5848 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 8656 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333674)
Thread T1 'TWorker:foo.cpp' (tid=1333686, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83fab4)
#8 clang::clangd::DocumentSymbolsTest_Enums_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:584:3 (ClangdTests+0x83fab4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333674)
Thread T2 'eWorker:foo.cpp' (tid=1333689, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83fab4)
#8 clang::clangd::DocumentSymbolsTest_Enums_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:584:3 (ClangdTests+0x83fab4)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Qualifiers (371 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.Qualifiers' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.Qualifiers
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.Qualifiers
[ OK ] DocumentSymbolsTest.Qualifiers (309 ms)
[----------] 1 test from DocumentSymbolsTest (309 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (310 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 8 symbols, 6080 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 9120 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333734)
Thread T1 'TWorker:foo.cpp' (tid=1333740, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x844e80)
#8 clang::clangd::DocumentSymbolsTest_Qualifiers_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:685:3 (ClangdTests+0x844e80)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333734)
Thread T2 'eWorker:foo.cpp' (tid=1333741, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x844e80)
#8 clang::clangd::DocumentSymbolsTest_Qualifiers_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:685:3 (ClangdTests+0x844e80)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.QualifiersWithTemplateArgs (372 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.QualifiersWithTemplateArgs' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.QualifiersWithTemplateArgs
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.QualifiersWithTemplateArgs
[ OK ] DocumentSymbolsTest.QualifiersWithTemplateArgs (301 ms)
[----------] 1 test from DocumentSymbolsTest (301 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (314 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 7 symbols, 5848 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 8656 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333735)
Thread T1 'TWorker:foo.cpp' (tid=1333746, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x846260)
#8 clang::clangd::DocumentSymbolsTest_QualifiersWithTemplateArgs_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:718:3 (ClangdTests+0x846260)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333735)
Thread T2 'eWorker:foo.cpp' (tid=1333747, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x846260)
#8 clang::clangd::DocumentSymbolsTest_QualifiersWithTemplateArgs_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:718:3 (ClangdTests+0x846260)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.ExternSymbol (375 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.ExternSymbol' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.ExternSymbol
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.ExternSymbol
[ OK ] DocumentSymbolsTest.ExternSymbol (529 ms)
[----------] 1 test from DocumentSymbolsTest (529 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (542 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -faddrsig -x c-header /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 171708 for file /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175416 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11840 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333678)
Thread T1 'ASTWorker:foo.h' (tid=1333694, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83817f)
#8 clang::clangd::DocumentSymbolsTest_ExternSymbol_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:451:3 (ClangdTests+0x83817f)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333678)
Thread T2 'bleWorker:foo.h' (tid=1333696, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x83817f)
#8 clang::clangd::DocumentSymbolsTest_ExternSymbol_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:451:3 (ClangdTests+0x83817f)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333678)
Thread T3 'TWorker:foo.cpp' (tid=1333700, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x8381d0)
#8 clang::clangd::DocumentSymbolsTest_ExternSymbol_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:454:3 (ClangdTests+0x8381d0)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333678)
Thread T4 'eWorker:foo.cpp' (tid=1333701, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x8381d0)
#8 clang::clangd::DocumentSymbolsTest_ExternSymbol_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:454:3 (ClangdTests+0x8381d0)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 4 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.TempSpecs (379 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/DocumentSymbolsTest.TempSpecs' FAILED ********************
Note: Google Test filter = DocumentSymbolsTest.TempSpecs
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DocumentSymbolsTest
[ RUN ] DocumentSymbolsTest.TempSpecs
[ OK ] DocumentSymbolsTest.TempSpecs (289 ms)
[----------] 1 test from DocumentSymbolsTest (289 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (289 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.cpp version null with command
[/clangd-test]
clang -ffreestanding /clangd-test/foo.cpp
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -ffreestanding -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cpp
Building first preamble for /clangd-test/foo.cpp version null
indexed preamble AST for /clangd-test/foo.cpp version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 175392 for file /clangd-test/foo.cpp version null
indexed file AST for /clangd-test/foo.cpp version null:
symbol slab: 4 symbols, 5152 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 7264 bytes
ASTWorker running documentSymbols on version null of /clangd-test/foo.cpp
==================
WARNING: ThreadSanitizer: thread leak (pid=1333751)
Thread T1 'TWorker:foo.cpp' (tid=1333754, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x843f30)
#8 clang::clangd::DocumentSymbolsTest_TempSpecs_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:667:3 (ClangdTests+0x843f30)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333751)
Thread T2 'eWorker:foo.cpp' (tid=1333755, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 addFile /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:325:12 (ClangdTests+0x843f30)
#8 clang::clangd::DocumentSymbolsTest_TempSpecs_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp:667:3 (ClangdTests+0x843f30)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
ThreadSanitizer: reported 2 warnings
********************
Testing: 0.. 10.. 20.. 30.. 40.
FAIL: Clangd Unit Tests :: ./ClangdTests/CrossFileRenameTests.WithUpToDateIndex (384 of 830)
******************** TEST 'Clangd Unit Tests :: ./ClangdTests/CrossFileRenameTests.WithUpToDateIndex' FAILED ********************
Note: Google Test filter = CrossFileRenameTests.WithUpToDateIndex
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CrossFileRenameTests
[ RUN ] CrossFileRenameTests.WithUpToDateIndex
[ OK ] CrossFileRenameTests.WithUpToDateIndex (8493 ms)
[----------] 1 test from CrossFileRenameTests (8494 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (8495 ms total)
[ PASSED ] 1 test.
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 3 symbols, 5 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12648 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 7484 bytes
Built preamble of size 203568 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 3 symbols, 8 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 22344 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 3 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12088 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 7144 bytes
Built preamble of size 203736 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 21080 bytes
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12064 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 7176 bytes
Built preamble of size 203404 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 4 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 21384 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 3 symbols, 5 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12648 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 7484 bytes
Built preamble of size 203568 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 3 symbols, 8 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 22344 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 6932 bytes
Built preamble of size 203156 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 1 symbols, 2 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20800 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 3 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12088 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8296 bytes
Built preamble of size 203264 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20896 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 3 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12088 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8296 bytes
Built preamble of size 203276 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20896 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11552 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 6932 bytes
Built preamble of size 203120 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20544 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12064 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8328 bytes
Built preamble of size 203216 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 2 symbols, 3 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 21128 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 2 symbols, 2 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 12064 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 2 symbols, 4688 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8328 bytes
Built preamble of size 203216 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 2 symbols, 3 refs, 4280 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 21128 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
ASTWorker building file /clangd-test/foo.h version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.h
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.h -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.h
Building first preamble for /clangd-test/foo.h version null
indexed preamble AST for /clangd-test/foo.h version null:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Built preamble of size 202676 for file /clangd-test/foo.h version null
indexed file AST for /clangd-test/foo.h version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 3 symbols, 3 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 11672 bytes
ASTWorker building file /clangd-test/foo.cc version null with command
[/clangd-test]
clang -xc++ /clangd-test/foo.cc
Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -main-file-name foo.cc -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir lib/clang/11.0.0 -internal-isystem /usr/local/include -internal-isystem lib/clang/11.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /clangd-test -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ /clangd-test/foo.cc
Building first preamble for /clangd-test/foo.cc version null
indexed preamble AST for /clangd-test/foo.cc version null:
symbol slab: 3 symbols, 4920 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for header symbols with estimated memory usage of 8572 bytes
Built preamble of size 203396 for file /clangd-test/foo.cc version null
indexed file AST for /clangd-test/foo.cc version null:
symbol slab: 1 symbols, 4456 bytes
ref slab: 3 symbols, 5 refs, 4328 bytes
relations slab: 0 relations, 24 bytes
Build dynamic index for main-file symbols with estimated memory usage of 20832 bytes
ASTWorker running Rename on version null of /clangd-test/foo.h
==================
WARNING: ThreadSanitizer: thread leak (pid=1333440)
Thread T1 'ASTWorker:foo.h' (tid=1333451, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CrossFileRenameTests_WithUpToDateIndex_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/RenameTests.cpp:1040:5 (ClangdTests+0x9e2501)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 10 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333440)
Thread T2 'bleWorker:foo.h' (tid=1333453, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CrossFileRenameTests_WithUpToDateIndex_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/RenameTests.cpp:1040:5 (ClangdTests+0x9e2501)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 10 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333440)
Thread T3 'STWorker:foo.cc' (tid=1333480, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:558:12 (ClangdTests+0x25c0054)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0054)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CrossFileRenameTests_WithUpToDateIndex_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/RenameTests.cpp:1041:5 (ClangdTests+0x9e2550)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xca9c9f)
#10 testing::Test::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2474:5 (ClangdTests+0xca9c9f)
#11 testing::TestInfo::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2656:11 (ClangdTests+0xcab85c)
#12 testing::TestCase::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2774:28 (ClangdTests+0xcac416)
#13 testing::internal::UnitTestImpl::RunAllTests() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4649:43 (ClangdTests+0xcb865a)
#14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc (ClangdTests+0xcb7ea8)
#15 testing::UnitTest::Run() /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4257:10 (ClangdTests+0xcb7ea8)
#16 RUN_ALL_TESTS /home/nathan/src/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2233:46 (ClangdTests+0xc9ed52)
#17 main /home/nathan/src/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:50:10 (ClangdTests+0xc9ed52)
And 10 more similar thread leaks.
SUMMARY: ThreadSanitizer: thread leak (/home/nathan/src/llvm-project/build/Release/tools/clang/tools/extra/clangd/unittests/ClangdTests+0x49bedb) in pthread_create
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=1333440)
Thread T4 'leWorker:foo.cc' (tid=1333486, finished) created by main thread at:
#0 pthread_create <null> (ClangdTests+0x49bedb)
#1 llvm_execute_on_thread_impl(void* (*)(void*), void*, llvm::Optional<unsigned int>, (anonymous namespace)::JoiningPolicy) /home/nathan/src/llvm-project/llvm/lib/Support/Unix/Threading.inc:89:17 (ClangdTests+0xc443b1)
#2 llvm::llvm_execute_on_thread_async(llvm::unique_function<void ()>, llvm::Optional<unsigned int>) /home/nathan/src/llvm-project/llvm/lib/Support/Threading.cpp:128:3 (ClangdTests+0xc4453f)
#3 clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>) /home/nathan/src/llvm-project/clang-tools-extra/clangd/support/Threading.cpp:98:3 (ClangdTests+0x26ca2c0)
#4 create /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:560:12 (ClangdTests+0x25c0161)
#5 clang::clangd::TUScheduler::update(llvm::StringRef, clang::clangd::ParseInputs, clang::clangd::WantDiagnostics) /home/nathan/src/llvm-project/clang-tools-extra/clangd/TUScheduler.cpp:1265:9 (ClangdTests+0x25c0161)
#6 clang::clangd::ClangdServer::addDocument(llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/ClangdServer.cpp:201:32 (ClangdTests+0x246fcb2)
#7 clang::clangd::runAddDocument(clang::clangd::ClangdServer&, llvm::StringRef, llvm::StringRef, llvm::StringRef, clang::clangd::WantDiagnostics, bool) /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/SyncAPI.cpp:18:10 (ClangdTests+0xaaae04)
#8 clang::clangd::(anonymous namespace)::CrossFileRenameTests_WithUpToDateIndex_Test::TestBody() /home/nathan/src/llvm-project/clang-tools-extra/clangd/unittests/RenameTests.cpp:1041:5 (ClangdTests+0x9e2550)
#9 HandleExceptionsInMethodIfSupported<testing::Test, void> /home/nathan/src/llvm-project/ll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment