JVM crash when using Groovy with InvokeDynamic support

Questions about YourKit Java Profiler
Post Reply
nicoulaj
Posts: 5
Joined: Wed May 26, 2010 2:01 pm

JVM crash when using Groovy with InvokeDynamic support

Post by nicoulaj »

When trying to profile an application running Groovy with InvokeDynamic, profling with Yourkit makes the application crash:

Code: Select all

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00007f132b9f3bcc, pid=496, tid=139720312985344
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  0x00007f132b9f3bcc
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/jnicoulaud/workspace/Inscale-advancedModel/hs_err_pid496.log
Compiled method (nm)   85549 4266     n       sun.misc.Unsafe::getObject (native)
 total in heap  [0x00007f13551fb890,0x00007f13551fbc28] = 920
 relocation     [0x00007f13551fb9b0,0x00007f13551fba08] = 88
 main code      [0x00007f13551fba20,0x00007f13551fbc28] = 520
Compiled method (c2)   85549 5253             java.lang.invoke.LambdaForm$NamedFunction::invoke_L_L (28 bytes)
 total in heap  [0x00007f135537c310,0x00007f135537c618] = 776
 relocation     [0x00007f135537c430,0x00007f135537c458] = 40
 main code      [0x00007f135537c460,0x00007f135537c500] = 160
 stub code      [0x00007f135537c500,0x00007f135537c538] = 56
 oops           [0x00007f135537c538,0x00007f135537c540] = 8
 scopes data    [0x00007f135537c540,0x00007f135537c588] = 72
 scopes pcs     [0x00007f135537c588,0x00007f135537c5e8] = 96
 dependencies   [0x00007f135537c5e8,0x00007f135537c5f0] = 8
 handler table  [0x00007f135537c5f0,0x00007f135537c608] = 24
 nul chk table  [0x00007f135537c608,0x00007f135537c618] = 16
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
Does Yourkit support InvokeDynamic ?

JVM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03)
Yourkit version: 2013 build 13072
Groovy version: 2.2.1-indy
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: JVM crash when using Groovy with InvokeDynamic support

Post by Anton Katilin »

Hi,
Does Yourkit support InvokeDynamic?
Yes.

Could you please provide:

- the full JVM crash log hs_err_<pid>.log
- the profiler agent log file ~/.yjp/log/<session name>-<pid>.log
nicoulaj
Posts: 5
Joined: Wed May 26, 2010 2:01 pm

Re: JVM crash when using Groovy with InvokeDynamic support

Post by nicoulaj »

Hi, here is an archive with a few logs: https://dl.dropboxusercontent.com/u/629 ... t-indy.zip

On Yourkit 2014 EAP, it does not seem to crash when starting the application with the agent, only when attaching, but I may be wrong. On previous versions, it always crashes.
nicoulaj
Posts: 5
Joined: Wed May 26, 2010 2:01 pm

Re: JVM crash when using Groovy with InvokeDynamic support

Post by nicoulaj »

nicoulaj wrote:Hi, here is an archive with a few logs: https://dl.dropboxusercontent.com/u/629 ... t-indy.zip
Note: as you can see, the logs are generated using an obfuscated version of my application (using ProGuard), but it crashes with the same kind of output without obfuscation.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: JVM crash when using Groovy with InvokeDynamic support

Post by Anton Katilin »

Hi,

Thank you for the logs.

We didn't manage to reproduce the problem locally, but have some ideas on why it might happen.

Could you please provide source code of "console.IntegTestCommands" and "console.TestCommands". If you can't share them in the forum, could you please email them to [email protected]

Could you please check whether adding JVM option -XX:-UseSplitVerifier solves the problem.

Best regards,
Anton
Post Reply