<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 - ubsan on Polly-ACC: downcast with insufficient space for an object"
   href="https://bugs.llvm.org/show_bug.cgi?id=33207">33207</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ubsan on Polly-ACC: downcast with insufficient space for an object
          </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>Windows NT
          </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>llvm@meinersbur.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With -fsanitize=undefined, one Polly-ACC test fails.

The patch <a href="https://github.com/creachadair/imath/pull/18">https://github.com/creachadair/imath/pull/18</a> might need to be applied
before, otherwise ubsan errors-out on those before hitting this.


FAIL: Polly :: GPGPU/host-statement.ll (75 of 929)
******************** TEST 'Polly :: GPGPU/host-statement.ll' FAILED
********************
Script:
--
opt  -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names
 -polly-codegen-ppcg -polly-acc-dump-code  -polly-invariant-load-hoisting=false
 -disable-output <
/mnt/c/Users/Meinersbur/src/llvm/tools/polly/test/GPGPU/host-statement.ll | 
FileCheck -check-prefix=CODE
/mnt/c/Users/Meinersbur/src/llvm/tools/polly/test/GPGPU/host-statement.ll
opt  -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names
 -polly-codegen-ppcg -polly-acc-dump-kernel-ir 
-polly-invariant-load-hoisting=false  -disable-output <
/mnt/c/Users/Meinersbur/src/llvm/tools/polly/test/GPGPU/host-statement.ll | 
FileCheck -check-prefix=KERNEL-IR
/mnt/c/Users/Meinersbur/src/llvm/tools/polly/test/GPGPU/host-statement.ll
--
Exit Code: 2

Command Output (stderr):
--
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/forward_list.tcc:330:18:
runtime error: downcast of address 0x7fffd4a70490 with insufficient space for
an object of type 'std::forward_list<(anonymous
namespace)::StoreToLoadForwardingCandidate, std::allocator<(anonymous
namespace)::StoreToLoadForwardingCandidate> >::_Node' (aka
'_Fwd_list_node<(anonymous namespace)::StoreToLoadForwardingCandidate>')
0x7fffd4a70490: note: pointer points here
 00 00 00 00  70 e4 12 07 00 00 00 00  b0 2e 05 07 00 00 00 00  b0 2e 05 07 00
00 00 00  d8 70 05 07
              ^
FileCheck error: '-' is empty.
FileCheck command line:  FileCheck -check-prefix=CODE
/mnt/c/Users/Meinersbur/src/llvm/tools/polly/test/GPGPU/host-statement.ll</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>