From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 27 11:21:21 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7A4516A415; Wed, 27 Sep 2006 11:21:21 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AD9C43D5C; Wed, 27 Sep 2006 11:21:20 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id k8RBLHhJ069651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Sep 2006 13:21:17 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id k8RBLHAH069649; Wed, 27 Sep 2006 13:21:17 +0200 (CEST) Date: Wed, 27 Sep 2006 13:21:17 +0200 From: Divacky Roman To: Jung-uk Kim Message-ID: <20060927112117.GA69141@stud.fit.vutbr.cz> References: <200609261733.48398.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609261733.48398.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-emulation@freebsd.org Subject: Re: linuxulator on -CURRENT 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, 27 Sep 2006 11:21:21 -0000 On Tue, Sep 26, 2006 at 05:33:44PM -0400, Jung-uk Kim wrote: > I was little annoyed by linuxulator breakage on amd64, which fails to > run Acrobat Reader. (Well, actually it's not Acrobat's fault. It's > just that wrapper is failing. If you run 'sh /usr/X11R6/bin/acroread' > instead, it runs okay.) All seem to boil down to one problem: > > %cat test.sh > #!/usr/compat/linux/bin/sh > bar=`true` > foo=`false` > %sh -x test.sh > + true > + bar= > + false > + foo= > %/compat/linux/bin/sh -x test.sh > ++ true > Segmentation fault (core dumped) > > linux_kdump shows this: > > 16618 bash PSIG SIGCHLD caught handler=0x807871f mask=0x0 code=0x0 > 16618 bash CALL linux_waitpid(0xffffffff,0xffffcc7c,0x1) > 16618 bash RET linux_waitpid 16619/0x40eb > 16618 bash CALL linux_waitpid(0xffffffff,0xffffcc7c,0x1) > 16618 bash RET linux_waitpid -1 errno 10 No child processes > 16618 bash PSIG SIGSEGV SIG_DFL > 16618 bash NAMI "bash.core" 1) arent true and false bash builtins? 2) can you compile it with -DDEBUG and show us the trace.. I wonder why the child dies. and the trace could show it. thnx roman