Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872368 - dev-util/rocminfo-5.1.3 segfaults with LTO
Summary: dev-util/rocminfo-5.1.3 segfaults with LTO
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-09-22 12:29 UTC by Adrien Dessemond
Modified: 2022-11-05 07:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2022-09-22 12:29:48 UTC
# 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.