-
Notifications
You must be signed in to change notification settings - Fork 158
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
Core dump notes parsing error #90
Comments
You're right that there's a problem there. I looked into the readelf behaviour a bit more. binutils readelf behaviour:
(This means readelf can use a 64 bit alignment with a 32 bit note header.)
So I think we should
Can you submit a PR for that? Note that for the Adding support for OpenVMS notes probably isn't worth the effort, since binutils has a few other fixes for OpenVMS elsewhere too. cc @m4b, who has looked into this before. |
@philipc recommendation seems good to me! Most important is to get it parsing. Just curious, @xcoldhandsx what is the precise error you get, and can you also paste the readelf/objdump of the core file ? Thanks ! |
I've just created the pull request with some fix for solving this problem including @philipc recommendations. I also attach the output of readelf (readelf -l ../core)
|
Fixed by #91 |
Its been a long time… Line 222 in 87821fd
This is using However the ELF manpage is pretty clear on this using a https://www.mankier.com/5/elf#Description-Notes_(Nhdr)
The example given there is also hardcoding a |
@Swatinem Can you open a new issue and provide steps to reproduce? |
Hello,
I ran into a problem, while parsing notes in core dump of my test program. The error occurs from bad alignment. My alignment is equal to 0.
But readelf works perfectly fine and parses core dump correctly. I looked into source code of readelf and found this:
As I see, match should be like this:
The text was updated successfully, but these errors were encountered: