From owner-freebsd-stable Fri Jun 23 14:27:23 2000 Delivered-To: freebsd-stable@freebsd.org Received: from amonduul.ecn.ou.edu (amonduul.ecn.ou.edu [129.15.119.201]) by hub.freebsd.org (Postfix) with ESMTP id B396937B69C for ; Fri, 23 Jun 2000 14:27:19 -0700 (PDT) (envelope-from servalan!rmtodd@amonduul.ecn.ou.edu) Received: from servalan (2351 bytes) by amonduul.ecn.ou.edu via rmail with P:uucp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for freebsd.org!freebsd-stable; Fri, 23 Jun 2000 16:26:10 -0500 (CDT) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Apr-4) Received: from localhost (1790 bytes) by servalan.servalan.com via sendmail with P:stdio/R:smart_host/T:uux (sender: ) (ident using unix) id for ; Fri, 23 Jun 2000 16:09:41 -0500 (CDT) (Smail-3.2.0.106 1999-Mar-31 #1 built 1999-Aug-10) Message-Id: 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?) Newsgroups: servalan.mailinglist.fbsd-stable References: X-Newsreader: NN version 6.5.3 (NOV) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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