From owner-freebsd-emulation@FreeBSD.ORG Sat Jul 26 10:17:34 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 D706A1065680 for ; Sat, 26 Jul 2008 10:17:34 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 5390D8FC0A for ; Sat, 26 Jul 2008 10:17:33 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so3099720fkk.11 for ; Sat, 26 Jul 2008 03:17:32 -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=jh5TRznqyAHC8h0Dt4L1MSbFWJa6D0NVfaFNgDK3HV8=; b=QIVdMe9XwtGnbmHJssL4yMKeHJsHTtISnTvcn/rAgJP8A/qsOXA/IjVAYz2c2G659J 6WizSp94fRSZNYoBLDyupuaSnhmQGR3JxcMhWUStjSMnwmx4ZlMeinTMtCswfNaa3iMl Wza+25px/qjYTUnOlni4gPIxSpAXD6I0TJvIE= 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=qQU5hsBF0yQEAiPaEgM/kDlJ5AoF8dumXcQEKGbA/kGFxRUC5xrZfGPHq6m3zAwOCQ TE1m/boKETlq/9metwNqWOg1ESOIvCp8XolXJOfRMAlIqOBYQqX/ptgepVdcbF8/Lky8 Bmqb7Q0eNx9HayB1p/AWQ97xZNaDFnyOD0Hzs= Received: by 10.181.37.11 with SMTP id p11mr575307bkj.101.1217067451861; Sat, 26 Jul 2008 03:17:31 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id g28sm427917fkg.8.2008.07.26.03.17.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Jul 2008 03:17:30 -0700 (PDT) Date: Sat, 26 Jul 2008 14:15:28 +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: Sat, 26 Jul 2008 10:17:35 -0000 On Fri, 25 Jul 2008, Sean C. Farley wrote: >>>>> >>>> >>>> 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 > With COMPAT_LINUX32 the mistake really exists... ora# chroot /compat/linux /bin/bash bash-3.2# bash-3.2# uname -a Linux ora.chd.net 2.6.16 FreeBSD 8.0-CURRENT #4: Sat Jul 26 01:35:52 MSD 2008 i686 i686 i386 GNU/Linux 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# whereis cmake cmake: /usr/bin/cmake /usr/share/cmake /usr/share/man/man1/cmake.1.gz bash-3.2# /usr/bin/cmake . -- Check for working C compiler: /usr/bin/gcc Segmentation fault (core dumped) bash-3.2# let's look :) -- Have fun! chd