Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jul 2007 00:28:10 GMT
From:      Jo Rhett <jrhett@svcolo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/114570: binary upgrade fails to replace libc.so.6, libcrypt.so.3 and ld-elf.so.1
Message-ID:  <200707140028.l6E0SAG6052005@www.freebsd.org>
Resent-Message-ID: <200707140030.l6E0U5Dw025437@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707140028.l6E0SAG6052005>