From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 14 00:30:06 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F0B116A406 for ; Sat, 14 Jul 2007 00:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 13CB213C471 for ; Sat, 14 Jul 2007 00:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6E0U5Wn025438 for ; Sat, 14 Jul 2007 00:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6E0U5Dw025437; Sat, 14 Jul 2007 00:30:05 GMT (envelope-from gnats) Resent-Date: Sat, 14 Jul 2007 00:30:05 GMT Resent-Message-Id: <200707140030.l6E0U5Dw025437@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jo Rhett Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4996816A405 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/114570: binary upgrade fails to replace libc.so.6, libcrypt.so.3 and ld-elf.so.1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2007 00:30:06 -0000 >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: