[llvm-bugs] [Bug 48034] New: polly crashes while running pass 'Polly - Forward operand tree': Assertion `RA->isLatestScalarKind()' failed
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 31 05:33:15 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=48034
Bug ID: 48034
Summary: polly crashes while running pass 'Polly - Forward
operand tree': Assertion `RA->isLatestScalarKind()'
failed
Product: Polly
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Optimizer
Assignee: polly-dev at googlegroups.com
Reporter: su at cs.ucdavis.edu
CC: llvm-bugs at lists.llvm.org
[559] % clangtk -v
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
6021cbea4d346d8ff059f8dd74ba7d520646be03)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /local/suz-local/opfuzz/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
[560] %
[560] % clangtk -O2 -c small.c
[561] %
[561] % clangtk -O2 -c -mllvm -polly small.c
clangtk:
/local/suz-local/software/clangbuild/llvm-project/polly/lib/Transform/ForwardOpTree.cpp:930:
bool {anonymous}::ForwardOpTreeImpl::tryForwardTree(polly::MemoryAccess*):
Assertion `RA->isLatestScalarKind()' failed.
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: clangtk -O2 -c -mllvm -polly small.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module 'small.c'.
4. Running pass 'Region Pass Manager' on function '@v'
5. Running pass 'Polly - Forward operand tree' on basic block '%L'
#0 0x000055828102392c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x323392c)
#1 0x0000558281021604 llvm::sys::RunSignalHandlers()
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x3231604)
#2 0x0000558281021895 llvm::sys::CleanupOnSignal(unsigned long)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x3231895)
#3 0x0000558280f8b1e8 CrashRecoverySignalHandler(int)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x319b1e8)
#4 0x00007fb2270338a0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x128a0)
#5 0x00007fb225ce4f47 raise
/build/glibc-2ORdQG/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#6 0x00007fb225ce68b1 abort /build/glibc-2ORdQG/glibc-2.27/stdlib/abort.c:81:0
#7 0x00007fb225cd642a __assert_fail_base
/build/glibc-2ORdQG/glibc-2.27/assert/assert.c:89:0
#8 0x00007fb225cd64a2 (/lib/x86_64-linux-gnu/libc.so.6+0x304a2)
#9 0x0000558281f4da14 (anonymous
namespace)::ForwardOpTreeImpl::forwardOperandTrees()
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x415da14)
#10 0x0000558281f4e722 (anonymous
namespace)::ForwardOpTree::runOnScop(polly::Scop&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x415e722)
#11 0x0000558280267696 llvm::RGPassManager::runOnFunction(llvm::Function&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x2477696)
#12 0x00005582808e90d8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x2af90d8)
#13 0x00005582808e9bd9 llvm::FPPassManager::runOnModule(llvm::Module&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x2af9bd9)
#14 0x00005582808e8956 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x2af8956)
#15 0x00005582812c5f1e clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x34d5f1e)
#16 0x0000558281ec5086
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x40d5086)
#17 0x0000558282dd6e29 clang::ParseAST(clang::Sema&, bool, bool)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x4fe6e29)
#18 0x0000558281ec3ca0 clang::CodeGenAction::ExecuteAction()
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x40d3ca0)
#19 0x00005582818787f9 clang::FrontendAction::Execute()
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x3a887f9)
#20 0x000055828183280a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x3a4280a)
#21 0x0000558281942d26
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x3b52d26)
#22 0x000055827eed763c cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/local/suz-local/software/local/clang-trunk/bin/clang-12+0x10e763c)
#23 0x000055827eed32a9 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x10e32a9)
#24 0x00005582816fe435 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const::'lambda'()>(long)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x390e435)
#25 0x0000558280f8b2c3
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x319b2c3)
#26 0x00005582816fefaf
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const (.part.162)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x390efaf)
#27 0x00005582816d91d8
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x38e91d8)
#28 0x00005582816d9e3f
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x38e9e3f)
#29 0x00005582816e26aa
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x38f26aa)
#30 0x000055827ee05b60 main
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x1015b60)
#31 0x00007fb225cc7b97 __libc_start_main
/build/glibc-2ORdQG/glibc-2.27/csu/../csu/libc-start.c:344:0
#32 0x000055827eed2e0a _start
(/local/suz-local/software/local/clang-trunk/bin/clang-12+0x10e2e0a)
clang-12: error: clang frontend command failed with exit code 134 (use -v to
see invocation)
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
6021cbea4d346d8ff059f8dd74ba7d520646be03)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /local/suz-local/opfuzz/bin
clang-12: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/small-46e011.c
clang-12: note: diagnostic msg: /tmp/small-46e011.sh
clang-12: note: diagnostic msg:
********************
[562] %
[562] % cat small.c
int printf (const char *, ...);
short a, h;
unsigned b;
long long c;
char e;
int f, g, i, j;
long k;
void v() {
long l;
while (i) {
unsigned m = ~0;
short n = e - l / g, o = ~0, r = c ^ k & b,
s = ~h & c & f - 2 ^ g & ~a % (l ^ -b);
char p = g / a;
long q = ~(o % b);
int t = e | s & -c << b, u = ~-t | c | -s & -e % a,
d = (-~0 | ~r ^ t % h - a % l) - 2 & k % (e - u);
L:
c = d * (a || -d | h & q);
h = (m << p) % o * ~c / ~d;
l = n || q & e | j;
e = ~c ^ (d ^ p) & l;
g = l ^ c;
if (d) {
printf("%llu\n", c);
goto L;
}
}
}
--
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/20201031/4efcfe42/attachment-0001.html>
More information about the llvm-bugs
mailing list