From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 25 19:31:56 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 A5A86106567F for ; Fri, 25 Jul 2008 19:31:56 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 49F108FC1C for ; Fri, 25 Jul 2008 19:31:55 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1574399nfh.33 for ; Fri, 25 Jul 2008 12:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject :in-reply-to:message-id:references:user-agent:mime-version :content-type:from; bh=KpC0aLMnJ+AvK6YxvZ/7PxWb/r0v/PcC16oou7Nv0fs=; b=q06Q+jWp3yelxTkY0UoE+nnk2If+Gb6+QA4FS/+y5WG0KIq+o2R7qsx1efdhrQ1y18 EjVV+ATVSkLnRtUxFYPhaI7OLfqlT2wEjPnpM80w6DhnJ2cxj7ZkndFu2nSdXQakmZHD qH+Ow2jsuvN0yRXFRSZR1nndI4Z6a/mf/J3zk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:user-agent :mime-version:content-type:from; b=XvlanLTd8K3kaLwG4jJFSRjdlMOtGzLbyDU9hTwMrf1qubZYYP2gGdCkPFnpM9uXuC Ok9DeSW7XhTZL+QIjuuD2ngRopfF084t6f2N+6RXUMla2+MVrEiLUt+om0LgrKhUhowb 6P9Vi5j+Lb3GNp76VAmmB0wl5dZfy0YOeobmE= Received: by 10.210.61.8 with SMTP id j8mr2372944eba.199.1217014314015; Fri, 25 Jul 2008 12:31:54 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id 5sm9360560nfv.15.2008.07.25.12.31.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jul 2008 12:31:52 -0700 (PDT) Date: Fri, 25 Jul 2008 23:31:39 +0400 (MSD) To: "Sean C. Farley" 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 From: Chagin Dmitry Cc: 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: Fri, 25 Jul 2008 19:31:56 -0000 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 can't reproduce problem, my output on linuxulator64: ora# chroot /compat/linux /bin/bash bash-3.2# bash-3.2# whereis cmake cmake: /usr/bin/cmake /usr/share/cmake /usr/share/man/man1/cmake.1.gz bash-3.2# bash-3.2# cd /opt bash-3.2# mkdir a bash-3.2# cd a bash-3.2# touch CMakeLists.txt bash-3.2# /usr/bin/cmake . -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Configuring done -- Generating done -- Build files have been written to: /opt/a bash-3.2# 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! -- Have fun! chd