[llvm-bugs] [Bug 48601] New: clang crashes, with automatic repro

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 25 11:35:23 PST 2020


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

            Bug ID: 48601
           Summary: clang crashes, with automatic repro
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mizvekov at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/sbin/clang++ -DSPDLOG_COMPILED_LIB
-DSPDLOG_FMT_EXTERNAL -DCMAKE_INTDIR="Release" -I../../psx/core
-I../../psx/base -I../../psx/ifc -I../../psx/event -I../../miz/base
-I../../miz/intrin -I../../psx/cdrom -I../../psx/xa -I../../psx/cif
-I../../psx/ctrldeck -I../../miz/sig -I../../miz/dlist -I../../input/manager
-I../../psx/rtc -I../../psx/mdec -I../../psx/softrender -I../../psx/gpu
-I../../psx/spu -I../../psx/uart -I../../ext/spdlog/inc -I../../ext/fmt/inc
-target i686-w64-mingw32 -g -Wall -Wno-gcc-compat -fwrapv -fno-pie
-fsplit-lto-unit -fomit-frame-pointer -Wno-overloaded-virtual -O3 -DNDEBUG
-fwhole-program-vtables -flto=thin -std=gnu++20 -MD -MT
psx/core/CMakeFiles/psx.core.dir/Release/psx.core.cc.obj -MF
psx/core/CMakeFiles/psx.core.dir/Release/psx.core.cc.obj.d -o
psx/core/CMakeFiles/psx.core.dir/Release/psx.core.cc.obj -c
../../psx/core/psx.core.cc
1.      <eof> parser at end of file
2.      ../../psx/core/psx.core.cc:1595:34: instantiating function definition
'psx::mem_acc<0>'
3.      ../../psx/core/psx.core.cc:1554:31: instantiating function definition
'psx::mem_acc<psx::base::r3k::basic::LB, std::integral_constant<int, 0>>'
 #0 0x00007fec6277615b llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM-11.so+0xa7615b)
 #1 0x00007fec62773e84 llvm::sys::RunSignalHandlers()
(/usr/bin/../lib/libLLVM-11.so+0xa73e84)
 #2 0x00007fec626866a9 (/usr/bin/../lib/libLLVM-11.so+0x9866a9)
 #3 0x00007fec619976a0 __restore_rt (/usr/bin/../lib/libc.so.6+0x3d6a0)
 #4 0x00007fec67f4570d clang::ImportError::convertToErrorCode() const
(/usr/bin/../lib/libclang-cpp.so.11+0x7e570d)
 #5 0x00007fec68ee86e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17886e8)
 #6 0x00007fec68eea090 (/usr/bin/../lib/libclang-cpp.so.11+0x178a090)
 #7 0x00007fec68eefdee (/usr/bin/../lib/libclang-cpp.so.11+0x178fdee)
 #8 0x00007fec68eeb267 (/usr/bin/../lib/libclang-cpp.so.11+0x178b267)
 #9 0x00007fec68f167e8 (/usr/bin/../lib/libclang-cpp.so.11+0x17b67e8)
#10 0x00007fec68f1aa7c clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&)
(/usr/bin/../lib/libclang-cpp.so.11+0x17baa7c)
#11 0x00007fec68f368bc
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d68bc)
#12 0x00007fec68f34e20 clang::Sema::PerformPendingInstantiations(bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d4e20)
#13 0x00007fec68f36105
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d6105)
#14 0x00007fec68f34e20 clang::Sema::PerformPendingInstantiations(bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x17d4e20)
#15 0x00007fec687921b7 (/usr/bin/../lib/libclang-cpp.so.11+0x10321b7)
#16 0x00007fec68792ac4 clang::Sema::ActOnEndOfTranslationUnit()
(/usr/bin/../lib/libclang-cpp.so.11+0x1032ac4)
#17 0x00007fec6818e8b3
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0xa2e8b3)
#18 0x00007fec680becaa clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/../lib/libclang-cpp.so.11+0x95ecaa)
#19 0x00007fec69a43539 clang::FrontendAction::Execute()
(/usr/bin/../lib/libclang-cpp.so.11+0x22e3539)
#20 0x00007fec699f2f7e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/../lib/libclang-cpp.so.11+0x2292f7e)
#21 0x00007fec69ac0e7d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/../lib/libclang-cpp.so.11+0x2360e7d)
#22 0x00007fec6aaf9852 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/sbin/clang+++0x12852)
#23 0x00007fec6aaf6dfc (/usr/sbin/clang+++0xfdfc)
#24 0x00007fec696be575 (/usr/bin/../lib/libclang-cpp.so.11+0x1f5e575)
#25 0x00007fec626867c3
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/bin/../lib/libLLVM-11.so+0x9867c3)
#26 0x00007fec696bf21e (/usr/bin/../lib/libclang-cpp.so.11+0x1f5f21e)
#27 0x00007fec69694a88
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/usr/bin/../lib/libclang-cpp.so.11+0x1f34a88)
#28 0x00007fec69695377
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/bin/../lib/libclang-cpp.so.11+0x1f35377)
#29 0x00007fec696a0e5c
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/bin/../lib/libclang-cpp.so.11+0x1f40e5c)
#30 0x00007fec6aaf4c02 main (/usr/sbin/clang+++0xdc02)
#31 0x00007fec61982152 __libc_start_main (/usr/bin/../lib/libc.so.6+0x28152)
#32 0x00007fec6aaf676e _start (/usr/sbin/clang+++0xf76e)
clang-11: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 11.0.0
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir: /usr/sbin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/psx-d55a4a.cpp
clang-11: note: diagnostic msg: /tmp/psx-d55a4a.sh
clang-11: note: diagnostic msg:

********************

-- 
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/20201225/5143786a/attachment.html>


More information about the llvm-bugs mailing list