[Bug 1193120] New: extracting debug-info breaks shared library file.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193120 Bug ID: 1193120 Summary: extracting debug-info breaks shared library file. Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: matwey.kornilov@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I am working on server:database flux package (written in Rust language) and I've found that the resulting shared object is broken on Leap 15.2 and Leap 15.3 (yet working on TW):
ldd libflux.so.0.139.0 not a dynamic executable
The executables using this library also cannot run. For instance influxdb2:
ldd /usr/bin/influxd /usr/bin/influxd: error while loading shared libraries: libflux.so.0.139.0: object file has no loadable segments
However, if I clone the package and disable debug info in the project configuration, then the resulting shared object is correct:
ldd libflux.so.0.139.0 linux-vdso.so.1 (0x00007ffd658e3000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f0e6ccdd000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0e6cabd000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f0e6c8b9000) libc.so.6 => /lib64/libc.so.6 (0x00007f0e6c4e4000) /lib64/ld-linux-x86-64.so.2 (0x00007f0e6d436000)
The following related info is available at the build log: [ 505s] extracting debug info from /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/libflux.so.0.139.0 [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.note.gnu.build-id' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.hash' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.gnu.hash' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.dynsym' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.gnu.version' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.gnu.version_r' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.rela.dyn' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.rela.plt' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.init' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.plt' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.plt.got' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.text' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.fini' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.rodata' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.eh_frame_hdr' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.eh_frame' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.gcc_except_table' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.init_array' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.fini_array' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.data.rel.ro' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.got' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.data' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.dynamic' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib/debug/usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug: warning: allocated section `.dynstr' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.note.gnu.build-id' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.hash' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.gnu.hash' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.dynsym' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.gnu.version' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.gnu.version_r' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.rela.dyn' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.rela.plt' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.init' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.plt' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.plt.got' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.text' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.fini' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.rodata' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.eh_frame_hdr' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.eh_frame' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.gcc_except_table' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.init_array' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.fini_array' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.data.rel.ro' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.got' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.data' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.dynamic' not in segment [ 505s] objcopy: /home/abuild/rpmbuild/BUILDROOT/flux-0.139.0-lp153.1.1.x86_64/usr/lib64/st4WITaS: warning: allocated section `.dynstr' not in segment [ 505s] dwz: Allocatable section in ./usr/lib64/libflux.so.0.139.0-0.139.0-lp153.1.1.x86_64.debug after non-allocatable ones [ 505s] /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 1 CRC32s did match. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193120 http://bugzilla.opensuse.org/show_bug.cgi?id=1193120#c1 --- Comment #1 from Matwey Kornilov <matwey.kornilov@gmail.com> --- I've found that the issue is triggered by patchelf --set-soname libflux.so.0.139.0 libflux.so command. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com