Date: Sun, 7 Dec 2003 09:12:09 -0800 (PST) From: Nick Johnson <freebsd@spatula.net> To: freebsd-java@freebsd.org Subject: Re: fatal exception in 1.4.2-p5 Message-ID: <20031207085003.J24955@turing.morons.org> In-Reply-To: <20031206234011.Q24955@turing.morons.org> References: <20031206234011.Q24955@turing.morons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's a bit more information; when the fatal exception occurrs, the process starts chewing up a huge amount of CPU, but doing a thread dump on it reveals that none of the threads is actually doing anything. Also, it looks like getservent isn't threadsafe; libc_r does not provide its own implementation and getservent uses some static buffers... this in turn means that getaddrinfo isn't threadsafe. Indeed, the man page says as much under "BUGS". So either some locking needs to be added to /j2se/src/solaris/native/java/net/Inet6AddressImpl.c and net_util_md.c or getaddrinfo needs to be fixed to be threadsafe. I'd supply a patch to do the locking except I can't figure out a good place to init a mutex. Nick -- "The aptly-named morons.org is an obscenity-laced screed..." -- Robert P. Lockwood, Catholic League director of research Nick Johnson, version 2.1 http://web.morons.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031207085003.J24955>