<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Polly in trunk r249977: Crash in polly::Scop::hoistInvariantLoads()"
   href="https://llvm.org/bugs/show_bug.cgi?id=25239">25239</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Polly in trunk r249977: Crash in polly::Scop::hoistInvariantLoads()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Projects
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Stacker
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeremyhu@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15098" name="attach_15098" title="vf_ssim-65e085.sh">attachment 15098</a> <a href="attachment.cgi?id=15098&action=edit" title="vf_ssim-65e085.sh">[details]</a></span>
vf_ssim-65e085.sh

Polly fails to build ffmpeg in recent llvm trunk

0  libLLVM-3.8svn.dylib     0x000000010ef5101e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.8svn.dylib     0x000000010ef50b0f llvm::sys::RunSignalHandlers() +
44
2  libLLVM-3.8svn.dylib     0x000000010ef51646 SignalHandler(int) + 164
3  libsystem_platform.dylib 0x00007fff8c9205aa _sigtramp + 26
4  libsystem_platform.dylib 0x00007ff05b52fbc8 _sigtramp + 3468752440
5  LLVMPolly.dylib          0x0000000110c26b62 void
std::__1::__stable_sort_move<polly::Scop::hoistInvariantLoads()::$_0&,
std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>(std::__1::pair<llvm::SCEV const*,</span >
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > > >*,
std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > > >*,
polly::Scop::hoistInvariantLoads()::$_0&,
std::__1::iterator_traits<std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>::difference_type, std::__1::iterator_traits<std::__1::pair<llvm::SCEV</span >
const*, std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>::value_type*) + 358</span >
6  LLVMPolly.dylib          0x0000000110c26719 void
std::__1::__stable_sort<polly::Scop::hoistInvariantLoads()::$_0&,
std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>(std::__1::pair<llvm::SCEV const*,</span >
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > > >*,
std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > > >*,
polly::Scop::hoistInvariantLoads()::$_0&,
std::__1::iterator_traits<std::__1::pair<llvm::SCEV const*,
std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>::difference_type, std::__1::iterator_traits<std::__1::pair<llvm::SCEV</span >
const*, std::__1::forward_list<std::__1::pair<polly::MemoryAccess*, isl_set*>,
std::__1::allocator<std::__1::pair<polly::MemoryAccess*, isl_set*> > >
<span class="quote">>*>::value_type*, long) + 515</span >
7  LLVMPolly.dylib          0x0000000110c21f43
polly::Scop::hoistInvariantLoads() + 789
8  LLVMPolly.dylib          0x0000000110c21004
polly::Scop::init(llvm::AAResults&) + 298
9  LLVMPolly.dylib          0x0000000110c25fc6
polly::ScopInfo::buildScop(llvm::Region&, llvm::DominatorTree&) + 1070
10 LLVMPolly.dylib          0x0000000110c26304
polly::ScopInfo::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 144
11 libLLVM-3.8svn.dylib     0x000000010e3e4063
llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
12 libLLVM-3.8svn.dylib     0x000000010e7ae146
llvm::FPPassManager::runOnFunction(llvm::Function&) + 286
13 libLLVM-3.8svn.dylib     0x000000010e7adc61
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 91
14 libLLVM-3.8svn.dylib     0x000000010e7adb96
llvm::legacy::FunctionPassManager::run(llvm::Function&) + 48
15 clang                    0x000000010c79d0b6
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 6362
16 clang                    0x000000010c8cf1ef
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 581
17 clang                    0x000000010c95e2bd clang::ParseAST(clang::Sema&,
bool, bool) + 490
18 clang                    0x000000010c8ce47b
clang::CodeGenAction::ExecuteAction() + 563
19 clang                    0x000000010c63abf1 clang::FrontendAction::Execute()
+ 75
20 clang                    0x000000010c610b25
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 757
21 clang                    0x000000010c5e4600
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3804
22 clang                    0x000000010c5dc208 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1320
23 clang                    0x000000010c5e2c30 main + 8651
24 libdyld.dylib            0x00007fff8ec8e5fd start + 1
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1 -triple
x86_64-apple-macosx10.9.0 -emit-obj -disable-free -main-file-name vf_ssim.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -fno-signed-zeros
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 242.2
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -coverage-file
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/build/libavfilter/vf_ssim.o
-resource-dir /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0
-dependency-file libavfilter/vf_ssim.d -MT libavfilter/vf_ssim.o -I . -I
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/src/ -D
_ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D PIC -D
ZLIB_CONST -D HAVE_AV_CONFIG_H -D _GNU_SOURCE=1 -D _THREAD_SAFE -I
/opt/local/include/SDL -I /opt/local/include -I /opt/local/include -I
/opt/local/include -I /opt/local/include -O3 -Wno-deprecated -Wno-unused
-Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith
-Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes
-Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses
-Wno-switch -Wno-format-zero-length -Wno-pointer-sign
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -std=c99 -fconst-strings -fdebug-compilation-dir
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/build -ferror-limit
19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-load /opt/local/libexec/llvm-3.8/lib/LLVMPolly.dylib -mllvm -polly -o
libavfilter/vf_ssim.o -x c
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/src/libavfilter/vf_ssim.c 
1.    <eof> parser at end of file
2.    Per-function optimization
3.    Running pass 'Region Pass Manager' on function '@config_input_ref'
4.    Running pass 'Polly - Create polyhedral description of Scops' on basic
block '%if.end'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 249977)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/vf_ssim-65e085.c
clang: note: diagnostic msg:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/vf_ssim-65e085.sh
clang: note: diagnostic msg: 

********************
make: *** [libavfilter/vf_ssim.o] Error 254</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>