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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.12, 4.0.1
    • 3.0.11, 4.0.0
    • Samples
    • None
    • 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)

      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.

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: