[llvm-bugs] [Bug 26072] New: Segmentation fault when compiling Boost.Hana based code

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 8 00:54:12 PST 2016


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

            Bug ID: 26072
           Summary: Segmentation fault when compiling Boost.Hana based
                    code
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: martyone+llvm at ubedi.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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

-- 
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/20160108/749d9b61/attachment.html>


More information about the llvm-bugs mailing list