From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30406 invoked by alias); 9 Oct 2006 22:51:01 -0000 Received: (qmail 30380 invoked by uid 22791); 9 Oct 2006 22:51:00 -0000 X-Spam-Check-By: sourceware.org Received: from 195.22.55.53.adsl.nextra.cz (HELO host0.dyn.jankratochvil.net) (195.22.55.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Oct 2006 22:50:58 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.8/8.13.8) with ESMTP id k99MohTU004405; Tue, 10 Oct 2006 00:50:43 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.13.8/8.13.8/Submit) id k99MogXi004404; Tue, 10 Oct 2006 00:50:42 +0200 Date: Mon, 09 Oct 2006 22:51:00 -0000 From: Jan Kratochvil To: Daniel Jacobowitz Cc: Kevin Buettner , gdb-patches@sources.redhat.com Subject: Re: [patch] Fixed occasional failure to load a custom shared library Message-ID: <20061009225042.GA2481@host0.dyn.jankratochvil.net> References: <20060622114016.GA21094@host0.dyn.jankratochvil.net> <20060626180051.0adcce23@ironwood.lan> <20060721183829.GB9150@lace.redhat.com> <20061009201747.GD22848@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061009201747.GD22848@nevyn.them.org> User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00086.txt.bz2 Hi Daniel, On Mon, 09 Oct 2006 22:17:47 +0200, Daniel Jacobowitz wrote: > On Fri, Jul 21, 2006 at 08:38:29PM +0200, Jan Kratochvil wrote: ... > > 2006-07-21 Jan Kratochvil > > > > * solib.c (solib_open): Fixed NULL vs. "" refusal to load inferior > > shared libraries. > > I have committed this for you, after fixing separately the inferior > segfault. > > I tried to reproduce the actual problem you were having, but I > couldn't. No matter what I put in LD_LIBRARY_PATH or rpath, glibc > filled in the full path to the shared library. Maybe I have a > newer runtime loader than you do, or something similar. Anyway, > that's unimportant. If you would use `-Wl,-rpath,$ORIGIN' or relative pathname for $LD_LIBRARY_PATH. The latter case was testcased in: http://sourceware.org/ml/gdb-patches/2006-09/msg00009.html Thanks, Jan