Date: Wed, 31 Mar 1999 01:20:40 -0500 (EST) From: Robert Watson <robert@cyrus.watson.org> To: bruno schwander <bruno.schwander@technologist.com> Cc: "freebsd-java@freebsd.org" <freebsd-java@freebsd.org> Subject: Re: jdk1.1.7 core dumps silently on freebsd 3.1 release Message-ID: <Pine.BSF.3.96.990331011658.27122C-100000@fledge.watson.org> In-Reply-To: <0F9G00IS513C76@PM02SM.PMM.CW.NET>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990331011658.27122C-100000>