ldconfig crashes when being executed through RPM scriptlets or manually

Solution Verified - Updated -

Issue

  • When package updates happen, yum or rpm report segmentation faults for /sbin/ldconfig binary, as shown in the example below

    # rpm -e libwbclient-4.15.5-10.el8_6.x86_64  libwbclient-4.16.4-2.el8.x86_64  libwbclient-4.16.4-4.el8_7.x86_64 libwbclient-4.16.4-6.el8_7.x86_64 libwbclient-4.17.5-2.el8.x86_64 --nodeps
    /var/tmp/rpm-tmp.Zh41HR: line 7: 1261642 Segmentation fault      (core dumped) /sbin/ldconfig
    error: %preun(libwbclient-0:4.17.5-2.el8.x86_64) scriptlet failed, exit status 139
    error: libwbclient-0:4.17.5-2.el8.x86_64: erase failed
    

    Package names are operations may vary and are irrelevant to the root cause.

Environment

  • Red Hat Enterprise Linux 7 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content