This segfault does seem to be caused by mixing clang-15 and clang-17 in
the HIP RTC codepath. When libamdhip64 from ROCm 5.6.1 (built with the
same clang-17 as rocm-compilersupport 6.0+git20231212.4510c28+dfsg-1) is
used, the segfault disappeared [1].