From owner-freebsd-java Sat Jun 15 6:40:27 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by hub.freebsd.org (Postfix) with ESMTP id 8222F37B40F for ; Sat, 15 Jun 2002 06:40:09 -0700 (PDT) Received: from rpsmtp1.aist.go.jp by mx1.aist.go.jp with ESMTP id g5FDdtH14405; Sat, 15 Jun 2002 22:39:55 +0900 (JST) env-from (shudo@computer.org) Received: from mail03.aist.go.jp by rpsmtp1.aist.go.jp with ESMTP id g5FDdtm29914; Sat, 15 Jun 2002 22:39:55 +0900 (JST) env-from (shudo@computer.org) Received: from aist.go.jp by mail03.aist.go.jp with ESMTP id g5FDds520463; Sat, 15 Jun 2002 22:39:54 +0900 (JST) env-from (shudo@computer.org) Date: Sat, 15 Jun 2002 22:39:54 +0900 (JST) Message-Id: <20020615.223954.337812685.shudoh@localhost> To: freebsd@spatula.net Cc: freebsd-java@FreeBSD.ORG Subject: Re: shujit with Resin From: shudo@computer.org In-Reply-To: References: X-Mailer: Mew version 2.1 on XEmacs 21.4.6 (Common Lisp) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Jun_15_22:39:54_2002_721)--" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----Next_Part(Sat_Jun_15_22:39:54_2002_721)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Nick, Thanks for your report. Nick Johnson wrote: > Has anyone been successful in getting Resin (www.caucho.com) to run with > shujit? I'm able to get it to handle about 2 requests, and then it goes > SIG11 on the third. > FATAL: Signal 11 occurred out of JIT compiled code. Resin 2.1.2 works well on my Linux box with shuJIT and Blackdown JDK 1.3.1_02b. I suspect a bug of FreeBSD JDK because of it and the error message you gave. I have reported the bug to this list once (see the attachment). It will be hard to track down. The work-around for the bug had been enhanced toward shuJIT 0.7.12 and it is automatically turned on for the FreeBSD JDK 1.3.1. I hope you never see the bug if you use shuJIT 0.7.12 or later. Anyway, I need more information such as the version number of shuJIT and Resin. I will make investigation, but now I do not have FreeBSD machines I can login to because those are shut off. Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ ----Next_Part(Sat_Jun_15_22:39:54_2002_721)-- Content-Type: Message/Rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from rpsmtp2.aist.go.jp by mail05.aist.go.jp with ESMTP id g2E1hPr15040 for ; Thu, 14 Mar 2002 10:43:26 +0900 (JST) env-from (owner-freebsd-java@FreeBSD.ORG) Received: from mx2.aist.go.jp by rpsmtp2.aist.go.jp with ESMTP id g2E1hPi06296 for ; Thu, 14 Mar 2002 10:43:25 +0900 (JST) env-from (owner-freebsd-java@FreeBSD.ORG) Received: from clement.computer.org by mx2.aist.go.jp with ESMTP id g2E1hLN24157 for ; Thu, 14 Mar 2002 10:43:22 +0900 (JST) env-from (owner-freebsd-java@FreeBSD.ORG) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by clement.computer.org (Switch-2.1.1/Switch-2.1.1) with ESMTP id U2E124X411992 for ; Wed, 13 Mar 2002 17:40:33 -0800 Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 9D4E655944; Wed, 13 Mar 2002 17:39:42 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: by hub.freebsd.org (Postfix, from userid 538) id 3854037B417; Wed, 13 Mar 2002 17:39:41 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 9B0552E8081; Wed, 13 Mar 2002 17:39:40 -0800 (PST) Received: by hub.freebsd.org (bulk_mailer v1.12); Wed, 13 Mar 2002 17:39:40 -0800 Delivered-To: freebsd-java@freebsd.org Received: from cafe.muraoka.info.waseda.ac.jp (cafe.muraoka.info.waseda.ac.jp [133.9.68.49]) by hub.freebsd.org (Postfix) with ESMTP id 61BD837B400 for ; Wed, 13 Mar 2002 17:39:14 -0800 (PST) Received: from muraoka.info.waseda.ac.jp (shudoh@localhost [127.0.0.1]) by cafe.muraoka.info.waseda.ac.jp (8.9.1a/3.7W) with ESMTP id KAA32180 for ; Thu, 14 Mar 2002 10:38:55 +0900 Message-Id: <200203140138.KAA32180@cafe.muraoka.info.waseda.ac.jp> To: java@FreeBSD.ORG From: shudo@computer.org Subject: shuJIT 0.7.11 Date: Thu, 14 Mar 2002 10:38:55 +0900 Sender: owner-freebsd-java@FreeBSD.ORG List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Precedence: bulk Content-Length: 2156 Hi all, I have released shuJIT 0.7.11. http://www.shudo.net/jit/ Two problem reports came to me last month from Mr. Mike Gratton and Mr. Maxim Sobolev. Now the newly released version of shuJIT run Xindice 1.0rc1 and jEdit 3.2.2 well. I'd appreciate any report on this version of shuJIT. Two bugs of shuJIT and one possible bug of FreeBSD 1.3.1-p6 came to the front of me. Bugs of shuJIT were kinds of Java stack destruction and those could be fixed. But, the last bug seems to be in JDK 1.3.1-p6, not shuJIT. I implemented a nasty workaround for it. It is automatically enabled if the shuJIT is compiled with 1.3.1-p6. See the macro named `WORKAROUND_FOR_FREEBSD_131P6' in config.h. The version of JDK seems to call JIT-compiled native code as the JDK leaves SIGTRAP signal blocked. It's possible that other signals are also kept blocked. Native code generated by shuJIT causes SIGTRAP intentionally for some reasons, but the signal is not delivered until it is unblocked by sigprocmask(2). Just when unblocked, it is delivered and the timing of the delivery is different from one intended by shuJIT (and me). We can reproduce the problem by following the below instruction: - Configure the shuJIT. % ./configure - Comment out the following line in config.h. #define WORKAROUND_FOR_FREEBSD_131P6 1 - Change `#define' to `#undef' in the line as follows in compiler.h. #define METHOD_INLINING Now, shuJIT with JDK 1.3.1-p6 aborts. If we enable the workaround indicated by the macro in config.h, shuJIT works correctly. Then, we can confirm the workaround implemented in runtime.c is effective. I am not sure there is this problem in the previous releases of JDK 1.3.1 and 1.2.X. If there is, I have to change the way to judge whether the workaround should be enabled or not. I'm running FreeBSD 4.5-STABLE about early in March. Note that the signal related problem mentioned above does not occur on Linux, at least with Blackdown JDK 1.3.1-02a-FCS. Kazuyuki Shudo shudo@computer.org http://www.shudo.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message ----Next_Part(Sat_Jun_15_22:39:54_2002_721)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message