Date: Fri, 23 Jun 2000 16:09:41 -0500 (CDT) From: rmtodd@servalan.servalan.com (Richard Todd) To: mpp@mppsystems.com, freebsd-stable@freebsd.org Subject: Re: linux emulation crashes (was: Re: Softupdates disappears?) Message-ID: <m135ahp-004MdvC@servalan.servalan.com> References: <servalan.mailinglist.fbsd-stable/20000622042626.C02ADE6FF8@netcom1.netcom.com> <servalan.mailinglist.fbsd-stable/Pine.BSF.4.21.0006221500550.82230-100000@snafu.adept.org> <servalan.mailinglist.fbsd-stable/20000623034310.C16895@mppsystems.com> <servalan.mailinglist.fbsd-stable/20000623065847.A355@mppsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Pritchard writes: >I finally figured out my problem after quite a few reboots, and >forcing a few crash dumps. >It turns out that I had an old linux_base port installed, and when the >/usr/sbin/linux script ran /usr/compat/linux/sbin/ldconfig the version >I had, for whatever reason, wound up calling the reboot() system >call. I had this happen to me too, a while back on -current. The culprit is that the ldconfig executable wasn't branded as a Linux executable, so when the emulation code changed to look at the branding, the kernel assumed ldconfig was a FreeBSD executable, and apparently the executable has the right sequences of bytes to carry out a reboot system call. Anyway, using brandelf to mark the Linux ldconfig as being a Linux executable fixed that; presumably the current linux_base install does this automatically. >One odd thing, due to some outdated files in /etc/defaults (I think), I wasn't >even building the linux module and installing it. The kldload was failing, >but attempting to run the bad ldconfig still caused the machine to crash. >FreeBSD syscall # 55 = reboot, Linux syscall # 55 = fcntl. I wonder Aha, so *that's* where the bogus reboot came from. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m135ahp-004MdvC>