From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 25 20:57:15 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 6C3D41065670; Fri, 25 Jul 2008 20:57:15 +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 2FCB88FC0A; Fri, 25 Jul 2008 20:57:15 +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 m6PKvCrG032005; Fri, 25 Jul 2008 15:57:13 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Fri, 25 Jul 2008 15:57:12 -0500 (CDT) From: "Sean C. Farley" To: Chagin Dmitry In-Reply-To: Message-ID: References: <20080723184450.GA25356@freebsd.org> <20080725082156.GA41887@freebsd.org> <20080725083122.GA42835@freebsd.org> 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,AWL,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 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: Fri, 25 Jul 2008 20:57:15 -0000 On Sat, 26 Jul 2008, Chagin Dmitry wrote: > On Fri, 25 Jul 2008, Sean C. Farley wrote: >> On Fri, 25 Jul 2008, Chagin Dmitry wrote: >>> On Fri, 25 Jul 2008, Sean C. Farley wrote: >>>> On Fri, 25 Jul 2008, Chagin Dmitry wrote: >>>>> >>>>> yes, but I remember it was a question about chroot... >>>> >>>> I have the trouble in and out of the chroot (FC2-based) but also >>>> with linux_base-f{c4,c6,8}. I just ran it outside of the chroot to >>>> get the ktrace much more easily. This is on a FreeBSD 7 amd64 >>>> system running a 32-bit chroot. >>>> >>> >>> ugh... my head, sorry ((( >>> >>>>> Sean, can you provide full command which you run? >>>> >>>> Steps to recreate: >>>> mkdir a >>>> cd a >>>> touch CMakeLists.txt >>>> /home/sfarley/chroot/usr/bin/cmake . >>>> >>>> System setup for 7-STABLE as of July 14th: >>>> compat.ia32.maxvmem: 0 >>>> compat.ia32.maxssiz: 67108864 >>>> compat.ia32.maxdsiz: 536870912 >>>> compat.linux.oss_version: 198144 >>>> compat.linux.osrelease: 2.6.16 >>>> compat.linux.osname: Linux >>>> compat.linux32.maxvmem: 0 >>>> compat.linux32.maxssiz: 67108864 >>>> compat.linux32.maxdsiz: 536870912 >>>> >>>> BTW, switching to compat.linux.osrelease=2.4.2, running some Linux >>>> applications and switching back to 2.6.16 does not leave Linux >>>> emulation in a happy state. Simple Linux applications such as >>>> uname start core dumping. >>>> >>> >>> uname must work on all supported linuxulators >> >> I agree, and it does work until I start playing with the Linux >> version. This problem may or may not be related to the cmake issue. >> >>> I can't reproduce problem, my output on linuxulator64: >> >> 8-CURRENT vs 7-STABLE issue maybe? >> > > don't think so > >>> at me only one idea - create shell script like this: >>> >>> #!/bin/sh >>> sleep 30 >>> /usr/bin/cmake . >>> >>> run it, >>> ps -ax | grep you_script_name >>> ktrace -di -p you_script_pid -f /ttt/tracefile.out >>> >>> and show result. thnx! >> >> OK. I obtained a trace file[1]. Amusingly, bash also died in this >> scenario. >> >> Sean >> 1. http://www.farley.org/freebsd/tmp/ktrace.out.bz2 > > I can't use it on -current, ktrace abi was changed. please, make > itself linux_kdump :) Picky, picky! :) Here[2] you go. Sean 2. http://www.farley.org/freebsd/tmp/ktrace.txt -- scf@FreeBSD.org