-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix CI target for Fedora #152
Conversation
@hroncok do you know if there is any other way to obtain debugging symbols for the main executable of CPython in Fedora other than using |
6d6a9b4
to
f8bbf91
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
==========================================
- Coverage 89.91% 89.71% -0.21%
==========================================
Files 48 48
Lines 5496 5505 +9
Branches 873 873
==========================================
- Hits 4942 4939 -3
- Misses 554 566 +12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Something like |
ab78ee5
to
5321c1c
Compare
aa31bcb
to
f543c03
Compare
Seems that the latest fedora image ships Python 3.12 with not enough debugging symbols to provide native information for core files. Apparently the python3-debug package only provides the debug version of the runtime and doesn't also provide split-debug information for the main executable. To obtain the symbols we need we need to manually install them by running `dnf debuginfo-install python3`. Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
72ac019
to
095a502
Compare
To get the pthread id we copy a buffer of 200 pointers from the start of the pthread structure and try to match the pid inside. It is possible that the process doesn't have that much space available in a valid memory map so reading this much memory will fail. To fix this, try to reduce the size of the buffer by half every time we fail to copy from the process until we succeed or we reach 0. Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
f155794
to
b17f807
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Seems that the latest fedora image ships Python 3.12 with not enough
debugging symbols to provide native information for core files.
Apparently the python3-debug package only provides the debug version of
the runtime and doesn't also provide split-debug information for the
main executable.
Luckily, Fedora runs a debuginfod server that we can leverage to obtain
the debugging symbols that we need.