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

Crash reading from zip file with 1 entry

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jar
    • Resolved In Build:
      kestrel
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.5.1, solaris_2.6
    • Verification:
      Verified

      Description

      If I place a single class file in a zip archive and run the java launcher on that class, it crashes. This is a regression with respect to 1.2.2.

      For example (note that trivial.zip is attached to this bug report):

      - this works fine

      /home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -version
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-U, green threads, sunwjit)
      /home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -classpath trivial.zip Trivial
      Hello, World!

      - ... but this crashes

      /home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -version
      java version "1.3"
      Classic VM (build JDK-1.3-E, green threads, sunwjit)
      /home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -classpath trivial.zip Trivial
      SIGFPE 8* arithmetic exception
          si_signo [8]: SIGFPE 8* arithmetic exception
          si_errno [0]: Error 0
          si_code [1]: FPE_INTDIV [addr: 0xEF62842C]

              stackpointer=effff2b8

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zlisunw Zhenghua Li (Inactive)
                Reporter:
                ghirschsunw Gordon Hirsch (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: