<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 --- - Undefined behavior in readEncodedPointer()"
   href="http://llvm.org/bugs/show_bug.cgi?id=21580">21580</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Undefined behavior in readEncodedPointer()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>eric@efcs.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following error occurs almost everywhere libc++abi is used with UBSAN. 


libcxxabi/src/cxa_personality.cpp:252:18: runtime error: load of misaligned
address 0x000000428c39 for type 'uint32_t' (aka 'unsigned int'), which requires
4 byte alignment
0x000000428c39: note: pointer points here
 03 35 03  27 00 00 00 00 22 00 00  00 00 00 00 00 00 22 00  00 00 13 00 00 00
3a 00  00 00 03 35 00

To recreate this error configure libc++abi with -DLLVM_USE_SANITIZER=Undefined
and run the libc++abi test suite. There will be multiple failures caused by
this.

I also tried running libc++'s testsuite with libcxxrt and UBSAN. I found that
the exact same error occurred in libcxxrt's implementation of reading an
encoded pointer.</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>