Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-786

TestTerminal tries to close System.in causing a hang on HP-UX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR10
    • None
    • CLI, Patching, Test Suite
    • None
    • HP-UX eph-04 B.11.31 U ia64

      java version "1.8.0.01-hp-ux"
      Java(TM) SE Runtime Environment (build 1.8.0.01-hp-ux-rc2)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

    • Hide

      run org.jboss.as.patching.cli.PatchInspectUnitTestCase on HP-UX, it will hang forever

      Show
      run org.jboss.as.patching.cli.PatchInspectUnitTestCase on HP-UX, it will hang forever

      This line: https://github.com/aeshell/aesh/blob/0.61/src/main/java/org/jboss/aesh/terminal/TestTerminal.java#L103

      In TestTerminal, in == System.in, therefore Aesh tries to close System.in.
      This seems to cause a infinite wait on HP JDK, while it doesn't do any harm on other JDKs. It causes some tests in wildfly-core to hang when running on HP-UX. I think that there should be a check whether in == System.in, and if yes, don't close it.

              remerson@redhat.com Ryan Emerson
              jmartisk@redhat.com Jan Martiska
              Marek Kopecky Marek Kopecky
              Marek Kopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: