Date: Sat, 25 Jan 2003 06:03:52 +1030 From: Greg Lewis <glewis@eyesbeyond.com> To: Robin Schilham <co9@xs4all.nl> Cc: freebsd-java@freebsd.org Subject: Re: jboss3 java core dump Message-ID: <20030125060352.A39692@misty.eyesbeyond.com> In-Reply-To: <3E3127D3.7030907@xs4all.nl>; from co9@xs4all.nl on Fri, Jan 24, 2003 at 12:47:31PM %2B0100 References: <list.freebsd.java#811472746.20030113124453@ua.fm> <3E3127D3.7030907@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030125060352.A39692>