From wb@arb-phys.uni-dortmund.de  Tue Jan 11 12:07:55 2005
Return-Path: <wb@arb-phys.uni-dortmund.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0ED0616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 12:07:55 +0000 (GMT)
Received: from mail6.ifado.de (mail6.ifado.de [195.253.22.26])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AE59443D2D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 12:07:51 +0000 (GMT)
	(envelope-from wb@arb-phys.uni-dortmund.de)
Received: from yorikke.arb-phys.uni-dortmund.de [195.253.22.63] by mail6.ifado.de with ESMTP
  (SMTPD32-8.00) id A1BC19FE00CE; Tue, 11 Jan 2005 13:08:28 +0100
Received: from yorikke.arb-phys.uni-dortmund.de (localhost [127.0.0.1])
	by yorikke.arb-phys.uni-dortmund.de (8.13.1/8.12.10) with ESMTP id j0BC7YE6067503
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 13:07:34 +0100 (CET)
	(envelope-from wb@yorikke.arb-phys.uni-dortmund.de)
Received: (from wb@localhost)
	by yorikke.arb-phys.uni-dortmund.de (8.13.1/8.12.10/Submit) id j0BC7Xtf067502;
	Tue, 11 Jan 2005 13:07:33 +0100 (CET)
	(envelope-from wb)
Message-Id: <200501111207.j0BC7Xtf067502@yorikke.arb-phys.uni-dortmund.de>
Date: Tue, 11 Jan 2005 13:07:33 +0100 (CET)
From: "Wilhelm B. Kloke" <wb@arb-phys.uni-dortmund.de>
Reply-To: "Wilhelm B. Kloke" <wb@arb-phys.uni-dortmund.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ldconfig considered harmful
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76096
>Category:       bin
>Synopsis:       ldconfig considered harmful
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 11 12:10:25 GMT 2005
>Closed-Date:    Tue Jan 11 16:40:26 GMT 2005
>Last-Modified:  Tue Jan 11 16:40:26 GMT 2005
>Originator:     Wilhelm B. Kloke
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
Inst. Arb-Phys.Uni Dortmund
>Environment:
System: FreeBSD yorikke 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Wed Dec 22 10:30:00 CET 2004 wb@yorikke:/usr/src-5.3/sys/i386/compile/YORIKKE i386
>Description:
	Wrong use of ldconfig makes system unusable.
	Afterwards you cannot exec any program. Even boot into single user
	mode failed. (I don't understand this, but removing
	/var/run/ldconfig.hints seemed to help.)
>How-To-Repeat:
	I did "ldconfig /usr/lib32" on AMD64
>Fix:

	Several fixes are possible. My favourite is making critical binaries
	static again.


>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: bin/76096
Date: Tue, 11 Jan 2005 16:13:17 +0300 (MSK)

 Yes, there is /rescue/.  Does it suit your needs?
 
 -- 
 Maxim Konovalov

From: Brooks Davis <brooks@one-eyed-alien.net>
To: "Wilhelm B. Kloke" <wb@arb-phys.uni-dortmund.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/76096: ldconfig considered harmful
Date: Tue, 11 Jan 2005 08:21:04 -0800

 You can attempt to recover by using programs in /rescue including a copy
 of ldconfig.  IMO, this is a clear case of "this is unix and you were
 root".  The only useful action I can see is possiably putting a
 scary warning in ldconfig(8).
 
 -- Brooks
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Tue Jan 11 16:38:00 GMT 2005 
State-Changed-Why:  
"Don't do that then". 
ldconfig will break stuff on any operating system, as will crle on 
Solaris.  rm can do bad things to your system as well. 

/rescue exists and has enough in it for you to be able to remove 
/var/run/ldconfig.hints - if you don't know why that works then 
you probably shouldn't be playing with ldconfig. 

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