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

    <tr>
        <th>Summary</th>
        <td>
            address sanitizer does not catch simple memory leak on aarch64/RHEL8
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang,
            backend:AArch64,
            compiler-rt:lsan
      </td>
    </tr>

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

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

<pre>
    [This simple test case](https://github.com/opencollab/llvm-toolchain-integration-test-suite/blob/main/tests/test_leaksan.c) from the llvm-toolchain-integration-test-suite does not detect the memory leak when run on RHEL 8.

clang is 14.0.6, glibc is 2.28-209.

The bug only reproduces on RHEL 8 and only on aarch64. RHEL 9 and Fedora are unaffected on all arches.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsGOmzAQ_Rq4WCAw4MCBQ7rZVQ89VXuvBnsC7ho7sk2r9Os7JpumvVQrIUb2Gz-9eW8mp65j1n16XXRgQa8XgyxiiExCwKw7ZbxfYryErDlm_IW-Wcdlm0rpVjq4C1rpjIGJDsb8WIvonJELaFtoG3H2ELWzRWIswqYjUt9kXGpfqYlKgsJ7_WYQ3gLYUmZ8YGfvVhYXZB8iZsphYNZFpjCijPvLFVfnryzRsp8LWuY3y5xlXz8_f2F9mVWnrDre_tKAnRmZULdlVYqMP7HZ6EmmK17yvuDV8M-DV-KftpnozJV5vHinNkkS_tAzsOqG0hWAl4toyxs27NgLKueBgUe2WTifSTWqvdkYlvoxlDmOtRB12xy6oc3V2KihGSCPOhocQSmPgXIDq6P-hf5hgoQol3ugf9vw0EKmJzF9vnkz_ifkZP89XpryO8mkow5hwxRcd2hElS9jD6JvJhikrLmQ0NSiGjopxCAqPtQcc9oSNCEtW8b5bjfV5DOVCeQbWkUCjsd3cXeIRFy0QV_4SLChWRPWnXI98orzqudd3XLRtGU7KdkfunPXVh3vscnaCmnLTJmkl87PuR_3KSi2QKDRtHoPEELQs0XcFRI_bHFxfowToELv833icR_3N1P_Ct0">