From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 14 04:34:47 2004 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8A8616A4D3 for ; Sun, 14 Mar 2004 04:34:46 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FA7443D1D for ; Sun, 14 Mar 2004 04:34:46 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (203.134.131.93) by smtp01.syd.iprimus.net.au (7.0.024) id 402BA92700A36475; Sun, 14 Mar 2004 23:34:44 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 2F14241C0; Sun, 14 Mar 2004 23:35:07 +1100 (EST) Date: Sun, 14 Mar 2004 23:35:07 +1100 From: Tim Robbins To: Michal Pasternak Message-ID: <20040314123507.GA23930@cat.robbins.dropbear.id.au> References: <200403140213.i2E2DSPD001611@freefall.freebsd.org> <20040314120935.GA83582@pasternak.w.lub.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040314120935.GA83582@pasternak.w.lub.pl> User-Agent: Mutt/1.4.1i cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/64169: linux binaries dump core on exit X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 12:34:47 -0000 On Sun, Mar 14, 2004 at 01:09:35PM +0100, Michal Pasternak wrote: > Tim J. Robbins [Sat, Mar 13, 2004 at 06:13:28PM -0800]: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=64169 > > Any chances for MFC? If you'd provide me the list of changed files (or at > least some details about commit, that fixes this PR), I'd love to provide > patches for 4.9. I'm in the middle of shuffling around my machines, so I don't have convenient access to one running 4.x to MFC this. What I think you need to do to get Slackware binaries working is to MFC support for the Linux exit_group() syscall. It should be a simple matter of adding: 252 MNOPROTO LINUX { void sys_exit(int rval); } exit_group sys_exit_args void to sys/i386/linux/syscalls.master and regenerating linux_proto.h, linux_sysent.c, and linux_sysvec.c by typing "make sysent" in that directory. This change was part of linux/syscalls.master rev. 1.52. I can't confirm that exit_group() is the only thing missing from 4.9 required to run Slackware 9 binaries, but they definitely do work on -current: sh-2.05b# uname -srm Linux 2.4.2 i686 sh-2.05b# cat /etc/slackware-version Slackware 9.1.0 Tim