<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 - Polly/isl trunk r311629 crashes while building ffmpeg"
   href="https://bugs.llvm.org/show_bug.cgi?id=34440">34440</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Polly/isl trunk r311629 crashes while building ffmpeg
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Optimizer
          </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></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19095" name="attach_19095" title="crash log">attachment 19095</a> <a href="attachment.cgi?id=19095&action=edit" title="crash log">[details]</a></span>
crash log

I haven’t been keeping too close an eye on polly for the past few months, so
I’m not quite sure when this regressed, but here are the data points that I
currently have:

r308713 compiled ffmpeg ok, but it had some had some issues,
<a href="http://fate.ffmpeg.org/report.cgi?time=20170831090948&slot=i386-darwin-clang-polly-devel">http://fate.ffmpeg.org/report.cgi?time=20170831090948&slot=i386-darwin-clang-polly-devel</a>
r306254 produced an ffmpeg build that passed their regression tests,
<a href="http://fate.ffmpeg.org/report.cgi?time=20170721062156&slot=i386-darwin-clang-polly-devel">http://fate.ffmpeg.org/report.cgi?time=20170721062156&slot=i386-darwin-clang-polly-devel</a>


Application Specific Information:
Stack dump:
0.      Program arguments: /opt/local/libexec/llvm-devel/bin/clang -cc1 -triple
i386-apple-macosx10.12.0 -emit-obj -disable-free -main-file-name
wmalosslessdec.c -mrelocation-model dynamic-no-pic -mthread-model posix
-fno-signed-zeros -masm-verbose -munwind-tables -faligned-alloc-unavailable
-target-cpu penryn -target-linker-version 278.4 -dwarf-column-info
-debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb
-coverage-notes-file
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-nooptimize-devel/build/libavcodec/wmalosslessdec.gcno
-resource-dir /opt/local/libexec/llvm-devel/lib/clang/6.0.0 -dependency-file
libavcodec/wmalosslessdec.d -MT libavcodec/wmalosslessdec.o -I . -I src/ -D
_ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -I
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-nooptimize-devel/src/compat/dispatch_semaphore
-D ZLIB_CONST -D HAVE_AV_CONFIG_H -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
-Wno-unused-const-variable -Werror=implicit-function-declaration
-Werror=missing-prototypes -Werror=return-type -std=c11 -fconst-strings
-fdebug-compilation-dir
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-nooptimize-devel/build
-ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1
-mstack-alignment=16 -fblocks -fobjc-runtime=macosx-fragile-10.12.0
-fobjc-subscripting-legacy-runtime -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-load /opt/local/libexec/llvm-devel/lib/LLVMPolly.dylib -mllvm -polly -mllvm
-polly-optimizer=none -o libavcodec/wmalosslessdec.o -x c
src/libavcodec/wmalosslessdec.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Function Pass Manager' on module
'src/libavcodec/wmalosslessdec.c'.
4.      Running pass 'Region Pass Manager' on function '@decode_frame'
5.      Running pass 'Polly - Generate an AST from the SCoP (isl)' on basic
block '%for.body13.us.i.i.i'


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   LLVMPolly.dylib                     0x000000010e83e0fb isl_set_preimage +
82
1   LLVMPolly.dylib                     0x000000010e7f3554 isl_set_wrap_facet +
267
2   LLVMPolly.dylib                     0x000000010e7ee5bb add_wrap + 128
3   LLVMPolly.dylib                     0x000000010e7ee09f add_wraps + 212
4   LLVMPolly.dylib                     0x000000010e7ec469 check_eq_adj_eq +
526
5   LLVMPolly.dylib                     0x000000010e7ebf8d
coalesce_local_pair_reuse + 1647
6   LLVMPolly.dylib                     0x000000010e7eb554 coalesce_range +
1314
7   LLVMPolly.dylib                     0x000000010e7eaeac isl_map_coalesce +
593
8   LLVMPolly.dylib                     0x000000010e896b85 un_entry + 72
9   LLVMPolly.dylib                     0x000000010e807a7f
isl_hash_table_foreach + 86
10  LLVMPolly.dylib                     0x000000010e89449d un_op + 190
11  LLVMPolly.dylib                     0x000000010e89484e
isl_union_map_coalesce + 49
12  LLVMPolly.dylib                     0x000000010e6ea733
polly::Dependences::calculateDependences(polly::Scop&) + 2875
13  LLVMPolly.dylib                     0x000000010e6ebc17
polly::DependenceInfo::recomputeDependences(polly::Dependences::AnalysisLevel)
+ 161
14  LLVMPolly.dylib                     0x000000010e747984
polly::IslAstInfoWrapperPass::runOnScop(polly::Scop&) + 72
15  LLVMPolly.dylib                     0x000000010e734e8d
polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 59
16  libLLVM.dylib                       0x0000000112e0fa3e
llvm::RGPassManager::runOnFunction(llvm::Function&) + 752</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>