misc/114570: binary upgrade fails to replace libc.so.6, libcrypt.so.3 and ld-elf.so.1

Jo Rhett jrhett at svcolo.com
Sat Jul 14 00:30:06 UTC 2007


>Number:         114570
>Category:       misc
>Synopsis:       binary upgrade fails to replace libc.so.6, libcrypt.so.3 and ld-elf.so.1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 00:30:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jo Rhett
>Release:        6.2
>Organization:
Silicon Valley Colocation
>Environment:
FreeBSD arran 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I had done a dozen or more binary upgrades from 6.0 to 6.2, and I just had one fail in an interesting manner.  After reboot sshd would not run, complaining about ld-elf.so.1, exactly as described here: (not by me)

http://lists.freebsd.org/pipermail/freebsd-questions/2007-July/152760.html

Digging into the issue I found that 3 files had been flagged "schg"

/lib/libc.so.6
/lib/libcrypt.so.3
/libexec/ld-elf.so.1

None of these three files were upgraded, and as such didn't link correctly.

I believe that the installer should be smart unenough to unflag these files before upgrading them.
>How-To-Repeat:
chflags schg /lib/libc.so.6
chflags schg /libexec/ld-elf.so.1

Attempt a binary upgrade.

>Fix:
Check for these flags and remove them before trying to copy the new files in place.

AND* check return codes to confirm that the files were successfully copied!

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list