<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/85809>85809</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            unwinder for aarch64: cannot register a new FDE with address tag (0xb4)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ZaitsevEB
      </td>
    </tr>
</table>

<pre>
    Environment:
* Android (10552028, based on r487747d) clang version 17.0.2 (taken from Android NDK 26)
* Windows 11

Steps to reproduce.
1. Allocate a buffer via malloc/memalign - address will have a MSB 0xb4 - address tag
2. Fill the buffer with a single CIE+FDE pair for some dynamic code
3. Register FDE via __register_frame call, passing address with 0xb4 tag
4. Initiate stack unwinding in dyncmic code, ex. throw an exception
5. Unwinder does not see a new FDE, so unwinding fails

Notice1: if address tag is cleared from FDE address, everything works OK.

Notice2: calling _Unwind_Find_FDE for dynamic code successfylly finds our FDE, even with 0xb4 address tag.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkVE2PozgQ_TXmUmpkDAQ4cEh3gjQa7ay0rdVKe4mMXYC3jR3ZJun8-5VJ0o00FyPVx6tX79lw79VoEFtSvpLykPAlTNa1_3IVPF6Or0lv5a09moty1sxoAsn3hB4I3RO2h72RzioJhNUZLUtGWU3YG_TcowRrwBV1VRWVJKwBobkZ4YLOK2sgq1KastgY-AcaGJydv-B-HX4C2xHWfE_6Rxlprx6y7BFbz_eAZw_BgsOzs3IRmN4TWQp7ra3gAYFDvwwDOrgoDjOPYcK6GWeu1WjgBbiUDr2Hq9IaJn6JLX-8vwL97ItNOvDxDs5S6GJpmPAJfVVhAg5emVEjvP04EvbaHY5w5srBYB14OyPIm-GzEiCsxDtUnsJfOCof0EGsjxRPJ_cInQbHZwTBtY6ynqNZZtzwDdOd5Be1IoUfRgUV9_aBiw9YzFUZGduUiQTEFwH2BviZQpicvQI3gJ8Cz0FZc4cqU_h77UUH0qIHYwN4jOIYvEa2EcHbzYSBK-23_vyyQQnMSL4HNWyFBOVBaOQO5d36uPwjvxK7oLuFKYJerfvw8OfP9HdgFoGjOrHudGd76tbjcFxl3yoOfhECvR9uWt9gUEZ6sIt7boIXNBtJN2TTRLa5bPKGJ9hmVUbrXV7TPJnamvay2Q072pey7HnWl0Mp64H2FYqsHFiiWkZZQfOsycpyV-Rphbt-oE3Fs6LIWTWQguLMlU61vsypdWOivF-wrcuaNonmPWq_vk3GouprkjAWn6prY89Lv4yeFFQrH_w3SlBBY7s8DYxacO7EtCvumpno5vOefVv6uMgbowirox6ENcnidDuFcPbxH8A6wrpRhWnpU2Fnwro4-_F5OTv7H4pAWLcy9oR160b_BwAA___dlm9f">