Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-7364

Target JVM Crashes when events are re-injected using JMC Agent

    XMLWordPrintable

Details

    Description

      Steps to reproduce the issue

      Setup

      1. Build the JMC agent

      Steps

      1. Run  InstrumentedClass.java using JDK 11 with VM Argument --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
      2. From JMC, Import events.xml (Window -> Agent Preset Manager) 
      3. From JMC - JVM Browser -> Open JMC Agent Plugin window
        1. Browse agent.jar built as part of the setup above
        2. Browse events.xml
        3. Start Agent Plugin
      4. perform a flight recording of InstrumentedClass and verify from the resulting JFR, that the injected events are available in the JFR 
      5. From the agent plugin page, click on load a preset ( ) and select the events.xml (No difference to the event definitions in the XML, this could be a negative scenario as well. but it can be extrapolated as probing from multiple JVM connections)
      6. JMC agent attempts to re-inject the events to the running JVM and it crashes.

      Attached are 

      1. Core dump of target JVM (ie InstrumentedClass) : hs_err_pid48451.log
      2. Terminal Log for InstrumentedClass : TerminalOutput.log
      3. JMC Log : JMC.log

       

      Attachments

        1. events.xml
          1 kB
        2. hs_err_pid48451.log
          103 kB
        3. image-2021-07-27-16-19-52-966.png
          image-2021-07-27-16-19-52-966.png
          6 kB
        4. InstrumentedClass.java
          0.6 kB
        5. JMC.log
          37 kB
        6. TerminalOutput.log
          3 kB

        Activity

          People

            Unassigned Unassigned
            bbanathur Bipin Banathur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: