# rocminfo ROCk module is loaded Segmentation fault Issue does not show up in an environment without LTO. The root cause lies in dev-libs/rocr-runtime where a singleton that handles various init values referenced by rocminfo is created. With LTO, GCC (11.3.1) detects deadcode and removes it thus having a NULL pointer giving a segfault. See attached reference to the upstream report.
Issue still valid with dev-util/rocminfo-5.5.1 + dev-libs/rocr-runtime-5.5.1
It makes sense that the issue would still be valid, since you closed your upstream bug report with the message: "Closed, not a bug in itself."
Ineed, rebuilding without LTO making it work doesn't mean much.
Due to bug 856091 I marked rocr-runtime as not LTO-safe, so you cannot compile it with LTO anymore. Tracked upstream as https://github.com/ROCm/ROCR-Runtime/issues/182 I'm assuming this solves your issue, then.