From owner-freebsd-amd64@FreeBSD.ORG Mon Nov 28 17:04:16 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1609416A427; Mon, 28 Nov 2005 17:04:16 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E69F43D79; Mon, 28 Nov 2005 17:04:14 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2741931 for multiple; Mon, 28 Nov 2005 12:04:25 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jASH3rCN058457; Mon, 28 Nov 2005 12:04:11 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Mon, 28 Nov 2005 11:48:47 -0500 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511281148.49017.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: amd64@freebsd.org, java@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: quest for help on a linux emul problem (source unknown) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 17:04:16 -0000 On Saturday 26 November 2005 08:50 pm, Arno J. Klaassen wrote: > Hello, > > > I try to get a commercial linux32 package to work on amd64; > this package includes it's own binary distrib of some > linux-jdk1.3.1 and works OK on i386 (RELENG_5 and RELENG_6) but > hangs on amd64-RELENG_6 (though it did work on a couple > of months old amd64-RELENG-5, but I do not any longer have such > a box around ... ). > > I write this email in the hope someone can put me on the right > track to nail down this problem : > > when I do a ktrace on i386 I get : > > CALL mincore(0xbfbfc480,0) > RET mincore 0 > CALL #175(0,0,0xbfbfc2b4,0x8) > RET #175 0 > CALL #175(0x1,0xbfbfc3b8,0xbfbfc338,0x8) > RET #175 0 > CALL mincore(0xbfbfc290,0) > RET mincore 0 > CALL getdomainname(0xbfbfc288,0) > RET getdomainname 0 > > then some dozens of : > > CALL #175(0x2,0xbfbfc338,0,0x8) > RET #175 0 > CALL mincore(0xbfbfc480,0) > RET mincore 0 > CALL #175(0,0,0xbfbfc2b4,0x8) > RET #175 0 > CALL #175(0x1,0xbfbfc3b8,0xbfbfc338,0x8) > RET #175 0 > CALL mincore(0xbfbfc290,0) > RET mincore 0 > CALL getdomainname(0xbfbfc288,0) > RET getdomainname 0 > > > and finally : > > CALL #175(0x2,0xbfbfc338,0,0x8) > RET #175 0 > CALL write(0xb,0x83189e8,0x18) > GIO fd 11 wrote 24 bytes FYI, there is a 'linux-kdump' in ports that parses the syscalls from a ktrace on a linux binary. You can use that to make sure your mapping of 175 to sigprocmask() is correct. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org