From owner-freebsd-java@FreeBSD.ORG Fri Apr 11 05:05:26 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 8666737B401; Fri, 11 Apr 2003 05:05:26 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78E2C43F85; Fri, 11 Apr 2003 05:05:25 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.8/8.12.6) with ESMTP id h3BC5THt009488; Fri, 11 Apr 2003 14:05:29 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: from localhost (localhost [[UNIX: localhost]]) by zaphod.euronet.nl (8.12.8/8.12.6/Submit) id h3BC5SxS009487; Fri, 11 Apr 2003 14:05:28 +0200 (CEST) From: Ernst de Haan To: Alexey Zelkin Date: Fri, 11 Apr 2003 13:05:28 +0100 User-Agent: KMail/1.5 References: <200304111249.56506.znerd@FreeBSD.org> <20030411142512.A23773@phantom.cris.net> In-Reply-To: <20030411142512.A23773@phantom.cris.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304111405.28885.znerd@FreeBSD.org> 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 12:05:26 -0000 > 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. No JIT is used. And the application self (Tomcat) cannot be the problem, can it? It's running within the JVM... > 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'. You mean a stack overflow in the C code? Ernst > 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.