<html>
    <head>
      <base href="http://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 --- - -fsanitize=address doesn't obey aligned(256)"
   href="http://llvm.org/bugs/show_bug.cgi?id=16277">16277</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-fsanitize=address doesn't obey aligned(256)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jyasskin@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ clang++ --version
clang version 3.4 (trunk 182481)
$ cat test.cc
#include "assert.h"
#include <stdint.h>

__attribute__((noinline)) void foo() {
  char c = 0;
  __attribute__((aligned(256))) unsigned char data[256];
  assert(0 == (reinterpret_cast<uintptr_t>(data) & (256 - 1)));
}
__attribute__((noinline)) void bar() {
  char c = 0;
  foo();
}

int main() { bar(); }
$ clang++ test.cc -o test  && ./test
$ clang++ test.cc -o test -fsanitize=address && ./test
test: test.cc:7: void foo(): Assertion `0 == (reinterpret_cast<uintptr_t>(data)
& (256 - 1))' failed.
Aborted (core dumped)
$</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>