From owner-freebsd-java Tue Mar 30 22:21: 3 1999 Delivered-To: freebsd-java@freebsd.org Received: from fledge.watson.org (FLEDGE.RES.CMU.EDU [128.2.93.229]) by hub.freebsd.org (Postfix) with ESMTP id 1BA1B152E0 for ; Tue, 30 Mar 1999 22:21:00 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.8.8/8.8.8) with SMTP id BAA28433; Wed, 31 Mar 1999 01:20:40 -0500 (EST) (envelope-from robert@cyrus.watson.org) Date: Wed, 31 Mar 1999 01:20:40 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: bruno schwander Cc: "freebsd-java@freebsd.org" Subject: Re: jdk1.1.7 core dumps silently on freebsd 3.1 release In-Reply-To: <0F9G00IS513C76@PM02SM.PMM.CW.NET> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 30 Mar 1999, bruno schwander wrote: > >> I checked this and no the new ld was not changed properly. > >> When I run the install command, I get a core dump from strip ! > >> how can I manually update that file ? > > > >You only have to copy it to /usr/libexec, but READ THIS!! > > well..... before I got your warning, I tried copying the file over the > old one.... immediately after cp-ing it, I got a zillion error > messages, several processes core dumping etc, before I knew it my disk > was trashed and unrecoverable. I tried rebooting with the live FreeBSD > cd and mounting what was on my drive bot no partition was readable... I > suppose I could have tried harder but since I am not (yet :-) ) a BSD > guru I decided to wipe and reinstall, which wasn't really a big deal > since this was a fresh, new, 24hour old install... > > so, now that my bsd is up and running, I am not going to try to copy > this file over the old one ! > > any suggestions on what to do ? > > I am running all this on an old spare box with 500Mb of disk, so I don't > know if I can even get all the most recent sources build all > > thanks for the help The basic system binaries in /bin are all statically linked as opposed to dynamically linked. That means that as long as your system is not actively running any dynamically linked binaries, it is safe to copy over the original file. If you boot into single user mode, mount the file systems writable (fsck -p ; mount -a) you can do it safely. I would imagine you could also do a: mv /usr/libexec/ld-elf.so.1 /usr/libexec/ld-elf.so.1.bak and then copy the new one in, as that leaves existing processes pointing at the old one since it is not just written over (I believe one of the install flags does this also?). However, if you do that, there will be a window before the copy completes where new dynamically linked processes that start will not be happy. Copying the file onto the same partition and then moving it into the new location should prevent them from ever getting a partial ld-elf.so.1 however. Hope that helps, and sorry to hear about the toasted system :-(. Robert N Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: 03 01 DD 8E 15 67 48 73 25 6D 10 FC EC 68 C1 1C Carnegie Mellon University http://www.cmu.edu/ TIS Labs at Network Associates, Inc. http://www.tis.com/ Safeport Network Services http://www.safeport.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message