From owner-freebsd-bugs Mon Feb 18 17:30:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 919F837B405 for ; Mon, 18 Feb 2002 17:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1J1U1R85513; Mon, 18 Feb 2002 17:30:01 -0800 (PST) (envelope-from gnats) Received: from skaro.quic.net (cvg-65-27-234-192.cinci.rr.com [65.27.234.192]) by hub.freebsd.org (Postfix) with ESMTP id DD9E137B402 for ; Mon, 18 Feb 2002 17:29:48 -0800 (PST) Received: (from root@localhost) by skaro.quic.net (8.11.3/8.11.3) id g1J1UOl33873; Mon, 18 Feb 2002 20:30:24 -0500 (EST) (envelope-from utsl) Message-Id: <200202190130.g1J1UOl33873@skaro.quic.net> Date: Mon, 18 Feb 2002 20:30:24 -0500 (EST) From: Nathan Hawkins Reply-To: Nathan Hawkins To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/35099: ldd in -STABLE fails on libc. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35099 >Category: bin >Synopsis: ldd in -STABLE fails on libc. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 18 17:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Nathan Hawkins >Release: FreeBSD 4.5-RELEASE i386 >Organization: Quality Internet Communications >Environment: System: FreeBSD skaro.quic.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 1 12:35:40 EST 2002 root@skaro.quic.net:/skaro/obj/usr/src/sys/GENERIC i386 >Description: The new ldd support for shared libraries, which is now in -STABLE doesn't work on libc. >How-To-Repeat: # ldd /usr/lib/libc.so.4 /usr/lib/libc.so.4: ldd: /usr/lib/libc.so.4: (null) /usr/lib/libc.so.4: exit status 1 >Fix: Apply the following patch to src/libexec/rtld-elf/rtld.c --- ldd-fix.diff begins here --- --- rtld.c.bak Tue Feb 19 00:15:30 2002 +++ rtld.c Tue Feb 19 00:43:00 2002 @@ -1589,7 +1589,12 @@ /* Make list of init functions to call. */ initlist_add_objects(obj, &obj->next, &initlist); } - } + } else + if (ld_tracing) { + trace_loaded_objects(obj); + wlock_release(); + exit(0); + } } GDB_STATE(RT_CONSISTENT,obj ? &obj->linkmap : NULL); --- ldd-fix.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message