<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - clang crashes, with automatic repro"
href="https://bugs.llvm.org/show_bug.cgi?id=48601">48601</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crashes, with automatic repro
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mizvekov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> 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:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>