From nobody@FreeBSD.org  Sat Jul 14 00:28:11 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4996816A405
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2007 00:28:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 3884313C4A5
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2007 00:28:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l6E0SBBE052006
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Jul 2007 00:28:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l6E0SAG6052005;
	Sat, 14 Jul 2007 00:28:10 GMT
	(envelope-from nobody)
Message-Id: <200707140028.l6E0SAG6052005@www.freebsd.org>
Date: Sat, 14 Jul 2007 00:28:10 GMT
From: Jo Rhett <jrhett@svcolo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: binary upgrade fails to replace libc.so.6, libcrypt.so.3 and ld-elf.so.1
X-Send-Pr-Version: www-3.0

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 14 00:30:05 GMT 2007
>Closed-Date:    Thu Jul 19 11:20:03 GMT 2007
>Last-Modified:  Thu Jul 19 11:20:03 GMT 2007
>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:
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Thu Jul 19 11:16:29 UTC 2007 
State-Changed-Why:  
Fixed in src/usr.sbin/sysinstall/installUpgrade.c 1.91 and was 
MFC'd as 1.84.12.5, so the fix will be in 6.3-RELEASE and up. 
Thanks for your bug report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114570 
>Unformatted:
