From owner-freebsd-emulation@FreeBSD.ORG Wed Jul 23 20:22:42 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 2884C1065672 for ; Wed, 23 Jul 2008 20:22:42 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 2601D8FC17 for ; Wed, 23 Jul 2008 20:22:40 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1705526mue.3 for ; Wed, 23 Jul 2008 13:22:40 -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=HA2FqpvdYgAmeFuHC8CnKIy+6wyMjd5wsTUgCWwSW0s=; b=o1sGX9dvpdzf3fSL5gsknybCAxC4OOB/EC82nArvu1zF7x3t1Ys4KMuD2gimO9nB4m afU/XadshjDWDhk5U2rCY8Zxs6O4hoZZgy242QOUDXmQWjGXCqvqVdFEdTUT6+0VsWUB BBRUXwx9BxDTIL6ww7oxMXryXvcQMr0bemC/A= 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=ZieI65jljEzrjFR5DExyiETzVZNqNb6A+aD+Cbe+v8K9Fe2PNshV74u1QzfvKkpe+o dzm7//xTPcqBBzCbhPBEtMecpykYKK5BQDT1dSr1Xv+W2lBVDo88HU2pMmAW4bIg39rQ OYCRNBfnvnA3ojihYrTzW5cXuE4mi4pAVZLTI= Received: by 10.103.251.2 with SMTP id d2mr132975mus.88.1216844558655; Wed, 23 Jul 2008 13:22:38 -0700 (PDT) Received: from ora.chd.net ( [78.107.232.239]) by mx.google.com with ESMTPS id j10sm668120mue.6.2008.07.23.13.22.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Jul 2008 13:22:37 -0700 (PDT) Date: Thu, 24 Jul 2008 00:20:54 +0400 (MSD) To: "Sean C. Farley" In-Reply-To: Message-ID: References: <20080723184450.GA25356@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 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: Wed, 23 Jul 2008 20:22:42 -0000 On Wed, 23 Jul 2008, Sean C. Farley wrote: > On Wed, 23 Jul 2008, Roman Divacky wrote: > >> On Wed, Jul 23, 2008 at 12:50:51PM -0500, Sean C. Farley wrote: >>> I am seeing if anyone has any insight on this PR (kern/122318[1]). >>> It would be nice to once again build using cmake within a Linux >>> chroot. :) >>> >>> Basically, the bug is that not only that cmake is dumping core; it is >>> also forcing the user out of the chroot environment. Here is the >>> command used to start the chroot: >>> /compat/linux/usr/sbin/chroot su - >>> >>> 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122318 >> >> looking at the trace you provided I guess this is what's going on: >> >> cmake forks/execs gcc and waits to be notified about the success of >> the command it tried, the notification comes (the SIGCHLD) the handler >> tries do something and then returns and now something is wrong and it >> receives the SIGSEGV.. >> >> or am I wrong and linux_ktrace does not translate signals and the >> SIGCHLD is in fact SIGTSTP? >> >> what is the fd 3 and 4? can you provide full ktrace.out? > > I have the full output of the execution here using ktrace -d: > http://www.farley.org/freebsd/tmp/cmake-kdump.txt > > Sean > hi! Please, can you run ktrace with -i flag? thnx! -- Have fun! chd