[llvm-bugs] [Bug 44163] New: clang frontend command failed due to signal

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 27 07:49:27 PST 2019


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

            Bug ID: 44163
           Summary: clang frontend command failed due to signal
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: lani at eng.au.dk
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

I have a missing file in my compilation process, which is missing.
This results in the following error on Fedor 31

../test/test_message_header/test_message_header.cpp:1:10: fatal error:
'hermes_pi/model/message_header.hpp' file not found
#include <hermes_pi/model/message_header.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stack dump:
0.      Program arguments: /usr/bin/clang-9 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name test_message_header.cpp -mrelocation-model
static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb
-momit-leaf-frame-pointer -coverage-notes-file
/home/tools/git/hermes-pi/build/test/test_message_header/test_message_header.cpp.1.gcno
-resource-dir /usr/lib64/clang/9.0.0 -D NDEBUG -I src -I ../src -I
resolve_symlinks/hermes/src -I ../resolve_symlinks/hermes/src -I
resolve_symlinks/harpocrates/src -I ../resolve_symlinks/harpocrates/src -I
resolve_symlinks/tartarus/src -I ../resolve_symlinks/tartarus/src -I
resolve_symlinks/Codes/src -I ../resolve_symlinks/Codes/src -I
resolve_symlinks/aloha/src -I ../resolve_symlinks/aloha/src -I
resolve_symlinks/codewrapper/src -I ../resolve_symlinks/codewrapper/src -I
resolve_symlinks/libcorrect/include -I ../resolve_symlinks/libcorrect/include
-I resolve_symlinks/gtest/gtest/include -I
../resolve_symlinks/gtest/gtest/include -I test/test_message_header/include -I
../test/test_message_header/include -internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/x86_64-redhat-linux
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/lib64/clang/9.0.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -Werror -Wextra -Wall -Werror
-Wextra -Wall -Werror -Wextra -Wall -Werror -Wextra -Wall -Werror -Wextra -Wall
-Werror -Wextra -Wall -Werror -Wextra -Wall -Werror -Wextra -Wall -Werror
-Wextra -std=c++17 -fdeprecated-macro -fdebug-compilation-dir
/home/tools/git/hermes-pi/build -ferror-limit 19 -fmessage-length 0
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -faddrsig -o
/home/tools/git/hermes-pi/build/test/test_message_header/test_message_header.cpp.1.o
-x c++ ../test/test_message_header/test_message_header.cpp 
1.     
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/unordered_map.h:1167:58:
current parser token ';'
2.     
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ostream:41:1:
parsing namespace 'std'
3.     
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/unordered_map.h:33:1:
parsing namespace 'std::std'
 #0 0x00007f49548782ee llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/lib64/libLLVM-9.so+0xbb82ee)
 #1 0x00007f49548761e4 llvm::sys::RunSignalHandlers()
(/lib64/libLLVM-9.so+0xbb61e4)
 #2 0x00007f4954876365 (/lib64/libLLVM-9.so+0xbb6365)
 #3 0x00007f49509aa6b0 __restore_rt (/lib64/libc.so.6+0x3c6b0)
 #4 0x00007f4951a04644 clang::NestedNameSpecifier::getKind() const
(/lib64/libclang-cpp.so.9+0xcb9644)
 #5 0x00007f4951a04ea0
clang::NestedNameSpecifier::containsUnexpandedParameterPack() const
(/lib64/libclang-cpp.so.9+0xcb9ea0)
 #6 0x00007f4952334835
clang::Sema::DiagnoseUnexpandedParameterPack(clang::CXXScopeSpec const&,
clang::Sema::UnexpandedParameterPackContext)
(/lib64/libclang-cpp.so.9+0x15e9835)
 #7 0x00007f4951de8610 clang::Sema::HandleDeclarator(clang::Scope*,
clang::Declarator&, llvm::MutableArrayRef<clang::TemplateParameterList*>)
(/lib64/libclang-cpp.so.9+0x109d610)
 #8 0x00007f4951de950f clang::Sema::ActOnDeclarator(clang::Scope*,
clang::Declarator&) (/lib64/libclang-cpp.so.9+0x109e50f)
 #9 0x00007f49516b170f
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*)
(/lib64/libclang-cpp.so.9+0x96670f)
#10 0x00007f49516c9aa9 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*)
(/lib64/libclang-cpp.so.9+0x97eaa9)
#11 0x00007f4951761172
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
(/lib64/libclang-cpp.so.9+0xa16172)
#12 0x00007f4951761747
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
(/lib64/libclang-cpp.so.9+0xa16747)
#13 0x00007f4951769f6f
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.9+0xa1ef6f)
#14 0x00007f49516d796e
clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo,
4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&,
clang::BalancedDelimiterTracker&) (/lib64/libclang-cpp.so.9+0x98c96e)
#15 0x00007f49516d8aaa clang::Parser::ParseNamespace(clang::DeclaratorContext,
clang::SourceLocation&, clang::SourceLocation)
(/lib64/libclang-cpp.so.9+0x98daaa)
#16 0x00007f49516caba8
clang::Parser::ParseDeclaration(clang::DeclaratorContext,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&)
(/lib64/libclang-cpp.so.9+0x97fba8)
#17 0x00007f49517698b6
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.9+0xa1e8b6)
#18 0x00007f49516d796e
clang::Parser::ParseInnerNamespace(llvm::SmallVector<clang::Parser::InnerNamespaceInfo,
4u> const&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&,
clang::BalancedDelimiterTracker&) (/lib64/libclang-cpp.so.9+0x98c96e)
#19 0x00007f49516d8aaa clang::Parser::ParseNamespace(clang::DeclaratorContext,
clang::SourceLocation&, clang::SourceLocation)
(/lib64/libclang-cpp.so.9+0x98daaa)
#20 0x00007f49516caba8
clang::Parser::ParseDeclaration(clang::DeclaratorContext,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&)
(/lib64/libclang-cpp.so.9+0x97fba8)
#21 0x00007f49517698b6
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/lib64/libclang-cpp.so.9+0xa1e8b6)
#22 0x00007f495176aa18
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
(/lib64/libclang-cpp.so.9+0xa1fa18)
#23 0x00007f495169fd29 clang::ParseAST(clang::Sema&, bool, bool)
(/lib64/libclang-cpp.so.9+0x954d29)
#24 0x00007f4952649bc1 clang::CodeGenAction::ExecuteAction()
(/lib64/libclang-cpp.so.9+0x18febc1)
#25 0x00007f4952dada11 clang::FrontendAction::Execute()
(/lib64/libclang-cpp.so.9+0x2062a11)
#26 0x00007f4952d642bb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/lib64/libclang-cpp.so.9+0x20192bb)
#27 0x00007f4952e31928
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/lib64/libclang-cpp.so.9+0x20e6928)
#28 0x0000558a256299ff cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-9+0x179ff)
#29 0x0000558a25625466 main (/usr/bin/clang-9+0x13466)
#30 0x00007f49509951a3 __libc_start_main (/lib64/libc.so.6+0x271a3)
#31 0x0000558a25625ffe _start (/usr/bin/clang-9+0x13ffe)
clang-9: error: unable to execute command: Segmentation fault (core dumped)
clang-9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 9.0.0 (Fedora 9.0.0-1.fc31)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-9: note: diagnostic msg: Error generating preprocessed source(s).

I looked at the associated bugs: 26857, 36498, 40558, 41899, 41919, 41920 and
they do not seem to have the same root cause or the same trace.

-- 
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/20191127/7cac9194/attachment-0001.html>


More information about the llvm-bugs mailing list