From owner-freebsd-emulation@FreeBSD.ORG Sun Jul 9 21:00:29 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 9303816A4E5 for ; Sun, 9 Jul 2006 21:00:29 +0000 (UTC) (envelope-from y.pankov@irbis.net.ru) Received: from navarro.irbis.net.ru (navarro.irbis.net.ru [85.118.141.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E9AF43D45 for ; Sun, 9 Jul 2006 21:00:28 +0000 (GMT) (envelope-from y.pankov@irbis.net.ru) Received: by navarro.irbis.net.ru (Postfix, from userid 106) id E5184627873; Mon, 10 Jul 2006 01:00:25 +0400 (MSD) Received: from klamath.irbis.net.ru (klamath.irbis.net.ru [192.168.0.64]) by navarro.irbis.net.ru (Postfix) with ESMTP id C9DB5627842; Mon, 10 Jul 2006 01:00:24 +0400 (MSD) From: Yuri Pankov To: Divacky Roman In-Reply-To: <20060709091720.GA86627@stud.fit.vutbr.cz> References: <20060708202730.7dfaedf1@klamath.irbis.net.ru> <20060709091720.GA86627@stud.fit.vutbr.cz> Content-Type: text/plain Organization: Irbis Telecommunications, JSC Date: Mon, 10 Jul 2006 00:54:14 +0400 Message-Id: <1152478454.66985.5.camel@klamath.irbis.net.ru> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-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 21:00:29 -0000 On Sun, 2006-07-09 at 11:17 +0200, Divacky Roman wrote: > 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) { I've got a lot of identical messages, so I just grep'ed lobj type from dmesg. # dmesg | grep 'lobj type' lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 0 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 0 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 2 lobj type: 0 -- Yuri