[llvm-bugs] [Bug 43895] New: clang crash

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 3 23:21:38 PST 2019


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

            Bug ID: 43895
           Summary: clang crash
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at alex.lanin.de
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 22765
  --> https://bugs.llvm.org/attachment.cgi?id=22765&action=edit
input file reduced by creduce-clang-crash

Hi,

unfortunately I don't have a very nice small example, but attached file crashes
clang (self compiled, a few days ago). I've generated it via:
../llvm/clang/utils/creduce-clang-crash.py crash.sh crash.cpp --llvm-bin
../llvm-build/bin


Stack dump:
0.      Program arguments: /usr/local/bin/clang-10 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
creduce-clang-crash-output.cpp -mrelocation-model static -mthread-model posix
-mframe-pointer=all -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debugger-tuning=gdb -resource-dir /usr/local/lib/clang/10.0.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/lib/clang/10.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdeprecated-macro
-fdebug-compilation-dir /mnt/c/Git/clangcrash -ferror-limit 19 -fmessage-length
0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -faddrsig -o
/tmp/creduce-clang-crash-output-19f8b3.o -x c++ creduce-clang-crash-output.cpp
1.      creduce-clang-crash-output.cpp:186:97: current parser token ';'
2.      creduce-clang-crash-output.cpp:116:8: parsing namespace 'std'
3.      creduce-clang-crash-output.cpp:185:65: parsing function body
'std::SubTestMsgQueuIpc_TestReadTimeout_Test::TestBody'
4.      creduce-clang-crash-output.cpp:185:65: in compound statement ('{}')
5.      creduce-clang-crash-output.cpp:104:49: instantiating class definition
'std::result_of<std::_Bind<std::_Mem_fn<void (std::SubTestMsgQueuIpc::*)()>
(std::SubTestMsgQueuIpc_TestReadTimeout_Test *)> ()>'
6.      creduce-clang-crash-output.cpp:105:82: instantiating class definition
'std::__result_of_impl<false, false, std::_Bind<std::_Mem_fn<void
(std::SubTestMsgQueuIpc::*)()> (std::SubTestMsgQueuIpc_TestReadTimeout_Test
*)>>'
  #0 0x000000000258a4ca llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/clang-10+0x258a4ca)
  #1 0x000000000258833c llvm::sys::RunSignalHandlers()
(/usr/local/bin/clang-10+0x258833c)
  #2 0x00000000025884a5 SignalHandler(int) (/usr/local/bin/clang-10+0x25884a5)
  #3 0x00007f03a6df1390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
  #4 0x000000000419c22e
clang::ASTContext::getUnqualifiedArrayType(clang::QualType, clang::Qualifiers&)
(/usr/local/bin/clang-10+0x419c22e)
  #5 0x0000000003f06442
clang::Sema::CompareReferenceRelationship(clang::SourceLocation,
clang::QualType, clang::QualType, bool&, bool&, bool&, bool&)
(/usr/local/bin/clang-10+0x3f06442)
  #6 0x0000000003f125f4 TryReferenceInit(clang::Sema&, clang::Expr*,
clang::QualType, clang::SourceLocation, bool, bool)
(/usr/local/bin/clang-10+0x3f125f4)
  #7 0x0000000003f1acca TryCopyInitialization(clang::Sema&, clang::Expr*,
clang::QualType, bool, bool, bool, bool) (.constprop.1042)
(/usr/local/bin/clang-10+0x3f1acca)
  #8 0x0000000003f1b277
clang::OverloadCandidateSet::CompleteCandidates(clang::Sema&,
clang::OverloadCandidateDisplayKind, llvm::ArrayRef<clang::Expr*>,
clang::SourceLocation, llvm::function_ref<bool (clang::OverloadCandidate&)>)
(/usr/local/bin/clang-10+0x3f1b277)
  #9 0x0000000003f23ef3
clang::OverloadCandidateSet::NoteCandidates(std::pair<clang::SourceLocation,
clang::PartialDiagnostic>, clang::Sema&, clang::OverloadCandidateDisplayKind,
llvm::ArrayRef<clang::Expr*>, llvm::StringRef, clang::SourceLocation,
llvm::function_ref<bool (clang::OverloadCandidate&)>)
(/usr/local/bin/clang-10+0x3f23ef3)
 #10 0x0000000003f2727f
clang::Sema::BuildCallToObjectOfClassType(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) (/usr/local/bin/clang-10+0x3f2727f)
....

-- 
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/20191104/4d8ffb86/attachment.html>


More information about the llvm-bugs mailing list