[Bug 50518] New: failed for example : opt -basic-aa -polly-import-jscop -polly-ast -analyze matmul.preopt.ll -polly-import-jscop-postfix=interchanged -polly-process-unprofitable -polly-use-llvm-names

4 views
Skip to first unread message

bugzill...@llvm.org

unread,
May 28, 2021, 8:50:43 AMMay 28
to poll...@googlegroups.com
Bug ID 50518
Summary failed for example : opt -basic-aa -polly-import-jscop -polly-ast -analyze matmul.preopt.ll -polly-import-jscop-postfix=interchanged -polly-process-unprofitable -polly-use-llvm-names
Product Polly
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component Optimizer
Assignee poll...@googlegroups.com
Reporter hai...@sina.com
CC llvm...@lists.llvm.org

(base) haijunz3@haijunz3:~/polly/docs-experiments-code/my_mat$ opt -basic-aa
-polly-import-jscop -polly-ast -analyze matmul.preopt.ll    
-polly-import-jscop-postfix=interchanged -polly-process-unprofitable
-polly-use-llvm-names
Printing analysis 'Basic Alias Analysis (stateless AA impl)' for function
'init_array':
Pass::print not implemented for pass: 'Basic Alias Analysis (stateless AA
impl)'!
Printing analysis 'Polly - Import Scops from JSON (Reads a .jscop file for each
Scop)' for region: 'for.body3 => for.inc17' in function 'init_array':
Printing analysis 'Polly - Generate an AST from the SCoP (isl)' for region:
'for.body3 => for.inc17' in function 'init_array':
Reading JScop '%for.cond1.preheader---%for.end19' in function 'init_array' from
'./init_array___%for.cond1.preheader---%for.end19.jscop.interchanged'.
File could not be read: No such file or directory
LLVM ERROR: Tried to import a malformed jscop file.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: opt -basic-aa -polly-import-jscop -polly-ast
-analyze matmul.preopt.ll -polly-import-jscop-postfix=interchanged
-polly-process-unprofitable -polly-use-llvm-names
1.      Running pass 'Function Pass Manager' on module 'matmul.preopt.ll'.
2.      Running pass 'Region Pass Manager' on function '@init_array'
3.      Running pass 'Polly - Import Scops from JSON (Reads a .jscop file for
each Scop)' on basic block '%for.cond1.preheader'
 #0 0x000055d153f631e6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
/home/haijunz3/polly/llvm_git/llvm/lib/Support/Unix/Signals.inc:565:0
 #1 0x000055d153f6329d PrintStackTraceSignalHandler(void*)
/home/haijunz3/polly/llvm_git/llvm/lib/Support/Unix/Signals.inc:632:0
 #2 0x000055d153f60f51 llvm::sys::RunSignalHandlers()
/home/haijunz3/polly/llvm_git/llvm/lib/Support/Signals.cpp:76:0
 #3 0x000055d153f62b67 SignalHandler(int)
/home/haijunz3/polly/llvm_git/llvm/lib/Support/Unix/Signals.inc:407:0
 #4 0x00007f3986250980 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12980)
 #5 0x00007f3984f01fb7 raise
/build/glibc-S9d2JN/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #6 0x00007f3984f03921 abort /build/glibc-S9d2JN/glibc-2.27/stdlib/abort.c:81:0
 #7 0x000055d153e9904b llvm::install_bad_alloc_error_handler(void (*)(void*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool), void*)
/home/haijunz3/polly/llvm_git/llvm/lib/Support/ErrorHandling.cpp:130:0
 #8 0x000055d153e98e07
llvm::report_fatal_error(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, bool)
/home/haijunz3/polly/llvm_git/llvm/lib/Support/ErrorHandling.cpp:86:0
 #9 0x000055d154b8f89d (anonymous
namespace)::JSONImporter::runOnScop(polly::Scop&)
/home/haijunz3/polly/llvm_git/polly/lib/Exchange/JSONExporter.cpp:784:0
#10 0x000055d154b705df polly::ScopPass::runOnRegion(llvm::Region*,
llvm::RGPassManager&)
/home/haijunz3/polly/llvm_git/polly/lib/Analysis/ScopPass.cpp:33:0
#11 0x000055d152967b55 llvm::RGPassManager::runOnFunction(llvm::Function&)
/home/haijunz3/polly/llvm_git/llvm/lib/Analysis/RegionPass.cpp:98:0
#12 0x000055d1533d5e12 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/haijunz3/polly/llvm_git/llvm/lib/IR/LegacyPassManager.cpp:1439:0
#13 0x000055d1533d60bb llvm::FPPassManager::runOnModule(llvm::Module&)
/home/haijunz3/polly/llvm_git/llvm/lib/IR/LegacyPassManager.cpp:1485:0
#14 0x000055d1533d64e3 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/home/haijunz3/polly/llvm_git/llvm/lib/IR/LegacyPassManager.cpp:1554:0
#15 0x000055d1533d15af llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/haijunz3/polly/llvm_git/llvm/lib/IR/LegacyPassManager.cpp:542:0
#16 0x000055d1533d6d6d llvm::legacy::PassManager::run(llvm::Module&)
/home/haijunz3/polly/llvm_git/llvm/lib/IR/LegacyPassManager.cpp:1682:0
#17 0x000055d150c97965 main
/home/haijunz3/polly/llvm_git/llvm/tools/opt/opt.cpp:1069:0
#18 0x00007f3984ee4bf7 __libc_start_main
/build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:344:0
#19 0x000055d150c5adfa _start
(/home/haijunz3/polly/llvm_build/bin/opt+0x1f8cdfa)
Aborted (core dumped)
(base) haijunz3@haijunz3:~/polly/docs-experiments-code/my_mat$


You are receiving this mail because:
  • You are the assignee for the bug.

bugzill...@llvm.org

unread,
May 28, 2021, 10:49:06 AMMay 28
to poll...@googlegroups.com
Michael Kruse changed bug 50518
What Removed Added
CC   ll...@meinersbur.de
Resolution --- INVALID
Status NEW RESOLVED

Comment # 1 on bug 50518 from Michael Kruse
Thank you for the report.

However, it gives the reason for the crash:
```
Reading JScop '%for.cond1.preheader---%for.end19' in function 'init_array' from
'./init_array___%for.cond1.preheader---%for.end19.jscop.interchanged'
File could not be read: No such file or directory
```
If you are trying to run certain regression tests manually, either ensure that
you are in the same current directory, or copy the json files over from where
you are running it.

JSON import is primarily intended for testing, it does not necessarily degrade
gracefully when something goes wrong (malformed or not existing).

bugzill...@llvm.org

unread,
May 28, 2021, 11:13:20 PMMay 28
to poll...@googlegroups.com
haijunz changed bug 50518
What Removed Added
Status RESOLVED REOPENED
Resolution INVALID ---
Reply all
Reply to author
Forward
0 new messages