Skip to content
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

Detect optimized library builds (& output error or substitute correct library?) #12

Open
serhei opened this issue Sep 15, 2020 · 0 comments

Comments

@serhei
Copy link
Owner

serhei commented Sep 15, 2020

Florian Weimer points out that if ldd on the local machine selects an optimized library build,
this optimized library may not work on the hardware where the container is running.

According to man ld.so(8) the optimized builds are placed in clearly delineated
hardware capability directories,
so this situation could be detected. Then we could output a warning
or perhaps even substitute a non-optimized version of the library.

I haven't seen this issue in the simple scenario of copying gdbserver, strace, etc.
from a Fedora development machine to a RHEL UBI container. But on more unusual
combinations of local machine / container it may occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant