<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54742>54742</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[ASAN] Paths in stacktrace are wrong
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jimis
</td>
</tr>
</table>
<pre>
Here is one line from one stacktrace printed from an executable, compiled with `-fsanitize=address`.
```
#2 0xa7164f in std::_Sp_counted_ptr<QQmlJS::Dom::ModuleIndex*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() \
/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:377:9
```
The path can be canonicalized to: `/include/c++/9/bits/shared_ptr_base.h`
Which does not exist, it is missing the `/usr` prefix.
Clang version 13.0.1.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUk1v3CAQ_TX4gtbC-GO9Bx82u43aqqkapVKPFgZsk7BgAU6c_voO9qZRq55qoQd4gHnz3nRWvDYfpZNYeWyNxFoB9M5e1p0PjD8Fx7jEk1MmSLHFmMFykXwOrNMS0RPm9jIpDeEXFUaMKrLrPTMqqJ8S5WcmhJPew-8UkTMixytW5DrWLYYP0ZxisrB9VhU9VgYYCJQfYbQPU8vtHDm0U3AoP93fX_Tnhy16tpdtcWfFrOUnI-SC6DFSQ7Ru28HMLV-W61NfLH9qJ6sVf0X0QFH-4Rq4a4Xyk_VQUw0RjMrTO7eN322nDGCaAmjVAQ6cAy511VbFDvSblx2kg1-Ht3N_gTJczwJy3MLFm3WsZzsVPEx-ZG4rsu2Yl-kIzPL9HvDwT902_D6CRwzE52BOJ-NkjeJMgwUCBwvXoy__k_4t0Y9R8RELKz02NkAHKB-iwirE7rko75UZcAAiW6LZO1hA58heLX84f9IMTj5L55U1OMtTkmZpIppcHPIDS4IKWjaovDk-HL-i8oy_QWF-a4ffDQks8YuzZkhmp5sxhMlHF-lttAS6cO5S6Mrokn5-m3aTs4-Sh6iC97OM9ZbFvqDJ2NCcdeW-yCtyqOuK90VZSlowWXJS9CIniWad1D7SQpQa-YLXJ2ANDBPVUEIpKUiRlVme0ZTWGd9XB9b3dU3qXqKCyAtTOo08UuuGxDUrpW4ePAQ1iOnfgwzEHIxcVYjvszmM1jWPCmRO1sTNSvwX9PcjPw">