Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Segmentation fault when compiling Boost.Hana based code #26071

Open Quuxplusone opened 8 years ago

Quuxplusone commented 8 years ago
Bugzilla Link PR26072
Status NEW
Importance P normal
Reported by Martin Kampas (martyone+llvm@ubedi.net)
Reported on 2016-01-08 02:54:12 -0800
Last modified on 2016-01-08 02:56:23 -0800
Version 3.7
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments hana-test-8713d8.cpp (952873 bytes, text/x-c++src)
hana-test-8713d8.sh (2095 bytes, application/x-shellscript)
Blocks
Blocked by
See also
clang++ -std=c++14 -I/tmp/test/hana/include    hana-test.cpp   -o hana-test
#0 0x7fb9d222e6b0 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM.so.3.7+0x5686b0)
#1 0x7fb9d222d491 (/usr/bin/../lib/libLLVM.so.3.7+0x567491)
#2 0x7fb9d1ab9d60 __restore_rt (/usr/bin/../lib/libpthread.so.0+0x10d60)
#3 0x13c09ad (/usr/bin/clang-3.7+0x13c09ad)
#4 0x13ca17d (/usr/bin/clang-3.7+0x13ca17d)
#5 0x13ca57e (/usr/bin/clang-3.7+0x13ca57e)
#6 0x13c8ee3 (/usr/bin/clang-3.7+0x13c8ee3)
#7 0x13c8d87 (/usr/bin/clang-3.7+0x13c8d87)
#8 0x13c8c01 (/usr/bin/clang-3.7+0x13c8c01)
#9 0x13c9a4b (/usr/bin/clang-3.7+0x13c9a4b)
#10 0x13c9ac0 (/usr/bin/clang-3.7+0x13c9ac0)
#11 0x13c9da8 (/usr/bin/clang-3.7+0x13c9da8)
#12 0x13c40dc (/usr/bin/clang-3.7+0x13c40dc)
#13 0x13c59af (/usr/bin/clang-3.7+0x13c59af)
#14 0x13c7269 (/usr/bin/clang-3.7+0x13c7269)
#15 0x13c7155 (/usr/bin/clang-3.7+0x13c7155)
#16 0x13c7490 (/usr/bin/clang-3.7+0x13c7490)
#17 0x13cc94b (/usr/bin/clang-3.7+0x13cc94b)
#18 0x69c6de clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl)
(/usr/bin/clang-3.7+0x69c6de)
#19 0x6a8813 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/bin/clang-3.7+0x6a8813)
#20 0x6a9458 (/usr/bin/clang-3.7+0x6a9458)
#21 0x9915d3 (/usr/bin/clang-3.7+0x9915d3)
#22 0x98c50c (/usr/bin/clang-3.7+0x98c50c)
#23 0xfc5035 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) (/usr/bin/clang-3.7+0xfc5035)
#24 0xfc56ea clang::Sema::PerformPendingInstantiations(bool) (/usr/bin/clang-
3.7+0xfc56ea)
#25 0xc4efd3 clang::Sema::ActOnEndOfTranslationUnit() (/usr/bin/clang-
3.7+0xc4efd3)
#26 0xacde59
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/usr/bin/clang-3.7+0xacde59)
#27 0xac1ea3 clang::ParseAST(clang::Sema&, bool, bool) (/usr/bin/clang-
3.7+0xac1ea3)
#28 0x915fa6 clang::FrontendAction::Execute() (/usr/bin/clang-3.7+0x915fa6)
#29 0x8ec629 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/clang-3.7+0x8ec629)
#30 0x98bab3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/clang-3.7+0x98bab3)
#31 0x657208 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
(/usr/bin/clang-3.7+0x657208)
#32 0x65265e main (/usr/bin/clang-3.7+0x65265e)
#33 0x7fb9d118d610 __libc_start_main (/usr/bin/../lib/libc.so.6+0x20610)
#34 0x655279 _start (/usr/bin/clang-3.7+0x655279)
Stack dump:
0.      Program arguments: /usr/bin/clang-3.7 -cc1 -triple x86_64-unknown-linux-
gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
hana-test.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -
fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-
array -target-cpu x86-64 -dwarf-column-info -resource-dir
/usr/bin/../lib/clang/3.7.0 -I /tmp/test/hana/include -internal-isystem
/usr/bin/../lib64/gcc/x86_64-unknown-linux-
gnu/5.3.0/../../../../include/c++/5.3.0 -internal-isystem
/usr/bin/../lib64/gcc/x86_64-unknown-linux-
gnu/5.3.0/../../../../include/c++/5.3.0/x86_64-unknown-linux-gnu -internal-
isystem /usr/bin/../lib64/gcc/x86_64-unknown-linux-
gnu/5.3.0/../../../../include/c++/5.3.0/backward -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.7.0/include -
internal-externc-isystem /include -internal-externc-isystem /usr/include -
std=c++14 -fdeprecated-macro -fdebug-compilation-dir /tmp/test -ferror-limit 19
-fmessage-length 319 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -
fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/hana-test-
8a2c7d.o -x c++ hana-test.cpp
1.      <eof> parser at end of file
2.      /tmp/test/hana/include/boost/hana/filter.hpp:103:18: instantiating
function definition 'operator()'
3.      /tmp/test/hana/include/boost/hana/filter.hpp:103:18: LLVM IR generation
of declaration
'boost::hana::detail::make_filter_indices<boost::hana::_compose<boost::hana::not_t,
(lambda at hana-test.cpp:15:63)> >::operator()'
4.      /tmp/test/hana/include/boost/hana/filter.hpp:103:18: Mangling
declaration
'boost::hana::detail::make_filter_indices<boost::hana::_compose<boost::hana::not_t,
(lambda at hana-test.cpp:15:63)> >::operator()'
clang-3.7: error: unable to execute command: Segmentation fault
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Quuxplusone commented 8 years ago

Attached hana-test-8713d8.cpp (952873 bytes, text/x-c++src): Preprocessed source

Quuxplusone commented 8 years ago

Attached hana-test-8713d8.sh (2095 bytes, application/x-shellscript): Run script