From owner-freebsd-emulation@FreeBSD.ORG Mon Aug 11 20:07:35 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92B191065675; Mon, 11 Aug 2008 20:07:35 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id C6FE58FC17; Mon, 11 Aug 2008 20:07:29 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id m7BK7Rpj087515; Mon, 11 Aug 2008 15:07:27 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Mon, 11 Aug 2008 15:07:27 -0500 (CDT) From: "Sean C. Farley" To: Alexander Leidinger In-Reply-To: <20080726083110.5d932695@deskjail> Message-ID: References: <20080723184450.GA25356@freebsd.org> <20080725082156.GA41887@freebsd.org> <20080725083122.GA42835@freebsd.org> <20080726083110.5d932695@deskjail> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: Roman Divacky , freebsd-emulation@FreeBSD.org, Chagin Dmitry Subject: Re: kern/122318 (CMake core dumping, chroot exiting) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 20:07:35 -0000 On Sat, 26 Jul 2008, Alexander Leidinger wrote: > Quoting "Sean C. Farley" (Fri, 25 Jul 2008 15:36:52 > -0500 (CDT)): >> On Fri, 25 Jul 2008, Chagin Dmitry wrote: > >>> uname must work on all supported linuxulators >> >> I agree, and it does work until I start playing with the Linux >> version. > > Don't play with the linux version while linux programs are running. > Changing the version from 2.4.x to 2.6.x and vice versa while a > program is running is not supported at all and known to cause havoc. > Roman, do we have the possibility to make an easy check in the sysctl > handler if a linux program is still running and return an error from > the handler? Did I forgot something which makes it impossible to > switch when a program was run under 2.6 and stopped? I understand. This is the first thing I surmised it was since I had originally changed the versions while a Linux application was running. > Sean, can you rule out the possibility that a program was still > running under another version when you've seen the problems with > uname? Actually, I was having trouble (at #3 and #9) after: 1. Stopping all Linux applications. 2. Changing the Linux version from 2.6.16 (set at boot in /etc/sysctl.conf) to 2.4.2. 3. Running an application. 4. Unmounting linprocfs and linsysfs mount points. 5. Unloading linux, linprocfs and linsysfs modules. 6. Loading linux, linprocfs and linsysfs modules. 7. Mounting linprocfs and linsysfs mount points. 8. Setting Linux version to 2.6.16. 9. Running an application. I do not see how the failures could continue at #9. How could it carry the state even after unloading all of the Linux modules? Sean -- scf@FreeBSD.org