From owner-freebsd-java@FreeBSD.ORG Mon Feb 10 18:47:43 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 0BFDCD2A; Mon, 10 Feb 2014 18:47:42 +0000 (UTC) Message-ID: <52F91ECE.6060008@FreeBSD.org> Date: Mon, 10 Feb 2014 13:47:42 -0500 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Craig Rodrigues , Li-Wen Hsu , Steve Wills , freebsd-java@freebsd.org Subject: Re: Java VM crashing when running Jenkins? References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Steven Kreuzer X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 18:47:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-02-07 20:04:17 -0500, Craig Rodrigues wrote: > Li-Wen and SteveW, > > I am working with Steve Kreuzer to set up Jenkins inside the > FreeBSD cluster. > > We are running a FreeBSD-10 system: > > FreeBSD 10.0-RC4 FreeBSD 10.0-RC4 #0 r260130: Tue Dec 31 17:10:01 > UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC > amd64 > > I have these ports: > > bootstrap-openjdk-r333271 Oracle's Java 6 virtual machine > release under the GPL v2 jenkins-1.549 Open-source > continuous integration server openjdk6-b30,1 > Oracle's Java 6 virtual machine release under the GPL v2 > > > > Once in a while, the JVM seems to crash: > > ================================================================ > Feb 8, 2014 12:29:05 AM hudson.triggers.SCMTrigger$Runner run INFO: > SCM changes detected in FreeBSD_HEAD. Triggering #89 # # A fatal > error has been detected by the Java Runtime Environment: # # > SIGSEGV (0xb) at pc=0x0000000801ca4abc, pid=1572, tid=100200 # # > JRE version: 6.0_32-b30 # Java VM: OpenJDK 64-Bit Server VM > (23.25-b01 mixed mode bsd-amd64 compressed oops) # Problematic > frame: # V [libjvm.so+0x4a4abc] AsyncGetCallTrace+0x71ecc # # > Core dump written. Default location: /usr/local/jenkins/core or > core.1572 # # An error report file with more information is saved > as: # /usr/local/jenkins/hs_err_pid1572.log # # If you would like > to submit a bug report, please visit: # > http://bugreport.sun.com/bugreport/crash.jsp # > ================================================================ > Any idea how to solve the problem? Unfortunately, we know both java/openjdk6 and java/openjdk7 are unusable for some environment. Basically, C2 (server JIT compliler) crashes with SIGSEGV/SIGBUS at random addresses. It is not clear why it only happens on certain platforms, however. > I've been running Jenkins on a FreeBSD 9 system and haven't had > this problem before. It is known that disabling background compilation helps, i. e., "-Xbatch". For i386 case, you can also use C1 (client JIT compiler), i. e., "-client" Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJS+R7OAAoJEHyflib82/FGBQYIAImUMopIci1B3deEYkOJJLkS quZjNt8RRn+YD+VaHGNQhH9+FQoMrOs4wDTqK3OtcyjgXwrUu918sUKEWZcefY0l YglQ0GGOBTVHplWDwVnxMK5MR+14coFhXknvjY/ghXH4qFSpz7Isf+wu6k32Nksr 3H+gxt/i0HtsScMlJmCdTDIAPrrhWgRhMJYbybET5RUkl5tKjdUPRGhwlQlguG8T yQIKw6J09JML3kXB9adpJKxEqEVt1dzpHsV0lC3BkZI6str1tYZTZSKrAfhIdpsR 3K+cmg97fcU/ut1R7i5/vUsOvVdV1tUGCqhp2Q2/yWkpXvfcd8RdRkDWvJ1I3r0= =tpcq -----END PGP SIGNATURE-----