JDK7 SIGSEGV with G1 garbage collector

Bengt Rutisson bengt.rutisson at oracle.com
Wed Aug 21 06:28:03 PDT 2013

Hi again,

This seems to be a bug in the C2 compiler. I've filed JDK-8023472 to 
track this. I'll come back with a URL once this bug is publicly available.

Thanks again for the great bug report!

On 8/21/13 8:52 AM, Bengt Rutisson wrote:
> Hi Punya,
> Thank you for the excellent bug report!
> I cloned the test case and can reproduce the issue both with 7u25 
> build 15 (that you used) and also with the latest build of JDK8.
> I'll dig some more into what is going on and file a bug. Will ping 
> this thread when I have more information.
> Bengt
> On 8/21/13 12:05 AM, Punya Biswal wrote:
>> [Apologies if this message is delivered twice; I sent it once before I
>> realized this was a members-only list.]
>> We're running into a JVM segfault when using a third-party library
>> (Elasticsearch) alongside the G1 garbage collector. This issue has been
>> reported elsewhere (for example,
>> https://jira.terracotta.org/jira/browse/CDV-1651) and might already 
>> be on
>> the OpenJDK roadmap. It's usually associated with the use of GNU Trove.
>> We've been able to reduce the amount of code required to reproduce the
>> crash to a short program that reliably crashes on my computer
>> (a MacBook Pro) using only JDK core classes. I've also included the
>> hs_err_* diagnostic file; both are at
>> https://gist.github.com/punya/6287943 .
>> Does this reduced repro help understand what's going on?
>> A few points of interest:
>> * running with -XX:+UseG1GC -Dcount=100000 always crashes
>> * running with -XX:+UseG1GC -Xint -Dcount=100000 never crashes
>> * running with -Xint -Dcount=100000 never crashes
>> Using -ea and/or -server don't any effect these results. With regard to
>> JVM versions,
>> * it never crashes on JDK 6u51
>> * it crashes on JDK 7u25 and JDK 7u43 (prerelease)
>> * it never crashes on JDK 8 (prerelease)
>> I'm happy to provide a link to a core dump if that helps.
>> -- 
>> Punya Biswal
>> Palantir | Engineer
>> pbiswal at palantir.com | 206 605 2397

More information about the hotspot-dev mailing list