Crash in clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const

Similar reports
Problem #698528
Component
clang
Last affected version
0:18.1.8-2.fc40
Executable
/usr/bin/clangd
Error name
SIGSEGV 11
First occurrence
2024-09-12
Last occurrence
2026-01-09
Unique reports
4
Quality
-68

Statistics

Operating system Unique / Total count
Fedora 40 4 / 10
Operating system Count
Fedora 40 10
Architecture Count
x86_64 10
Related packages Count
clang-tools-extra 10
 0:18.1.8-2.fc40 5
 0:18.1.6-3.fc40 5

Packages names with count less than the total count of reports are most probably not the cause of the problem.

History

Daily:

Weekly:

Monthly:

History

Daily:

Weekly:

Monthly:


Backtrace

Frame # Function Binary Source or offset Line
1
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const
/lib64/libclang-cpp.so.18.1 0xbaf72b
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
2
(anonymous namespace)::EmptySubobjectMap::ComputeEmptySubobjectSizes()
/lib64/libclang-cpp.so.18.1 0xbb6ec7
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
3
clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const
/lib64/libclang-cpp.so.18.1 0xbb0091
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
4
getBaseAlignmentAndOffsetFromPtr(clang::Expr const*, clang::ASTContext&)
/lib64/libclang-cpp.so.18.1 0xfea6ef
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
5
getPresumedAlignmentOfPointer(clang::Expr const*, clang::Sema&)
/lib64/libclang-cpp.so.18.1 0xfcb9dc
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
6
clang::Sema::CheckCastAlign(clang::Expr*, clang::QualType, clang::SourceRange)
/lib64/libclang-cpp.so.18.1 0xfcb8d6
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
7
(anonymous namespace)::CastOperation::CheckCXXCStyleCast(bool, bool)
/lib64/libclang-cpp.so.18.1 0xf937e3
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
8
clang::Sema::BuildCStyleCastExpr(clang::SourceLocation, clang::TypeSourceInfo*, clang::SourceLocation, clang::Expr*)
/lib64/libclang-cpp.so.18.1 0xf91984
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
9
clang::Sema::ActOnCastExpr(clang::Scope*, clang::SourceLocation, clang::Declarator&, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation, clang::Expr*)
/lib64/libclang-cpp.so.18.1 0x1297048
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
10
clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&)
/lib64/libclang-cpp.so.18.1 0x5cc0ed
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
11
clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*)
/lib64/libclang-cpp.so.18.1 0x5c9d17
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
12
clang::Parser::ParseCastExpression(clang::Parser::CastParseKind, bool, bool&, clang::Parser::TypeCastState, bool, bool*)
/lib64/libclang-cpp.so.18.1 0x5c754c
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
13
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState)
/lib64/libclang-cpp.so.18.1 0x5c2708
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
14
clang::Parser::ParseExprStatement(clang::Parser::ParsedStmtContext)
/lib64/libclang-cpp.so.18.1 0x62f2f7
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
15
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&)
/lib64/libclang-cpp.so.18.1 0x62cc61
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
16
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*)
/lib64/libclang-cpp.so.18.1 0x62c371
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
17
clang::Parser::ParseCompoundStatementBody(bool)
/lib64/libclang-cpp.so.18.1 0x636680
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
18
clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&)
/lib64/libclang-cpp.so.18.1 0x637b36
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
19
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
/lib64/libclang-cpp.so.18.1 0x655a26
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
20
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*)
/lib64/libclang-cpp.so.18.1 0x58be20
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
21
clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier)
/lib64/libclang-cpp.so.18.1 0x654687
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
22
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier)
/lib64/libclang-cpp.so.18.1 0x65402e
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
23
clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*)
/lib64/libclang-cpp.so.18.1 0x653053
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
24
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&)
/lib64/libclang-cpp.so.18.1 0x651359
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
25
clang::ParseAST(clang::Sema&, bool, bool)
/lib64/libclang-cpp.so.18.1 0x5744de
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
26
clang::FrontendAction::Execute()
/lib64/libclang-cpp.so.18.1 0x281c9f6
Build id: 23619722f113d93aa8887b1906eb36a800dc55a5
-
27
clang::clangd::ParsedAST::build(llvm::StringRef, clang::clangd::ParseInputs const&, std::unique_ptr<clang::CompilerInvocation, std::default_delete<clang::CompilerInvocation> >, llvm::ArrayRef<clang::clangd::Diag>, std::shared_ptr<clang::clangd::PreambleData const>)
/usr/bin/clangd 0x4700e1
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
28
clang::clangd::(anonymous namespace)::ASTWorker::generateDiagnostics(std::unique_ptr<clang::CompilerInvocation, std::default_delete<clang::CompilerInvocation> >, clang::clangd::ParseInputs, std::vector<clang::clangd::Diag, std::allocator<clang::clangd::Diag> >)
/usr/bin/clangd 0x506128
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
29
clang::clangd::(anonymous namespace)::ASTWorker::updatePreamble(std::unique_ptr<clang::CompilerInvocation, std::default_delete<clang::CompilerInvocation> >, clang::clangd::ParseInputs, std::shared_ptr<clang::clangd::PreambleData const>, std::vector<clang::clangd::Diag, std::allocator<clang::clangd::Diag> >, clang::clangd::WantDiagnostics)::$_0::operator()()
/usr/bin/clangd 0x505b3a
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
30
clang::clangd::(anonymous namespace)::ASTWorker::runTask(llvm::StringRef, llvm::function_ref<void ()>)
/usr/bin/clangd 0x50242c
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
31
void llvm::detail::UniqueFunctionBase<void>::CallImpl<clang::clangd::(anonymous namespace)::ASTWorker::create(llvm::StringRef, clang::clangd::GlobalCompilationDatabase const&, clang::clangd::TUScheduler::ASTCache&, clang::clangd::TUScheduler::HeaderIncluderCache&, clang::clangd::AsyncTaskRunner*, clang::clangd::Semaphore&, clang::clangd::TUScheduler::Options const&, clang::clangd::ParsingCallbacks&)::$_0>(void*)
/usr/bin/clangd 0x501df1
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
32
void* llvm::thread::ThreadProxy<std::tuple<clang::clangd::AsyncTaskRunner::runAsync(llvm::Twine const&, llvm::unique_function<void ()>)::$_1> >(void*)
/usr/bin/clangd 0x65aaf7
Build id: 53069dd340acc73db638262db3cf7041117d485a
-
33
start_thread
/lib64/libc.so.6 0x976d7
Build id: 77c77fee058b19c6f001cf2cb0371ce3b8341211
-
34
__clone3
/lib64/libc.so.6 0x11b60c
Build id: 77c77fee058b19c6f001cf2cb0371ce3b8341211
-