From owner-freebsd-java@FreeBSD.ORG Fri Apr 11 04:18:32 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90FE937B401; Fri, 11 Apr 2003 04:18:32 -0700 (PDT) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EF5B43FA3; Fri, 11 Apr 2003 04:18:27 -0700 (PDT) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id h3BDOau2083234; Fri, 11 Apr 2003 13:24:36 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.2) id h3BBPC7I023822; Fri, 11 Apr 2003 14:25:12 +0300 (EEST) (envelope-from ml) Date: Fri, 11 Apr 2003 14:25:12 +0300 From: Alexey Zelkin To: Ernst de Haan Message-ID: <20030411142512.A23773@phantom.cris.net> References: <200304111249.56506.znerd@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200304111249.56506.znerd@FreeBSD.org>; from znerd@freebsd.org on Fri, Apr 11, 2003 at 11:49:56AM +0100 X-Operating-System: FreeBSD 4.7-STABLE i386 cc: java@freebsd.org cc: Greg Lewis cc: Alexey Zelkin cc: Bill Proud cc: Chris Gilbride Subject: Re: SIGBUS on FreeBSD 4.7-S / Native JDK 1.3 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 11:18:32 -0000 hi, Well. I am not jdk1.3 expert, but quick look on dump shows that you're using 'green threads'. So, problem can be related to JIT which you're using or maybe application itself. Actually, from my expirience of porting jdk14 -- SIGBUS is usually notice of StackOverflow, but I don't know details of stack implementation in 'green threads'. On Fri, Apr 11, 2003 at 11:49:56AM +0100, Ernst de Haan wrote: > Alexey, Greg, > > We're in the middle of deploying quite a large frontend application on > Tomcat 4. We'd prefer to deploy on J2SE 1.3/FreeBSD, but we're getting > SIGBUS errors. Currently we're using these versions: > > * Tomcat 4.1.24 > * JDK 1.3.1p7 > * FreeBSD 4.7-STABLE (Compiled @ 2002.11.18/14:56:20 CET) > * x86 SMP system (Dual P4, I think) > > I see a number of alternative solutions: > > * Upgrade to FreeBSD 4.8 (I remember there were some Java-related > improvements after Nov 2002, right?) No reason to do it, unless you propose to use 'native threads' or jdk14. > * Upgrade to JDK 1.3.1p8 That's first point which you need to try. > * Set MAXUSERS to 0 in the kernel config file and recompile and install the > kernel (I remember this solved some native JDK problem in the past) You're not using native threads, so native threads methods are unapplicable. > * Use a different J2SE VM (I don't really want to do this) Why not ? > * Examine the core file to see what exactly went wrong > > Any suggested approach? Try updating to -p8 and see if anything changes.