-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index out of bounds when parsing profdata #23
Comments
Yeah ideally it should work, it's probably a bug in some assumption I have - I just use the test files from llvm code that are easy to apply and some tests generated from rust code and the format isn't really rigorously defined so it's been a mix of reading the llvm source and reverse engineering solutions to issues from odd output I find in the wild and making sure output is the same. I'll have a look after work and maybe look at adding some debug logging to aid in debugging 🙏 |
There's now a branch called debug-traces with a Or if you have it handy zip up the executable and profraw + profdata files from your minimal version and attach them to the issue and I'll try them out directly |
Thank you. Here is the debug output and the corresponding files. foo-example.zip
|
So a PR has just been merged which should fix this issue - something in branch regions which rust doesn't currently emit. I'm going to cut a new release later today or tomorrow so hopefully you can confirm this works for you then (if it's not been too long) |
Current master does not fix it for me. However, the debug output changed and it does not crash anymore. So probably one step in the right direction!
|
@Quessou looks like there's a bit more to this one if you want to continue with it 👀 |
I'll take a look at it tomorrow ! :) |
Sorry for the time to answer ! 😅 Just for traceability : Bug was first observed on Clang/LLVM 14
So maybe it's another issue actually, in this case, maybe creating another ticket would be relevant ? Anyway I'll get LLVM 15, try to reproduce and if I manage to do so, investigate a bit. |
I get the same error with clang14 under Arch.
|
I couldn't reproduce it on LLVM/Clang14. 😬 However I have your exact same issue on LLVM15, with the following crash stack :
I'm kinda busy today but I will investigate this in the upcoming days ! :) |
I tried to use
cov show
as a replacement forllvm-cov show
on the example C++ program from https://clang.llvm.org/docs/SourceBasedCodeCoverage.html but encountered the following panic:I know your project is mostly targeted for parsing profiling data from rust programs but since the coverage mapping format is the same it should work universally for other profdata too. Right?
Here are my steps to reproduce:
OS: Arch Linux
Clang/LLVM version: 14.0.6
Any help to debug this further is highly appreciated!
The text was updated successfully, but these errors were encountered: