From owner-freebsd-java@FreeBSD.ORG Sun Feb 9 17:42:47 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEF44569; Sun, 9 Feb 2014 17:42:46 +0000 (UTC) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BAB1317A4; Sun, 9 Feb 2014 17:42:45 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ec20so4183309lab.9 for ; Sun, 09 Feb 2014 09:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=unVRqPGb21K3xIZKpH6iza9/1wfQV9MlOGs28Fwwr6k=; b=YhqtZtJOfNQs786p/HBgf0c8ugjzIZZu4lBWMzdyA+t7DOwEThi0VZXn6WPSCmOTx/ AKTjNnW3gl1Tno1cPZwax1IK4JPoR5O9NP4SzgtNi+WCqa5FUvnMMESBlxHnscBMWCWw ugi8GTLkWlvcjXa0dBAd7UI4gmNknkCe94ioWnm3mctyj2X9zekkDphZMAT9ef4rfwHH QzaqAsO5rKKLsZI3vquot5UsXt5Vfegmz9bGvARXwSK8DfeqFyr77253FvD4KzGiyRYC YBO0Ob6H9VZFav2jjwd/ldFvO9L3RGeE5apy+j15UmtM75E7xfOnUfQnmZqw3IOQvpp5 tJmg== MIME-Version: 1.0 X-Received: by 10.153.7.137 with SMTP id dc9mr18902434lad.25.1391967763786; Sun, 09 Feb 2014 09:42:43 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.30.211 with HTTP; Sun, 9 Feb 2014 09:42:43 -0800 (PST) In-Reply-To: <20140209171322.GA80586@FreeBSD.cs.nctu.edu.tw> References: <20140208012716.GA12873@mouf.net> <20140208082903.GA4621@FreeBSD.cs.nctu.edu.tw> <20140208222720.GA50395@mouf.net> <20140209171322.GA80586@FreeBSD.cs.nctu.edu.tw> Date: Sun, 9 Feb 2014 09:42:43 -0800 X-Google-Sender-Auth: q99IyROTU8ZePLhBxFex98vB3Mk Message-ID: Subject: Re: Java VM crashing when running Jenkins? From: Craig Rodrigues To: Li-Wen Hsu Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Steven Kreuzer , Steve Wills , freebsd-java@freebsd.org 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: Sun, 09 Feb 2014 17:42:47 -0000 Hi, I am on 10.0-R. Yes, I set $jenkins_java_home in /etc/rc.conf to switch to openjdk7. I did an experiment of switching back to openjdk6, and got a different crash # gdb /usr/local/openjdk6/bin/java java.core (gdb) where #0 0x0000000800ccb26a in thr_kill () from /lib/libc.so.7 #1 0x0000000800d92ac9 in abort () from /lib/libc.so.7 #2 0x0000000801e9b161 in os::abort () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #3 0x0000000801fbf709 in VMError::report_and_die () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #4 0x0000000801e9fedc in JVM_handle_bsd_signal () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #5 0x0000000800a493f6 in swapcontext () from /lib/libthr.so.3 #6 0x0000000800a48ff3 in sigaction () from /lib/libthr.so.3 #7 #8 0x0000000801e83186 in Node::out_grow () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #9 0x0000000801ef39e9 in PhaseChaitin::Split () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #10 0x0000000801b3956f in PhaseChaitin::Register_Allocate () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #11 0x0000000801b98c42 in Compile::Code_Gen () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #12 0x0000000801b97198 in Compile::Compile () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #13 0x0000000801b26d56 in C2Compiler::compile_method () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so ---Type to continue, or q to quit--- #14 0x0000000801ba109c in CompileBroker::invoke_compiler_on_method () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #15 0x0000000801ba08d6 in CompileBroker::compiler_thread_loop () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #16 0x0000000801f802e1 in JavaThread::thread_main_inner () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #17 0x0000000801e9ab40 in java_start () from /usr/local/openjdk6/jre/lib/amd64/server/libjvm.so #18 0x0000000800a444a4 in pthread_create () from /lib/libthr.so.3 #19 0x0000000000000000 in ?? () The crash doesn't happen right away after the startup of Jenkins. I'm not sure when it happens , maybe when it is about to do a job. -- Craig On Sun, Feb 9, 2014 at 9:13 AM, Li-Wen Hsu wrote: > On Sat, Feb 08, 2014 at 14:55:47 -0800, Craig Rodrigues wrote: > > On Sat, Feb 8, 2014 at 2:27 PM, Steve Wills wrote: > > > > > Odd, that same version works fine for me, but on 11-CURRENT r260369. I > do > > > have > > > the patch for PR ports/173603 applies, but that shouldn't make any > > > difference. > > > Perhaps your jdk was built for a slightly different kernel/world than > you > > > are > > > running? > > > > > > > Hi, > > > > I installed FreeBSD 10.0-RELEASE using freebsd-update, > > and I installed openjdk and jenkins using "pkg" > > so I didn't compile anything myself. > > I just did a fresh install of 10.0-R, installed openjdk and jenkins using > pkg, then startd jenkins, everything seems fine at this point. Does the > java binary crash as soon as you start jenkins on your side or when it > runs a while, or starts executing jobs? > > BTW, the default dependency of jenkins is openjdk6, have you changed > $jenkins_java_home ? > > Li-Wen > > -- > Li-Wen Hsu > http://lwhsu.org >