From owner-freebsd-stable Fri Jun 23 4:59:20 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mppsystems.com (mppsystems.com [208.210.148.205]) by hub.freebsd.org (Postfix) with ESMTP id 02D6137B9BD for ; Fri, 23 Jun 2000 04:59:16 -0700 (PDT) (envelope-from mpp@mppsystems.com) Received: (from mpp@localhost) by mppsystems.com (8.9.3/8.9.3) id GAA00508; Fri, 23 Jun 2000 06:58:47 -0500 (CDT) (envelope-from mpp) Date: Fri, 23 Jun 2000 06:58:47 -0500 From: Mike Pritchard To: Mike Cc: freebsd-stable@FreeBSD.ORG Subject: Re: linux emulation crashes (was: Re: Softupdates disappears?) Message-ID: <20000623065847.A355@mppsystems.com> References: <20000622042626.C02ADE6FF8@netcom1.netcom.com> <20000623034310.C16895@mppsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000623034310.C16895@mppsystems.com>; from mpp@mppsystems.com on Fri, Jun 23, 2000 at 03:43:10AM -0500 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. After a pkg_delete and a fresh install of the port, the problem went away. 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 if something in exec needs fixing to not run linux binaries if the emulator isn't present. The up-to-date linux ldconfig core dumps when the linux emulator isn't present. -Mike On Fri, Jun 23, 2000 at 03:43:10AM -0500, Mike Pritchard wrote: > On Thu, Jun 22, 2000 at 03:06:31PM -0700, Mike wrote: > > > > I installed 4.0 release from CD and enabled linux emulation. No > > problem. I then cvsup'd to stable, enabled softupdates and got panics on > > reboot. I turn linux emulation off, panics go away. I don't even need > > linux emulation... Just wondering if this is a known problem, or > > something I'm managing to fubar (searching list archives didn't turn > > anything up, sorry if this has been addressed). > > > > If it is a real problem, I can provide more details. > > I had the same problem with 5.0-current yesterday on one of my machines. > My machine didn't panic, but when/etc/rc loaded the linux emulator, > the machine halted itself. E.g. I got the "waiting for process..." and > the "uptime" message and then the machine halted. I didn't have time > to figure out what was going on at the time, so I just disabled the > emulator in rc.conf. > > Funny thing is, the linux emulator works fine on my other machine, and > it is running from the same source set as the machine with the problem. > They do run slightly different kernels, however. -- Mike Pritchard mpp@FreeBSD.org or mpp@mppsystems.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message