-
Notifications
You must be signed in to change notification settings - Fork 20
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
report: use library search order from ld.so #354
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #354 +/- ##
==========================================
+ Coverage 83.00% 83.01% +0.01%
==========================================
Files 99 99
Lines 20333 20352 +19
Branches 3212 3218 +6
==========================================
+ Hits 16877 16896 +19
+ Misses 2936 2935 -1
- Partials 520 521 +1 ☔ View full report in Codecov by Sentry. |
apport/report.py
Outdated
f":{gdb_sandbox}/lib/{native_multiarch}" | ||
f":{gdb_sandbox}/usr/lib/{native_multiarch}" | ||
f"{gdb_sandbox}/lib" |
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.
issue: Rather than a hardcoded list, shouldn't we actually query the local ld.so to get the search order?
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.
You asked for it. Now you get a bigger merge request!
7e9693b
to
9887383
Compare
Problem with the implementation: jammy does not ship |
I didn't even remember that |
2298507
to
4b142e3
Compare
The library search order from `ld.so` differs from the hard-coded list: ``` $ ld.so --help [...] Shared library search path: (libraries located via /etc/ld.so.cache) /lib/x86_64-linux-gnu (system search path) /usr/lib/x86_64-linux-gnu (system search path) /lib (system search path) /usr/lib (system search path) ``` So determine the library search paths dynamically from `ld.so`. Signed-off-by: Benjamin Drung <[email protected]>
4b142e3
to
813fb4a
Compare
Use the same library search order from
ld.so
: