From owner-freebsd-emulation Sun Jul 27 23:50:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA13632 for emulation-outgoing; Sun, 27 Jul 1997 23:50:52 -0700 (PDT) Received: from euthyphro.uchicago.edu (euthyphro.uchicago.edu [128.135.21.31]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA13616; Sun, 27 Jul 1997 23:50:45 -0700 (PDT) Received: from phaedrus.uchicago.edu (phaedrus [128.135.21.10]) by euthyphro.uchicago.edu (8.8.6/8.8.4) with ESMTP id BAA03984; Mon, 28 Jul 1997 01:50:43 -0500 (CDT) Received: from phaedrus.uchicago.edu (localhost [127.0.0.1]) by phaedrus.uchicago.edu (8.8.5/8.8.5) with ESMTP id BAA03938; Mon, 28 Jul 1997 01:50:41 -0500 (CDT) Message-Id: <199707280650.BAA03938@phaedrus.uchicago.edu> To: marc@bowtie.nl Cc: erich@FreeBSD.org, freebsd-emulation@FreeBSD.org Subject: Re: linux jdk on freebsd In-reply-to: Your message of "Sun, 27 Jul 1997 21:49:51 +0200." <199707271949.VAA24704@nietzsche.bowtie.nl> From: stephen farrell Mime-Version: 1.0 (generated by tm-edit 7.89) Content-Type: text/plain; charset=US-ASCII Date: Mon, 28 Jul 1997 01:50:36 -0500 Sender: owner-freebsd-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >Yes, I saw it come by on the mailing list, > >Allthough I havent't tried it yet it seemed to be a problem in the >linux libraries (but this is from memory, I'll have to get back >to you when I find the messages telling this) > >Did you try to install the latest linux-lib package from ports? Yes... I've just been playing around with this some more. It's tantalizingly close to working beautifully--and noticeably faster than it does under linux (!). Basically we're working with the following: steve byrne packaged up with 1.1.1-v3 libc.so.5.4.13, and libdl.so.1.?.? (he did not leave the version names on them, and strings won't show me which libdl this is). These reside in jdk1.1.1/lib/i586/green_threads/, and are found by default unless you rename them. the latest linux_lib (2.4) includes libc.so.5.4.23 and libdl.so.1.7.14. (incidentally, either running "linux", or a note that you need to do so before installing this port might be good. I was a little confused at first when it failed to run ldconfig) Now, I can toggle between which of these is used by renaming the libs in jdk1.1.1/lib/i586/green_threads/. I find immediately that the linux_lib libdl.so causes a "illegal instruction" error if I try to use it. It doesn't appear to matter much which libc I use... either one is susceptible to the "pause hang". This hang occurs rarely, but is reproducible. Sometimes it's more common, like when I was running the trace below, the pause hang was more common. It was particularly reproducible, for example, in one program I can only get it to happen if I try to open up a heirarchical list that takes a few seconds to load under linux or solaris. Here's a bit of a ktrace output, which appears to just repeat like this indefinitely: http://www.farrell.org/stephen_paul/trace.html -- Steve Farrell