-
Notifications
You must be signed in to change notification settings - Fork 256
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
Use dl_iterate_phdr on Haiku #699
base: master
Are you sure you want to change the base?
Conversation
An implementation or dl_iterate_phdr was added to Haiku a little over a year after Haiku support got added to backtrace-rs.
Haiku's dynamic linker (/system/runtime_loader) doesn't support getting directly invoked rather than going through PT_INTERP.
Repos often delete package versions soon after a new version is available. If the package list still references an old version, apt will error when trying to install the package.
cc @nielx |
We don't have an official Haiku maintainer enrolled it seems, so if either @waddlesplash or @trungnt2910 (or whoever else, basically) think this is good then I'm happy to ship it. |
Should be fine; internally Also note that |
Hmm, I just looked at the code some more, and it appears that when |
Agreed with @waddlesplash here. |
Huh, why didn't the backtrace-rs tests fail on Haiku with this PR if that is the case? |
In the PR you are disabling one of the tests. How did it fail? |
This test reads the dynamic linker from the test executable and then invokes the dynamic linker as executable with the teste executable as argument. I got confirmation from @waddlesplash that this is fundamentally unsupported on Haiku.
Ah, could well be that there are simply no tests for resolving symbols in shared libraries. |
An implementation or dl_iterate_phdr was added to Haiku in haiku/haiku@908107a a little over a year after Haiku support got added to backtrace-rs.