Skip to content

[clangd] clangd crashed. #148558

Open
Open
@adjfangjiawei

Description

@adjfangjiawei
I[00:36:51.472] <-- reply(1)
V[00:36:51.641] Trying to fix unresolved name "ffmpegDemuxerContext" in scopes: [, VideoInference::, VideoInference::StreamSource::]
V[00:36:51.641] Dex query tree: (LIMIT 10000 (& T=uxe T=mux T=fmp T=ffm T=xer T=egd T=peg T=gde T=emu T=mpe T=dem T=ext T=erc T=tex T=rco T=ont T=nte T=con (| S= S=VideoInference:: S=VideoInference::StreamSource::) ?=Restricted For Code Completion))
V[00:36:51.655] Trying to fix unresolved name "ffmpegDemuxerContext" in scopes: [, VideoInference::, VideoInference::StreamSource::]
V[00:36:51.668] Trying to fix unresolved name "ffmpegDemuxerContext" in scopes: [, VideoInference::, VideoInference::StreamSource::]
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	/workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp:129:174: current parser token ';'
1.	/workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp:16:1: parsing namespace 'VideoInference'
2.	/workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp:124:48: parsing function body 'VideoInference::StreamSource::FFmpegSourceDemuxer::FindVideoStream'
3.	/workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp:124:48: in compound statement ('{}')
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  libLLVM.so.21.0      0x0000798ca527f326 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 54
1  libLLVM.so.21.0      0x0000798ca527cf20 llvm::sys::RunSignalHandlers() + 80
2  libLLVM.so.21.0      0x0000798ca527fa54
3  libc.so.6            0x0000798ca3700520
4  libclang-cpp.so.21.0 0x0000798cae3c15d2 clang::TypoCorrectionConsumer::getNextCorrection() + 34
5  libclang-cpp.so.21.0 0x0000798cae2f7829
6  libclang-cpp.so.21.0 0x0000798cae3009b7
7  libclang-cpp.so.21.0 0x0000798cae2f9b90
8  libclang-cpp.so.21.0 0x0000798cae2f502a
9  libclang-cpp.so.21.0 0x0000798cae2d7517 clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*, clang::VarDecl*, bool, llvm::function_ref<clang::ActionResult<clang::Expr*, true> (clang::Expr*)>) + 375
10 libclang-cpp.so.21.0 0x0000798cae53e858 clang::Sema::ActOnReturnStmt(clang::SourceLocation, clang::Expr*, clang::Scope*) + 72
11 libclang-cpp.so.21.0 0x0000798cad6911d0 clang::Parser::ParseReturnStatement() + 576
12 libclang-cpp.so.21.0 0x0000798cad68c102 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) + 4930
13 libclang-cpp.so.21.0 0x0000798cad68abd4 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) + 356
14 libclang-cpp.so.21.0 0x0000798cad693171 clang::Parser::ParseCompoundStatementBody(bool) + 2177
15 libclang-cpp.so.21.0 0x0000798cad693c55 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 181
16 libclang-cpp.so.21.0 0x0000798cad6ab909 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 2985
17 libclang-cpp.so.21.0 0x0000798cad5ffe01 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 5825
18 libclang-cpp.so.21.0 0x0000798cad6aac22 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1058
19 libclang-cpp.so.21.0 0x0000798cad6aa61e clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 590
20 libclang-cpp.so.21.0 0x0000798cad6a9921 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) + 2081
21 libclang-cpp.so.21.0 0x0000798cad6193bb clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 315
22 libclang-cpp.so.21.0 0x0000798cad6194c5 clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo, 4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 581
23 libclang-cpp.so.21.0 0x0000798cad618d79 clang::Parser::ParseNamespace(clang::DeclaratorContext, clang::SourceLocation&, clang::SourceLocation) + 4457
24 libclang-cpp.so.21.0 0x0000798cad5fdd6c clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) + 1036
25 libclang-cpp.so.21.0 0x0000798cad6a91af clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) + 175
26 libclang-cpp.so.21.0 0x0000798cad6a8127 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) + 1287
27 libclang-cpp.so.21.0 0x0000798cad6a7b9f clang::Parser::ParseFirstTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) + 63
28 libclang-cpp.so.21.0 0x0000798cad5ea65a clang::ParseAST(clang::Sema&, bool, bool) + 522
29 libclang-cpp.so.21.0 0x0000798caf20eb2b clang::FrontendAction::Execute() + 43
30 clangd-21            0x00005b77e9676a53
31 clangd-21            0x00005b77e971ccdc
32 clangd-21            0x00005b77e971c6da
33 clangd-21            0x00005b77e97190fc
34 clangd-21            0x00005b77e9718bf2
35 clangd-21            0x00005b77e9881a6a
36 libc.so.6            0x0000798ca3752ac3
37 libc.so.6            0x0000798ca37e4850
Signalled during AST worker action: Build AST
  Filename: /workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp
  Directory: /workspace/Build
  Command Line: /usr/bin/c++ --driver-mode=g++ -DAWS_ENABLE_EPOLL -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=11 -DAWS_SDK_VERSION_PATCH=534 -DBOOST_ATOMIC_NO_LIB -DBOOST_ATOMIC_STATIC_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_CHRONO_STATIC_LINK -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -DBOOST_CONTEXT_EXPORT= -DBOOST_CONTEXT_NO_LIB= -DBOOST_CONTEXT_STATIC_LINK= -DBOOST_DATE_TIME_NO_LIB -DBOOST_DATE_TIME_STATIC_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_JSON_NO_LIB=1 -DBOOST_JSON_STATIC_LINK=1 -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PROGRAM_OPTIONS_STATIC_LINK -DBOOST_THREAD_NO_LIB -DBOOST_THREAD_STATIC_LINK -DBOOST_THREAD_USE_LIB -DGFLAGS_IS_A_DLL=0 -DGLOG_USE_GFLAGS -DGLOG_USE_GLOG_EXPORT -DH5_BUILT_AS_STATIC_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_FWRITE_UNLOCKED -I/workspace/Source -isystem /opt/vcpkg/installed/x64-linux/include -isystem /opt/vcpkg/installed/x64-linux/include/opencv4 -isystem /usr/local/cuda/targets/x86_64-linux/include -isystem /usr/local/onnxruntime-linux-x64-gpu-1.22.0/include/onnxruntime -g -std=gnu++23 -fPIC -o Source/VideoInference/StreamSource/CMakeFiles/VideoInferenceStreamSource.dir/Demuxer/FFmpegSourceDemuxer.cpp.o -c -resource-dir=/usr/lib/llvm-21/lib/clang/21 -- /workspace/Source/VideoInference/StreamSource/Demuxer/FFmpegSourceDemuxer.cpp
  Version: 12
[Error - 12:36:51 AM] The Clang Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 12:36:51 AM] Request textDocument/documentSymbol failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/codeAction failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/documentLink failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/inlayHint failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/semanticTokens/full failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/hover failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/codeAction failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/documentHighlight failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/codeAction failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/hover failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/inlayHint failed.
[object Object]
[Error - 12:36:51 AM] Request textDocument/codeAction failed.
[object Object]
[Error - 12:36:51 AM] Server process exited with signal SIGSEGV.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions