From owner-freebsd-java Fri Jan 24 11:40:45 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 750B237B401 for ; Fri, 24 Jan 2003 11:40:44 -0800 (PST) Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF48243ED8 for ; Fri, 24 Jan 2003 11:40:43 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr2.xmission.com with spam-scanned (Exim 3.35 #1) id 18c9di-0000S4-02 for freebsd-java@freebsd.org; Fri, 24 Jan 2003 12:37:22 -0700 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 18c9aP-0007fb-02; Fri, 24 Jan 2003 12:33:58 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id h0OJXrS39855; Sat, 25 Jan 2003 06:03:53 +1030 (CST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 25 Jan 2003 06:03:52 +1030 From: Greg Lewis To: Robin Schilham Cc: freebsd-java@freebsd.org Subject: Re: jboss3 java core dump Message-ID: <20030125060352.A39692@misty.eyesbeyond.com> References: <3E3127D3.7030907@xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3E3127D3.7030907@xs4all.nl>; from co9@xs4all.nl on Fri, Jan 24, 2003 at 12:47:31PM +0100 X-Spam-Status: No, hits=-3.1 required=8.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01, TO_BE_REMOVED_REPLY,USER_AGENT,USER_AGENT_MUTT, X_AUTH_WARNING version=2.43 X-Spam-Level: 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 On Fri, Jan 24, 2003 at 12:47:31PM +0100, Robin Schilham wrote: > Andriy Podanenko wrote: > > Has anybody fix the problem ? > > http://www.geocrawler.com/archives/3/162/2002/12/0/10270779/ > > and the yet one: > > jboss3 make java core dump on FreeBSD (5.0-RELENG) > > jdk13 from ports (patchset 7) > > jboss3 from ports > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > > I had the same problem with jboss3 with jdk-1.3.1p7_2 on FreeBSD > 5.0-RELEASE. It seems that the SIGBUS is cause by line 311 of > j2sdk1.3.1/src/solaris/native/java/net/InetAddressImpl.c. After > inserting some debugging output, it turned out that the test > at line 308 should be > if (hp == NULL || hp == -1) { > instead of > if (hp == NULL) { > Of course this should be considered as a temporary workaround. I just looked at the code in question and it seems to mix int and struct hostent * with merry abandon. Yuck. I think a better fix is to change the prototype of copy_hostent on line 470 to static HOST_RETURN and change return (-1) to return (HOST_R_BAD) on line 504. I haven't tested this yet though. Comments? -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message