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

ThreadHistoryMonitorHelper does not shutdown executor which can lead to the program hangs

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.11, 4.0.0
    • Fix Version/s: 3.0.12, 4.0.1
    • Component/s: Samples
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      git clone https://github.com/ochaloup/byteman-workshop.git
      setup.sh # or setup variables BYTEMAN_HOME and BYTEMAN_JAR
      cd task5
      mvn install
      java -javaagent:$BYTEMAN_JAR=script:./ThreadMonitorHistory.btm,boot:/home/ochaloup/.m2/repository/org/jboss/byteman/byteman-sample/4.0.0/byteman-sample-4.0.0.jar,boot:$BYTEMAN_JAR -cp target/byteman-workshop-task5-1.0.0-SNAPSHOT.jar -Dorg.jboss.byteman.transform.all org.jboss.btm.workshop.Task5Main
      

      you can observe hanging program (Byteman 4.0.0)

      Show
      git clone https: //github.com/ochaloup/byteman-workshop.git setup.sh # or setup variables BYTEMAN_HOME and BYTEMAN_JAR cd task5 mvn install java -javaagent:$BYTEMAN_JAR=script:./ThreadMonitorHistory.btm,boot:/home/ochaloup/.m2/repository/org/jboss/byteman/byteman-sample/4.0.0/byteman-sample-4.0.0.jar,boot:$BYTEMAN_JAR -cp target/byteman-workshop-task5-1.0.0-SNAPSHOT.jar -Dorg.jboss.byteman.transform.all org.jboss.btm.workshop.Task5Main you can observe hanging program (Byteman 4.0.0)

      Description

      The helper should shutdown the scheduled executor when all features are finished for not hanging. Tested that's a trouble for case of calling the method writeAllEventsToFile with argument 0.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ochaloup Ondrej Chaloupka
                Reporter:
                ochaloup Ondrej Chaloupka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: