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

Crash reading from zip file with 1 entry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • tools
    • None
    • jar
    • kestrel
    • generic, sparc
    • generic, solaris_2.5.1, solaris_2.6
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: