<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58477>58477</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang 15.x RISCV64 backend segfaults in usdt tests from bpftrace
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kraj
</td>
</tr>
</table>
<pre>
Attached testcase crashed clang itself, it only happens on riscv64
```
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/git/tests/testprogs/usdt_semaphore_test.c:8:
In file included from /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/recipe-sysroot/usr/include/sys/time.h:21:
/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/bpftrace/0.16.0+gita277ec42102c463d656df8f64eb2f7e87e322210-r0/recipe-sysroot/usr/include/features.h:412:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
fatal error: error in backend: Could not match memory address. Inline asm failure!
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVEtv4yAQ_jX2ZRTLxo_YBx_atJFyqtTuQ3uKMIxtWvxYwE2zv34HJ9m97G1PlQwMYOb7PmaGZpLn-s45LnqU4NA6wS2CMNz6BaH52IFyFnUbsB1ZMI36DD2fZxwtTcAoK96LLIgfgvju2hfx9VunhxFapRHUKPQiyWtrpgECth9GR31D7Tyhn3Pr0PilRWlJoxtm6k-TeaPhCrShfzdajcuH_3FuneHCH46jpIjigN13ynG23aLIWBIzkRWpLPJCtmVbZNiwdovlFlPGaHdj6MCeDngs0m6v42ymztuLle5oceBzPxk8-q1IBOldSe1zaDMo1Iwbe7ZmmtwqyZO40iWLdjwZNWDUkyqW_JH2iUS0yN1i0K4SsoT5nhqcuBnV2HnzuH96_nLY_zi-PH193j2CwZ-LoiMgpmFWRLeDk3I9TDPdhfrFnaLcDli5eQpYBUF-v_kesPTq0Ab5w-2SUrjB_B_GxR8AYT1e7JY7rgGNmYxXsBqUaNBw8Yaj9Gu7adESxsnBwJ3oYcBhMmfgUhKsjQAOI8EicDtAy5WmSwooxP-q0hDrpCgKFrM8SUJZp7JKKx465TTWu_UdSPLoA54PL7tvRXZjARa7li_aWU_NF8z6ithLIdzCHy5G171zs_XpxfaXquuXJqKroYnW77dhQ8X3isKHWVm7oE_PvMy227CvhZBCSiZYxQqZVpg1laiaOE2ybcVKnoaaN6htTeEKGBvxBKsLsilgoapJHCVVUiVlnORJlGcsbssqT4siiyUXQRZTrSsdeR7RZLrQ1CulZqGQZ7FWJOzvJrdWdSPiCkf--eLomajfDH8NV9x65f0bo7GzPw">