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

    <tr>
        <th>Summary</th>
        <td>
            Bolt creating corrupted instrumented binary for a C++ binary that uses Boost library (arm64)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            BOLT
      </td>
    </tr>

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

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

<pre>
    I am trying to instrument a binary created by C++ that uses boost library arm64 architecture bolt tool crashes in _ZNK5boost16exception_detail10clone_implINS0_10bad_alloc_EE7rethrowEv, if I skip this bolts get to create binary but the resulting binary crashes with corrupted stack very early in the start:

Program received signal SIGBUS, Bus error.
0xddde490194029342 in ?? ()
(gdb) where
#0  0xddde490194029342 in ?? ()
#1  0x0000aaaaaf8cc730 in __libc_csu_init ()
#2 0x0000fffff4c71d4c in __libc_start_main () from /lib64/libc.so.6
#3 0x0000aaaaacb198c4 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMU8GOpDYQ_RpzKW3L2EDDgcOwmY5GiTaRJrnkgoxdDd4xGNlFz3a-PjLdu71zC0KyVKr3ql5VPRWjHRfElpUdK3_J1EaTD-1XPfoZ_71kgzfX9gXUDBSudhmBPNglUthmXAgUDHZR4Qo6oCI0MFzhMxMdEx3QpAi2iBEG7yOBs0NIqSrMVQEq6MkSatoCwuAdAXnvQAcVJ4xgF-j_-fJbuUPzCr9pXMn6pTdIyrqca-cX7O28upcvr7zP-aBMr5zzun9-PgakKfj35wsTn8Ge4QXim12BJhv3YhFGTBXvfX9XMWwENCEEjJujJPeHvFtb75Ym0D6EbU1qIyn9BhcMV0AV3DW1nfCRVCAmnxhP_5_Bj0HNEFCjvSSYHRfl4PXl1-7v19Rht0XAEHw4MP7EvxljsGh43hRcNLIQiZbJE5MnYKJmokm8oh7NwEQD7xMG3COSA_xftMxTLuecq_Sda62Pku9z750ddK_j1tvF0geQuGPO6Sv0MTeF_gmz6-5nlSruKDgHPwMTJ2eHqri9-hD9obrxyZ970EPe1LrY-XamR-lO6TcKSqfR-nVFw-QTrAEv1m8RzkHNCNbgQlYrl_a6b_oWZ6K-b-y2rzSLmx7-lJlWmkY2KsM2PxYyPzZ1XmdTq5VRsh6qutACj7JUqjqjOlaaG5HrJs9sK7gouRR1XsmqrA_cDLw5l5wfdV4aUbCC46ysOzh3mQ8-jJmNccM2l7KoysypAV3cbSdE98fvfzEhkgFDm_I_DdsYWcGdjRQfDGTJYdslt-yHmy70cY0PXyYj3g737AOoH5a8Bx_O7D44k4l6NycTTbYF105Ea0xnLE5MnEZL0zYctJ_THt3l-_NpDf4ramLitCuMTJzuIi-t-C8AAP__XnpqaQ">