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

java core dumps if apriori invalid CLASSPATH env variable is set

XMLWordPrintable

    • sparc
    • solaris_2.4

      the classpath option for javadoc doesn't override the
      env variable CLASSPATH and leads to core dump if the
      env variable CLASSPATH is set to an invalid value.


      setenv CLASSPATH /net/shimla/export/home/joe/classes/:/net/bigdoe/opt/jdk-beta-solaris2/classes

      /net/bigdoe/opt/jdk-beta2-solaris2/java/bin/javadoc -d "./doc/apidocs" -classpath ".:./classes:/net/bigdoe/opt/jdk-beta2-solaris2/java/lib/classes.zip:./neotest/" sunw.neotest.util
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x0]

      stackbase=EFFFF414, stackpointer=EFFFF0F8

      Full thread dump:
          "Finalizer thread" (TID:0xee1992f8, sys_thread_t:0xef490de0) prio=1
          "Async Garbage Collector" (TID:0xee199288, sys_thread_t:0xef4c0de0) prio=1
          "Idle thread" (TID:0xee199210, sys_thread_t:0xef4f0de0) prio=0
          "clock handler" (TID:0xee1990d0, sys_thread_t:0xef5b0de0) prio=11
          "main" (TID:0xee1990a0, sys_thread_t:0x665e8) prio=5 *current thread*
      java.io.FileInputStream.<init>(FileInputStream.java)
      java.io.FileInputStream.<init>(FileInputStream.java)
      sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:132)
      sun.tools.javadoc.Main.main(Main.java:201)
      Monitor Cache Dump:
      Registered Monitor Dump:
          Finalize me queue lock: unowned
          Thread queue lock: unowned
          Class lock: unowned
          Java stack lock: unowned
          Code rewrite lock: unowned
          Heap lock: unowned
          Has finalization queue lock: unowned
          Monitor IO lock: unowned
          Child death monitor: unowned
          Event monitor: unowned
          I/O monitor: unowned
          Alarm monitor: unowned
      Waiting to be notified:
      "clock handler"
          Sbrk lock: unowned
          Monitor cache lock: unowned
          Monitor registry: monitor owner: "main"
      Thread Alarm Q:
      ^CAbort - core dumped

      --- Mahesh

            fyellinsunw Frank Yellin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: