Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Oct 2009 16:57:10 +0000
From:      Patrick Mackinlay <patrick@spacesurfer.com>
To:        Ronald Klop <ronald-freebsd8@klop.yi.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: jvm crash using eclipse
Message-ID:  <4AEC6C66.9040802@spacesurfer.com>
In-Reply-To: <op.u2nv2xgw8527sy@82-170-177-25.ip.telfort.nl>
References:  <4AEB3720.2000301@spacesurfer.com> <op.u2nv2xgw8527sy@82-170-177-25.ip.telfort.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9974404EA4D02F034F4DBD75
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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 seems
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  <signal handler called>
#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 whatever
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 concurrency)=
=2E

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.

Patrick

Ronald Klop wrote:
> On Fri, 30 Oct 2009 19:57:36 +0100, Patrick Mackinlay
> <patrick@spacesurfer.com> wrote:
>=20
>> Hello,
>>
>> I am still getting jvm crashes when using eclipse on my amd64 machine.=
 I
>> reported this some time ago. I have attached a new crash dump. My syst=
em
>> has the following packages on it:
>> diablo-jdk-1.6.0.07.02_6
>> jdk-1.6.0.3p4_12
>> eclipse-3.4.2
>>
>> regards,
>> Patrick
>>
>=20
> Hi, is this when Eclipse tries to do something with TCP/IP? Try
> disabling IPv6. You can use a commandline option for java or recompile
> jdk16. It solved my problem of a crashing Eclipse. But I don't know if
> you are having the same problems.
> Do you use any plugins in Eclipse?
>=20
> Ronald.

--=20
Patrick Mackinlay                              patrick@spacesurfer.com
http://patrick.spacesurfer.com/                    tel: +44.7050699851
Yahoo messenger: patrick00_uk                      fax: +44.7050699852
SpaceSurfer Limited                           http://www.spacereg.com/


--------------enig9974404EA4D02F034F4DBD75
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFK7GxsD97IpyzY3RIRArqHAJ0d5UYcqFxgK9WiCiFpgeM8qmF5LgCeJ0oN
xYx5LiIpSxHUZEJZic/6tck=
=ob0b
-----END PGP SIGNATURE-----

--------------enig9974404EA4D02F034F4DBD75--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AEC6C66.9040802>