From owner-freebsd-emulation@FreeBSD.ORG Wed Jul 23 18:45:16 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 C04031065683 for ; Wed, 23 Jul 2008 18:45:16 +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 9265F8FC08 for ; Wed, 23 Jul 2008 18:45:16 +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 m6NIjE3c038949; Wed, 23 Jul 2008 13:45:14 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Wed, 23 Jul 2008 13:45:14 -0500 (CDT) From: "Sean C. Farley" To: Roman Divacky In-Reply-To: <20080723180704.GA22714@freebsd.org> Message-ID: References: <20080723180704.GA22714@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: 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:45:16 -0000 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 - > > is cmake threaded? No. ldd output from a cmake on a different system and architecture (amd64): libdl.so.2 => /lib64/libdl.so.2 (0x00000039e1e00000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003332800000) libm.so.6 => /lib64/libm.so.6 (0x00000038a1e00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00000039e3a00000) libc.so.6 => /lib64/libc.so.6 (0x00000039e1600000) /lib64/ld-linux-x86-64.so.2 (0x00000039e1200000) Oddly enough, I cannot get anything from this binary within the chroot, outside of the chroot or even on a Linux system: not a dynamic executable strace does show it loading dynamic libraries: open("/etc/ld.so.cache", O_RDONLY) = 3 open("/lib/libdl.so.2", O_RDONLY) = 3 open("/usr/lib/libstdc++.so.5", O_RDONLY) = 3 open("/lib/libm.so.6", O_RDONLY) = 3 open("/lib/libgcc_s.so.1", O_RDONLY) = 3 open("/lib/libc.so.6", O_RDONLY) = 3 Heh. I tried to rebuild the RPM within the chroot, but it also cores during the build. Sean -- scf@FreeBSD.org