Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8175000

jexec fails to execute simple helloworld.jar

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b160
    • Verification:
      Verified

      Backports

        Description

        jdk9 and jdk10 fail to execute a simple hello-world jar with jexec :

        jdk9/images/jdk/lib/jexec /java_test/hellojar/helloworld.jar
        invalid file (bad magic number): Exec format error

        While it works with jdk7 :

        jdk7/lib/jexec /java_test/hellojar/helloworld.jar
        Hello world from a jar file


        It seems change "8156478: 3 Buffer overrun defect groups in jexec.c " which changed jexec.c caused
        the issue in jdk9/10.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mbaesken Matthias Baesken
                  Reporter:
                  mbaesken Matthias Baesken
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: