[llvm-bugs] [Bug 51257] New: [Modules TS] Segmentation fault on compilation.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 28 15:37:34 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51257

            Bug ID: 51257
           Summary: [Modules TS] Segmentation fault on compilation.
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: potatolivingstonei2p at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

1. serv.cpp:38:13: at annotation token
#0 0x00007f413d429f2f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x9cef2f)
#1 0x00007f413d428460 llvm::sys::RunSignalHandlers()
(/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x9cd460)
#2 0x00007f413d42a242 (/lib/x86_64-linux-gnu/libLLVM-7.so.1+0x9cf242)
#3 0x00007f4140484730 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
#4 0x0000000001ab712f clang::TypeLoc::getNextTypeLocImpl(clang::TypeLoc)
(/usr/lib/llvm-7/bin/clang+0x1ab712f)
#5 0x0000000001ab825b clang::TypeLoc::getBeginLoc() const
(/usr/lib/llvm-7/bin/clang+0x1ab825b)
#6 0x00000000019d5317 clang::TemplateTypeParmDecl::getDefaultArgumentLoc()
const (/usr/lib/llvm-7/bin/clang+0x19d5317)
#7 0x00000000016fd705 (/usr/lib/llvm-7/bin/clang+0x16fd705)
#8 0x00000000016f40bc
clang::Sema::CheckTemplateArgumentList(clang::TemplateDecl*,
clang::SourceLocation, clang::TemplateArgumentListInfo&, bool,
llvm::SmallVectorImpl<clang::TemplateArgument>&, bool)
(/usr/lib/llvm-7/bin/clang+0x16f40bc)
#9 0x00000000016f2a10 clang::Sema::CheckTemplateIdType(clang::TemplateName,
clang::SourceLocation, clang::TemplateArgumentListInfo&)
(/usr/lib/llvm-7/bin/clang+0x16f2a10)
#10 0x00000000016f5bf6 clang::Sema::ActOnTemplateIdType(clang::CXXScopeSpec&,
clang::SourceLocation, clang::OpaquePtr<clang::TemplateName>,
clang::IdentifierInfo*, clang::SourceLocation, clang::SourceLocation,
llvm::MutableArrayRef<clang::ParsedTemplateArgument>, clang::SourceLocation,
bool, bool) (/usr/lib/llvm-7/bin/clang+0x16f5bf6)
#11 0x000000000114ebd1 clang::Parser::AnnotateTemplateIdTokenAsType(bool)
(/usr/lib/llvm-7/bin/clang+0x114ebd1)
#12 0x00000000010d4217
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*)
(/usr/lib/llvm-7/bin/clang+0x10d4217)
#13 0x00000000010bee9e
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
(/usr/lib/llvm-7/bin/clang+0x10bee9e)
#14 0x00000000010beb78
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
(/usr/lib/llvm-7/bin/clang+0x10beb78)
#15 0x00000000010bdadc
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/usr/lib/llvm-7/bin/clang+0x10bdadc)
#16 0x00000000010bc8ae
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/usr/lib/llvm-7/bin/clang+0x10bc8ae)
#17 0x00000000010b83c7 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-7/bin/clang+0x10b83c7)
#18 0x0000000000ad243f clang::FrontendAction::Execute()
(/usr/lib/llvm-7/bin/clang+0xad243f)
#19 0x0000000000a93738
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-7/bin/clang+0xa93738)
#20 0x0000000000b608d6
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-7/bin/clang+0xb608d6)
#21 0x00000000006aa014 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-7/bin/clang+0x6aa014)
#22 0x00000000006a84b7 main (/usr/lib/llvm-7/bin/clang+0x6a84b7)
#23 0x00007f413c50d09b __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2409b)
#24 0x00000000006a5ada _start (/usr/lib/llvm-7/bin/clang+0x6a5ada)
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.1-8+deb10u2 (tags/RELEASE_701/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg:
********************

https://paste.i2pd.xyz/?78de4752330306a0#DiXZUyYgTYP2fUfFrZ6KWhtszxJL2RnJpY5VqZLp6643
- serv-61b28e.cpp

Module ->
https://github.com/wipedlifepotato/bacteria/commit/3f5eecfe53248657270dd522bec6e31998acce3c#diff-c5ae862a7547915718f1fc57a6c082ea27fdc4575a30da396397cfbbcc2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210728/d704f4e2/attachment.html>


More information about the llvm-bugs mailing list