From owner-freebsd-emulation@FreeBSD.ORG Wed Jul 23 18:46:03 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 8ECDE106566B; Wed, 23 Jul 2008 18:46:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 544A98FC17; Wed, 23 Jul 2008 18:46:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A8F42680A5F; Wed, 23 Jul 2008 20:44:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lHs2bcIWGMbF; Wed, 23 Jul 2008 20:44:50 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 75BBD678CF1; Wed, 23 Jul 2008 20:44:50 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m6NIioq1026005; Wed, 23 Jul 2008 20:44:50 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 23 Jul 2008 20:44:50 +0200 From: Roman Divacky To: "Sean C. Farley" Message-ID: <20080723184450.GA25356@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i 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 18:46:03 -0000 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 - > > Thank you. > > Sean > 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? thnx, roman