<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 --- - AVX512 Segfault: alignment incorrect for relative addressing"
   href="https://llvm.org/bugs/show_bug.cgi?id=30693">30693</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AVX512 Segfault: alignment incorrect for relative addressing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Roland.Schulz@Intel.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>Steps to reproduce:
git clone -b clang <a href="https://github.com/rolandschulz/gromacs.git">https://github.com/rolandschulz/gromacs.git</a>
cd gromacs
mkdir build
cd build
FLAGS=-g; CFLAGS=$FLAGS CXXFLAGS=$FLAGS CC=clang CXX=clang++ cmake .. -GNinja
-DGMX_SIMD=AVX_512_KNL -DGMX_BUILD_HELP=OFF -DBUILD_SHARED_LIBS=no
-DGMX_HWLOC=no -DGMX_OPENMP=no
ninja mdrun-test
./bin/mdrun-test
--gtest_filter=MdrunCanWrite/Trajectories.ThatDifferInNstxout/0

It segfaults on
0x00000000009f4622 <+370>:   vmovdqa 0x5b6fa(%rip),%xmm7        # 0xa4fd2

That relative address is not aligned to 16 and thus segfaults.

Sorry I have no idea how to produce a small test case for this.</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>