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

ZipFile(String fname) with fname null causes a segv

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.2.0
    • tools
    • None
    • jar
    • sparc
    • solaris_2.6

    Description

      java.util.zip.ZipFile(String fname) with the filename being null causes
      a segmentation violation, core dump.

      In JDK 1.1.x get the proper NullPointerException thrown.

      java.lang.NullPointerException
      at java.io.RandomAccessFile.<init>(RandomAccessFile.java)
      at java.util.zip.ZipFile.<init>(ZipFile.java)

      In JDK 1.2.x get the below error:

      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0x0]

      stackpointer=efffe960

      Full thread dump Classic VM (JDK-1.2.2-B, green threads):
          "Finalizer" (TID:0xebc98320, sys_thread_t:0x693f0, 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:0xebc983b0, sys_thread_t:0x64f40, 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:0xebc983e0, sys_thread_t:0x5e160, state:CW) prio=5
          "main" (TID:0xebc981e0, sys_thread_t:0x26b80, state:R) prio=5
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(Compiled Code)
      at CtorTests_1.Test01(Compiled Code)
      at CtorTests_1.main(Compiled Code)
      Monitor Cache Dump:
          java.lang.ref.ReferenceQueue$Lock@EBC98338/EBCCE028: <unowned>
      Waiting to be notified:
      "Finalizer" (0x693f0)
          java.lang.ref.Reference$Lock@EBC983C0/EBCCDB20: <unowned>
      Waiting to be notified:
      "Reference Handler" (0x64f40)
      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" (0x26b80) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
      Waiting to be notified:
      "Signal dispatcher" (0x5e160)
          Child death monitor: <unowned>
          I/O monitor: <unowned>
          Alarm monitor: <unowned>
      Waiting to be notified:
      <unknown thread> (0x2be70)
          Thread queue lock: owner "main" (0x26b80) 1 entry
          Monitor registry: owner "main" (0x26b80) 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: 15181, uid: 24381]
      stackpointer=efffe960

      Full thread dump Classic VM (JDK-1.2.2-B, green threads):
          "Finalizer" (TID:0xebc98320, sys_thread_t:0x693f0, 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:0xebc983b0, sys_thread_t:0x64f40, 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:0xebc983e0, sys_thread_t:0x5e160, state:CW) prio=5
          "main" (TID:0xebc981e0, sys_thread_t:0x26b80, state:R) prio=5
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(Compiled Code)
      at CtorTests_1.Test01(Compiled Code)
      at CtorTests_1.main(Compiled Code)
      Monitor Cache Dump:
          java.lang.ref.ReferenceQueue$Lock@EBC98338/EBCCE028: <unowned>
      Waiting to be notified:
      "Finalizer" (0x693f0)
          java.lang.ref.Reference$Lock@EBC983C0/EBCCDB20: <unowned>
      Waiting to be notified:
      "Reference Handler" (0x64f40)
      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" (0x26b80) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
      Waiting to be notified:
      "Signal dispatcher" (0x5e160)
          Child death monitor: <unowned>
          I/O monitor: <unowned>
          Alarm monitor: <unowned>
      Waiting to be notified:
      <unknown thread> (0x2be70)
          Thread queue lock: owner "main" (0x26b80) 1 entry
          Monitor registry: owner "main" (0x26b80) 1 entry

      Abort (core dumped)


      Attachments

        Issue Links

          Activity

            People

              zlisunw Zhenghua Li (Inactive)
              mcolburnsunw Michael Colburn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: