From owner-freebsd-java@FreeBSD.ORG Sat Oct 31 17:18:01 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4989E106566B for ; Sat, 31 Oct 2009 17:18:01 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id D26FA8FC19 for ; Sat, 31 Oct 2009 17:18:00 +0000 (UTC) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out2.tiscali.nl with esmtp (Exim) (envelope-from ) id 1N4HaR-00040V-Of; Sat, 31 Oct 2009 18:17:59 +0100 Received: from 82-170-177-25.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 7EDD413748; Sat, 31 Oct 2009 18:17:54 +0100 (CET) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "Patrick Mackinlay" References: <4AEB3720.2000301@spacesurfer.com> <4AEC6C66.9040802@spacesurfer.com> Date: Sat, 31 Oct 2009 18:17:54 +0100 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <4AEC6C66.9040802@spacesurfer.com> User-Agent: Opera Mail/10.00 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: freebsd-java@freebsd.org Subject: Re: jvm crash using eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Oct 2009 17:18:01 -0000 On Sat, 31 Oct 2009 17:57:10 +0100, Patrick Mackinlay =20 wrote: > The problem happens regardless of whether I compile the jdk with or > without ipv6 support, however I do have an IPv6 address as well as an > ipv4 one. I use subclipse-1.6.2, this is the only thing that I think > will use TCP/IP (does subclipse run the command line client or do the > connection itself?). The only other things that will use TCP/IP are the > unit tests, but eclipse will often crash before I have run any. > > The error is intermittent it can happen 10 times in 5 minutes or once a > day. It seems to be more stable if I turn off "Build automatically" > (which will presumably reduces the amount of concurrency), it also seem= s > to crash most often when opening or closing projects. However, it is so > intermittent that my observations could well be luck related. > > I have compiled my jdk with debug symbols and looking at the core dump > with gdb gives the following stack trace for the thread that bombs: > > (gdb) ba > #0 0x00000008007acd2c in thr_kill () from /lib/libc.so.7 > #1 0x000000080083c2bb in abort () from /lib/libc.so.7 > #2 0x0000000800fe2d69 in os::abort () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #3 0x00000008011175cf in VMError::report_and_die () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #4 0x0000000800fe618b in JVM_handle_bsd_signal () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #5 > #6 0x0000000800d0c724 in PhaseChaitin::gather_lrg_masks () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #7 0x0000000800d0e392 in PhaseChaitin::Register_Allocate () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #8 0x0000000800d5e303 in Compile::Code_Gen () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #9 0x0000000800d5f948 in Compile::Compile () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #10 0x0000000800cfac98 in C2Compiler::compile_method () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #11 0x0000000800d6377d in CompileBroker::invoke_compiler_on_method () > from /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #12 0x0000000800d64505 in CompileBroker::compiler_thread_loop () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #13 0x00000008010d6bad in JavaThread::thread_main_inner () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #14 0x0000000800fe53f6 in java_start () from > /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server/libjvm.so > #15 0x000000080064b4d1 in pthread_getprio () from /lib/libthr.so.3 > #16 0x0000000000000000 in ?? () > Cannot access memory at address 0x7ffffeef2000 > > > Looks like the signal happens in PhaseChaitin::gather_lrg_masks whateve= r > that is. > > Also note that tomcat6 is stable, but I do not load tomcat very much at > all (only ever has one occasional HTTP client, so no request =20 > concurrency). > > At the moment my jdk is compiled with ipv6 support, I am going to try > compiling it again with this option off. I will use a > portupgrade -fR eclipse > so that all upstream dependencies are also recompiled. Somethings happens in the compiler. Does it happen with all versions? =20 Diablo/jdk16/openjdk6? And you can run java in interpreter mode, but will= =20 be little bit slow I guess. Ronald.