<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58561>58561</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc++]: Crash in std::type_info::hash_code() on Apple ARM64 because of junk address dereference
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
victorstewart
</td>
</tr>
</table>
<pre>
please see linked issue, but below code produces a SEGFAULT because the __non_unique_impl:: __hash tries to dereference a junk address.
```
template<typename TBase>
static size_t get(TBase& obj) {
return typeid(obj).hash_code();
}
```
https://github.com/fraillt/bitsery/issues/101#issue-1419823861
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9Uk1v2zAM_TXyhWhgy7HjHHzIR7PLdtm6syFbTKxUkTKJbpD9-tF2u3bDMICW9cQPvEey9fpeXy2qiBARwRr3jBpMjAMKuYN2IGjR-ht0XiNcg9dDhxEUfHv8dNh8__zE7k4NnE49AjSN864ZnPkxYGMuVyvyDRu_9yr2QMFwMnnQGPDIn-uQa50H9wxK64AxLkS6F-nm9SzTV5sgIVdUhCLf0f2KTl0QnrbMXeSPc0QkRaaDaH5iQ3BCErKaI2QJvj0LuQax2s7BABCQhuBgrGY0x84hi5FsMyrmJ8Yif80Qq_0_ic1nT3SNo2B5YDsZ6od20fkLg2NQxlpmc2gNRQx3vk1NjnzJ0kzIfIIP2TJbVzKvyizBOivLslimeV4mus71Ol-rhAxZrEWxtabthNyOVuzHHu_C2GLjIJKe2z7Kaow7-hn-pQq8g82Vhw-br1_K5e9B-uMfA_k4q2QItv6PTGtf3n4PvCtn7Oij0KIqWFdfF0eZFm0uj22GWSnVOsWqVOmqWnVF1WmdWMVLF0eVQkqHt7eFlCw1MbVMpcxSmWdFIbNika1Wqkr1EpdrxhLFMsUL93sx8lj4cEpCPVFqh1NkpzWR4rtTxWhODqemjvXVQL0P9YvpyIdIeFOBkolAPQn4Bcav_8A">