From owner-freebsd-emulation@FreeBSD.ORG Sun Jul 9 09:17:28 2006 Return-Path: X-Original-To: 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 845EF16A4E0 for ; Sun, 9 Jul 2006 09:17:28 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD32D43D46 for ; Sun, 9 Jul 2006 09:17:27 +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.7/8.13.7) with ESMTP id k699HL6q086990 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 9 Jul 2006 11:17:21 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k699HLKf086988; Sun, 9 Jul 2006 11:17:21 +0200 (CEST) Date: Sun, 9 Jul 2006 11:17:21 +0200 From: Divacky Roman To: Yuri Pankov Message-ID: <20060709091720.GA86627@stud.fit.vutbr.cz> References: <20060708202730.7dfaedf1@klamath.irbis.net.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060708202730.7dfaedf1@klamath.irbis.net.ru> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: emulation@freebsd.org Subject: Re: building native JDK 1.5.0 and linprocfs witness reports 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: Sun, 09 Jul 2006 09:17:28 -0000 On Sat, Jul 08, 2006 at 08:27:30PM +0400, Yuri Pankov wrote: > Hi. > > I've problems compiling native JDK 1.5.0. Posting to this list as it > seems related to linprocfs problems (linux-sun-jdk is used for > bootstraping). Build fails early in the beginning with "javac" > segmentation fault, and here's what I get in dmesg (lots of such > messages): > malloc(M_WAITOK) of "1024", forcing M_NOWAIT with the > following non-sleepable locks held: exclusive sleep mutex vm object > (standard object) r = 0 (0xffffff0063434578) locked > @ /usr/src/sys/compat/linprocfs/linprocfs.c:835 this happens because the code locks the vm object which non-sleepable mutex to protect it and then subsequent code calls malloc with WAITOK which is forbidden in such cases. pls, can you try attached patch and tell me whats printed if you reproduce the problem? its not meant to fix anything just a info print thnx, roman Index: linprocfs.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linprocfs/linprocfs.c,v retrieving revision 1.96 diff -u -r1.96 linprocfs.c --- linprocfs.c 27 Jun 2006 20:11:58 -0000 1.96 +++ linprocfs.c 9 Jul 2006 09:14:55 -0000 @@ -832,6 +832,7 @@ ino = 0; if (lobj) { vp = lobj->handle; + printf("lobj type: %i\n", lobj->type); VM_OBJECT_LOCK(lobj); off = IDX_TO_OFF(lobj->size); if (lobj->type == OBJT_VNODE && lobj->handle) {