From owner-freebsd-java Mon Feb 3 2:51:20 2003 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 ECF2837B401 for ; Mon, 3 Feb 2003 02:51:18 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18EE443FDD for ; Mon, 3 Feb 2003 02:51:18 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.6/8.12.6) with ESMTP id h13AoVfx014909; Mon, 3 Feb 2003 05:50:32 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: freebsd-java@freebsd.org X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.6/8.12.6) with ESMTP id h13AoXvk087084; Mon, 3 Feb 2003 05:50:33 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.6/8.12.6/Submit) id h13AoRhw087083; Mon, 3 Feb 2003 05:50:27 -0500 (EST) Date: Mon, 3 Feb 2003 05:50:27 -0500 From: Brent Verner To: freebsd-java@freebsd.org Cc: William Holt Subject: problem and workaround for java/tomcat on -current Message-ID: <20030203105027.GA86700@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-muttrc: $Id: .muttrc,v 1.9 2002/01/02 07:04:49 brent Exp $ X-uname: FreeBSD 4.7-STABLE #30: Wed Jan 22 00:54:33 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i 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 Sometime after Jan 20, -current has been unable to run tomcat (and other things, such as the Jetty issue William Holt reported). I took his CrashBSD.java prog, and further determined that only the "0.0.0.0" caused the bus error -> abort problem. import java.net.*; public class CrashBSD { static public void main( String args[] ) { try { InetAddress a = InetAddress.getByName("127.0.0.1"); ServerSocket sa = new ServerSocket(0,10,a); System.out.println(sa); InetAddress b = InetAddress.getByName("0.0.0.0"); ServerSocket sb = new ServerSocket(0,10,b); System.out.println(sb); } catch ( Exception e ) { System.out.println( e ); System.exit( 1 ); } } } You'll notice that the 127.0.0.1 InetAddress works just fine, but the "0.0.0.0" addr causes the error. I dug a bit further into what change since 20 Jan is causing this, but had no luck. However, the problem can be worked around by adding a line in the /etc/hosts for the "0" ip. 0.0.0.0 all.interfaces.on.this.machine What strange effects might this cause? I have no clue :-), but tomcat seems to be happy again... hth, brent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message