Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 09:42:43 -0800
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Li-Wen Hsu <lwhsu@freebsd.org>
Cc:        Steven Kreuzer <skreuzer@freebsd.org>, Steve Wills <swills@freebsd.org>, freebsd-java@freebsd.org
Subject:   Re: Java VM crashing when running Jenkins?
Message-ID:  <CAG=rPVdXh1GrcavvACJEfWjjWkMOy9ovjeLk4r7ufLJTCT7gng@mail.gmail.com>
In-Reply-To: <20140209171322.GA80586@FreeBSD.cs.nctu.edu.tw>
References:  <CAG=rPVd_yLKa1CMv0fZssz6wnb=Sgzev6ZZ0TreooVx-rUzEHQ@mail.gmail.com> <20140208012716.GA12873@mouf.net> <CAG=rPVeWU2t5FCX0%2Bh-%2BXi9EKOegCFYyrJKb2h33D0Eb=n-b=w@mail.gmail.com> <20140208082903.GA4621@FreeBSD.cs.nctu.edu.tw> <CAG=rPVdiqn-ToLGrVnt4rd14_eW7rTk1mj1iKu0jiBjFdBjL%2BQ@mail.gmail.com> <20140208222720.GA50395@mouf.net> <CAG=rPVe_-t1%2BUiLAZ2-hjGLVTNr9uEQYetxm3YJF93b5wX-XFQ@mail.gmail.com> <20140209171322.GA80586@FreeBSD.cs.nctu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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  <signal handler called>
#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 <return> to continue, or q <return> 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 <lwhsu@freebsd.org> 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 <swills@freebsd.org> 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 <lwhsu@FreeBSD.org>
> http://lwhsu.org
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVdXh1GrcavvACJEfWjjWkMOy9ovjeLk4r7ufLJTCT7gng>