-
Notifications
You must be signed in to change notification settings - Fork 75
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
check return value of dladdr #70
base: master
Are you sure you want to change the base?
check return value of dladdr #70
Conversation
Any way this could get applied? |
@rdp Which distro are you using? You might have more luck approaching the package maintainers of your distro and ask them if they can apply that patch. |
Ahh its unmaintained #84 durn... |
@josch Ubuntu so maybe you could help? :) |
I'm the package maintainer in Debian. So I can apply this fix and then Ubuntu will (hopefully) copy it over from Debian unstable for the jammy release. I am not a Ubuntu developer, so I cannot directly make changes there. |
@rdp I now added the changes from this pull request to the version that Debian ships. It should end up in Ubuntu at some point as well. @lugia-kun I also added a test case using your code above. Please consider adding the test case to this pull request as well: https://sources.debian.org/src/fakechroot/2.20.1+ds-1/debian/patches/0008-check-return-value-of-dladdr.patch/ |
Fixes crystal-lang/crystal#9209 Thanks for adding a test case. |
Hi @lugia-kun, could you mark |
dladdr
leave unchanged forinfo
(on Linux), when it returns error (0).This can be checked easily with following C code, which causes a segmentation fault before this change.