[coverage] Investigate invalid profile data
Open
Component:Software
Component:Tooling
Earlgrey-PROD Triaged
Priority:P4
- Dominant language
- SystemVerilog
- Stars
- 3.6k
- Forks
- 1.1k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 141
Description
While working on #18745, I found the root cause for the malformed profile data after migrating to LLVM 16.0.2: it was a call to `__llvm_profile_register_function()` with a bad pointer. Interestingly this pointer contains the address of the `__llvm_profile_runtime` variable that we define to be able to measure coverage on target. It's not clear if this is a compiler bug or if we need to react to another change that occurred some time between LLVM 13 and 16.
Contributor guide
Assessment
This issue has not been assessed yet.