Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7204

Add checks to linkingscript to correct failures in patchelf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0.20-11
    • Fix Version/s: 8.0.20-11, 5.7.31-34
    • Component/s: Packaging
    • Labels:
      None

      Description

      Looks like the change introduced in the ENG-891 cause issues with binary tarballs for both standard and minimal tarballs

      root@focal:~/stand/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin# ldd mysqld
      ./mysqld: error while loading shared libraries: libcrypto.so.1.0.1e: failed to map segment from shared object
      

      Compared with #230 which was tested for release:

      root@focal:~/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin# ldd mysqld
              linux-vdso.so.1 (0x00007ffe5a4a4000)
              libfreebl3.so => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libfreebl3.so (0x00007fe160b5e000)
              libk5crypto.so.3.1 => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libk5crypto.so.3.1 (0x00007fe16092f000)
              libkrb5support.so.0.1 => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libkrb5support.so.0.1 (0x00007fe160723000)
              libkrb5.so.3.3 => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libkrb5.so.3.3 (0x00007fe16042c000)
              libgssapi_krb5.so.2.2 => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libgssapi_krb5.so.2.2 (0x00007fe1601dc000)
              libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe1601b0000)
              libprotobuf-lite.so.3.6.1 => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libprotobuf-lite.so.3.6.1 (0x00007fe15ff44000)
              libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fe15ff09000)
              librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe15fefe000)
              libssl.so.1.0.1e => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libssl.so.1.0.1e (0x00007fe15fc73000)
              libcrypto.so.1.0.1e => /root/test/Percona-Server-8.0.20-11-Linux.x86_64.glibc2.12/bin/./../lib/private/libcrypto.so.1.0.1e (0x00007fe15f871000)
              libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe15f869000)
              libaio.so.1 => /lib/x86_64-linux-gnu/libaio.so.1 (0x00007fe15f864000)
              libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe15f848000)
              libnuma.so.1 => /lib/x86_64-linux-gnu/libnuma.so.1 (0x00007fe15f83b000)
              libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe15f65a000)
              libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe15f50b000)
              libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe15f4ee000)
              libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe15f2fc000)
              /lib64/ld-linux-x86-64.so.2 (0x00007fe160d64000)
              libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007fe15f2f5000)
              libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fe15f2d9000)
              libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fe15f2ae000)
              libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007fe15f2a7000)
              libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007fe15f215000)
      

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              illia.pshonkin Illia Pshonkin
              Reporter:
              hrvoje.matijakovic Hrvoje Matijakovic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours
                  7h