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

JDK1.3-C does not work with classes in zip file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      kestrel
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description



      Name: akC57697 Date: 05/06/99



      The JDK1.3-C does not work if CLASSPATH points to zip-file with classes.
      Gets SEGV under Solaris 2.5.1/2.6, "Illegal operation..." under Win32.

      ----------------------------------8-<-------------------------------
      public class Test {
          public static void main(String[] argv) {
              System.out.println("Hello, world!");
          }
      }
      ----------------------------------8-<-------------------------------

      The steps to reproduce:
       javac Test.java
       zip classes.zip Test.class
        adding: Test.class (deflated 31%)
       rm Test.class
       setenv CLASSPATH ./classes.zip
       java Test
      SIGFPE 8* arithmetic exception
          si_signo [8]: SIGFPE 8* arithmetic exception
          si_errno [0]: Error 0
          si_code [1]: FPE_INTDIV [addr: 0xEF62773C]

      stackpointer=effff010

      Full thread dump Classic VM (JDK-1.3-C, green threads):
          "Finalizer" (TID:0xebc98308, sys_thread_t:0x61450, state:CW) prio=8
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
          "Reference Handler" (TID:0xebc98398, sys_thread_t:0x5dce8, state:CW) prio=10
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:424)
      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
          "Signal dispatcher" (TID:0xebc983c8, sys_thread_t:0x58208, state:CW) prio=5
          "main" (TID:0xebc981c8, sys_thread_t:0x26760, state:R) prio=5
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
      at java.util.jar.JarFile.<init>(JarFile.java, Compiled Code)
      at java.util.jar.JarFile.<init>(JarFile.java, Compiled Code)
      at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath$2.run(URLClassPath.java, Compiled Code)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath.getResource(URLClassPath.java, Compiled Code)
      at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
      at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
      at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
      Monitor Cache Dump:
          sun.misc.Launcher$AppClassLoader@EBC994E0/EBCE0128: owner "main" (0x26760) 3 entries
          java.lang.ref.ReferenceQueue$Lock@EBC98320/EBCCE028: <unowned>
      Waiting to be notified:
      "Finalizer" (0x61450)
          java.lang.ref.Reference$Lock@EBC983A8/EBCCDB20: <unowned>
      Waiting to be notified:
      "Reference Handler" (0x5dce8)
      Registered Monitor Dump:
          PCMap lock: <unowned>
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: <unowned>
          System class loader lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Monitor cache lock: owner "main" (0x26760) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
      Waiting to be notified:
      "Signal dispatcher" (0x58208)
          Child death monitor: <unowned>
          I/O monitor: <unowned>
          Alarm monitor: <unowned>
      Waiting to be notified:
      <unknown thread> (0x2ba50)
          Thread queue lock: owner "main" (0x26760) 1 entry
          Monitor registry: owner "main" (0x26760) 1 entry

      SIGABRT 6* abort (generated by abort(3) routine)
          si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
          si_errno [0]: Error 0
          si_code [0]: SI_USER [pid: 9658, uid: 302]
      stackpointer=effff010

      Full thread dump Classic VM (JDK-1.3-C, green threads):
          "Finalizer" (TID:0xebc98308, sys_thread_t:0x61450, state:CW) prio=8
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
          "Reference Handler" (TID:0xebc98398, sys_thread_t:0x5dce8, state:CW) prio=10
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Object.java:424)
      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
          "Signal dispatcher" (TID:0xebc983c8, sys_thread_t:0x58208, state:CW) prio=5
          "main" (TID:0xebc981c8, sys_thread_t:0x26760, state:R) prio=5
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
      at java.util.jar.JarFile.<init>(JarFile.java, Compiled Code)
      at java.util.jar.JarFile.<init>(JarFile.java, Compiled Code)
      at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath$2.run(URLClassPath.java, Compiled Code)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java, Compiled Code)
      at sun.misc.URLClassPath.getResource(URLClassPath.java, Compiled Code)
      at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
      at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
      at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
      Monitor Cache Dump:
          sun.misc.Launcher$AppClassLoader@EBC994E0/EBCE0128: owner "main" (0x26760) 3 entries
          java.lang.ref.ReferenceQueue$Lock@EBC98320/EBCCE028: <unowned>
      Waiting to be notified:
      "Finalizer" (0x61450)
          java.lang.ref.Reference$Lock@EBC983A8/EBCCDB20: <unowned>
      Waiting to be notified:
      "Reference Handler" (0x5dce8)
      Registered Monitor Dump:
          PCMap lock: <unowned>
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: <unowned>
          System class loader lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Monitor cache lock: owner "main" (0x26760) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
      Waiting to be notified:
      "Signal dispatcher" (0x58208)
          Child death monitor: <unowned>
          I/O monitor: <unowned>
          Alarm monitor: <unowned>
      Waiting to be notified:
      <unknown thread> (0x2ba50)
          Thread queue lock: owner "main" (0x26760) 1 entry
          Monitor registry: owner "main" (0x26760) 1 entry

      Abort (core dumped)
       
      The previous builds work correctly:
       java Test
      Hello, world!
      java -fullversion
      java full version "JDK-1.3-B"

      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              knaghavisunw Kazem Naghavi (Inactive)
              Reporter:
              akuzminorcl Alexander Kuzmin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: