[353] in arla-drinkers
Re: pwd gives segmentation fault
daemon@ATHENA.MIT.EDU (Xiaochun He)
Mon Oct 26 09:55:13 1998
From owner-arla-drinkers@stacken.kth.se Mon Oct 26 14:55:12 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 13267 invoked from network); 26 Oct 1998 14:55:12 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 26 Oct 1998 14:55:12 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id PAA25511
for arla-drinkers-list; Mon, 26 Oct 1998 15:45:31 +0100 (MET)
Received: from petitt.phy-astr.gsu.edu (petitt.Phy-Astr.Gsu.EDU [131.96.144.66])
by sundance.stacken.kth.se (8.8.8/8.8.8) with SMTP id PAA25506;
Mon, 26 Oct 1998 15:45:25 +0100 (MET)
Received: from localhost by petitt.phy-astr.gsu.edu via SMTP (940816.SGI.8.6.9/940406.SGI.AUTO)
id JAA10346; Mon, 26 Oct 1998 09:43:06 -0500
Date: Mon, 26 Oct 1998 09:43:02 -0500 (EST)
From: Xiaochun He <he@petitt.phy-astr.gsu.edu>
To: Magnus Ahltorp <map@stacken.kth.se>
cc: arla-drinkers@stacken.kth.se, xhe@gsu.edu
Subject: Re: pwd gives segmentation fault
In-Reply-To: <lv1hfwto1x2.fsf@sundance.stacken.kth.se>
Message-ID: <Pine.SGI.3.96.981026093427.10192A-100000@petitt.phy-astr.gsu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
On 25 Oct 1998, Magnus Ahltorp wrote:
> > Everything seemed working fine except that the "pwd" command gave me
> > the following error message - "pwd: cannot get current directory" when I
> > accessed a remote AFS cell. I did follow the recipe from the
> > arla-0.13/INSTALL file to fix the problem. However, the problem became
> > worse and the new error message was - "segmentation fault (core dumped)"
> > when put "/lib/getcwd.so" in /etc/ld.so.preload. What did I do wrong?
>
> The segmentation fault, was it when trying to run "pwd"? In that case,
> I have never seen it before, but I _have_ seen it on setuid programs
> (and netscape). The code that getcwd.so consists of is very
> straight-forward, and I doubt that there are any bugs in it.
>
The segmentation fault was given when I tried to run "pwd". This was
true even for running "pwd" on a local file system, e.g., /usr, /home.
I had to be very careful while editing /etc/ld.so.preload (i.e., kept
the editor open) in order to recover the original "pwd" function.
> There have been speculations that the problem lies in the dynamic
> linker, but this has not been confirmed.
>
> If it occurs when running all programs, it's very bad, since the
> getcwd.so is very vital for system functionality (as you have seen,
> cwd fetching does not work very well without it). If you could do some
> more testing, like when it segfaults and not, it would be very
> valuable.
>
I will do some more tests and let you know the results. Thanks.
Xiaochun He
Georgia State University