Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-22

AT SYNCHRONIZE trigger injection breaks Control Flow Graph lookup of monitorenter lock object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.3
    • 1.0.2
    • Trigger Injection
    • None

    Description

      When an AT SYNCHRONIZE trigger sequence is injected into a target method it directly precedes the monitorenter instruction which opens the synchronized block. This intercedes between the monitorenter instruction and the preceding astore instruction which saves the lock object in a local variable slot. The CFG analysis expects to find this instruction during code analysis. Instead it finds an invokestatic which represents the call into the rule system. It should work backwards through the basic block until it finds an astore instruction. This is safe since the trigger sequences do not employ astore and there should always be an astore precedingg the first injected trigger sequence.

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: