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

launching Java2Demo without having to preset JAVA_FONTS gets a segv

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Verified

      Description

      Build : java full version "JDK-1.2fcs-I"
      app : Java2Demo /usr/local/java/jdk1.2fcs/solaris/demo/jfc/Java2D
      Machine : name:mipmap hw:sun4u
      OS : SunOS 5.6
      bit depth : 24bit

      cmdline : no parameters.

      Without having the JAVA_FONTS set to a specific directory, simply launching Java2Demo causes a segv.

      mipmap:/net/mizu/usr/re/jdk1.2/jdk1.2/solaris/demo/jfc/Java2D 83 % java Java2Demo
      Assertion failed: fUseCount > 0, file ../../../../src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp, line 306
      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: 9974, uid: 81727]
              stackpointer=efffd3a4

      Full thread dump Classic VM (JDK-1.2fcs-I, green threads):
          "Image Animator 3" (TID:0xebcc4fe8, sys_thread_t:0x6fda18, state:R) prio=3
              at java.awt.MediaTracker.setDone(Compiled Code)
              at java.awt.MediaEntry.setStatus(Compiled Code)
              at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
              at sun.awt.image.ImageWatched.newInfo(Compiled Code)
              at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
              at sun.awt.image.ImageDecoder.imageComplete(Compiled Code)
              at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
              at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
              at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
              at sun.awt.image.ImageFetcher.run(Compiled Code)
          "Ellipses Demo" (TID:0xebc93428, sys_thread_t:0x6df488, state:R) prio=1
          "BezierAnim Demo" (TID:0xebc93240, sys_thread_t:0x6df350, state:R) prio=1
          "Arcs Demo" (TID:0xebc932d8, sys_thread_t:0x6eedc0, state:R) prio=1
          "Image Fetcher 2" (TID:0xebcc6f20, sys_thread_t:0x6b4bc0, state:R) prio=3
              at java.lang.Thread.isInterrupted(Native Method)
              at java.lang.Thread.interrupted(Compiled Code)
              at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
              at sun.awt.image.ImageFetcher.run(Compiled Code)
          "PerformanceMonitor" (TID:0xebcc4018, sys_thread_t:0x698040, state:R) prio=1
          "MemoryMonitor" (TID:0xebcc3bd8, sys_thread_t:0x69a290, state:R) prio=1
          "AWT-Finalizer" (TID:0xebcbfcc0, sys_thread_t:0x5fe388, state:CW) prio=9
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.AWTFinalizer.run(Compiled Code)
          "TimerQueue" (TID:0xebcbd768, sys_thread_t:0x5b3b78, state:CW) prio=5
              at java.lang.Object.wait(Native Method)
              at javax.swing.TimerQueue.run(Compiled Code)
              at java.lang.Thread.run(Compiled Code)
          "Screen Updater" (TID:0xebcae6f0, sys_thread_t:0x48adc8, state:CW) prio=4
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.ScreenUpdater.nextEntry(Compiled Code)
              at sun.awt.ScreenUpdater.run(Compiled Code)
          "AWT-Motif" (TID:0xebcb0278, sys_thread_t:0x328e78, state:R) prio=5
              at sun.awt.motif.MToolkit.run(Native Method)
              at java.lang.Thread.run(Compiled Code)
          "SunToolkit.PostEventQueue-0" (TID:0xebcb0128, sys_thread_t:0x2f31a8, state:CW) prio=5
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.PostEventQueue.run(Compiled Code)
          "AWT-EventQueue-0" (TID:0xebcb0600, sys_thread_t:0x2f3070, state:CW) prio=6
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at java.awt.EventQueue.getNextEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
          "Finalizer" (TID:0xebc98320, sys_thread_t:0x68a88, state:CW) prio=8
              at java.lang.Object.wait(Native Method)
              at java.lang.ref.ReferenceQueue.remove(Compiled Code)
              at java.lang.ref.ReferenceQueue.remove(Compiled Code)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
          "Reference Handler" (TID:0xebc983b0, sys_thread_t:0x645d8, state:CW) prio=10
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:209)
          "Signal dispatcher" (TID:0xebc983e0, sys_thread_t:0x5d838, state:CW) prio=5
          "main" (TID:0xebc981e0, sys_thread_t:0x28c58, state:R) prio=5
              at sun.awt.font.NativeFontWrapper.canDisplay(Native Method)
              at java.awt.Font.canDisplay(Compiled Code)
              at java.awt.Font.canDisplayUpTo(Compiled Code)
              at java.awt.Font.canDisplayUpTo(Compiled Code)
              at demos.Fonts.AllFonts.<init>(Compiled Code)
              at java.lang.Class.newInstance(Native Method)
              at CanvasPanel.<init>(Compiled Code)
              at TheLayout.<init>(Compiled Code)
              at Java2Demo.<init>(Compiled Code)
              at Java2Demo.main(Compiled Code)
      Monitor Cache Dump:
          sun.awt.AWTFinalizer@EBCBFCC0/EBD32158: <unowned>
              Waiting to be notified:
                  "AWT-Finalizer" (0x5fe388)
          java.lang.ref.ReferenceQueue$Lock@EBC98338/EBCCDD58: <unowned>
              Waiting to be notified:
                  "Finalizer" (0x68a88)
          java.awt.EventQueue@EBCB05A0/EBD54008: <unowned>
              Waiting to be notified:
                  "AWT-EventQueue-0" (0x2f3070)
          java.lang.Class@EBCA6630/EBD0D630: owner "main" (0x28c58) 1 entry
          javax.swing.TimerQueue@EBCBD790/EBE964E8: <unowned>
              Waiting to be notified:
                  "TimerQueue" (0x5b3b78)
          java.lang.ref.Reference$Lock@EBC983C0/EBCCD898: <unowned>
              Waiting to be notified:
                  "Reference Handler" (0x645d8)
          sun.awt.PostEventQueue@EBCB0128/EBD542F8: <unowned>
              Waiting to be notified:
                  "SunToolkit.PostEventQueue-0" (0x2f31a8)
          sun.awt.ScreenUpdater@EBCAE6F0/EBD73600: <unowned>
              Waiting to be notified:
                  "Screen Updater" (0x48adc8)
      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" (0x28c58) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
              Waiting to be notified:
                  "Signal dispatcher" (0x5d838)
          Child death monitor: <unowned>
          I/O monitor: owner "AWT-Motif" (0x328e78) 1 entry
          Alarm monitor: <unowned>
              Waiting to be notified:
                  <unknown thread> (0x2bb30)
          Thread queue lock: owner "main" (0x28c58) 1 entry
          Monitor registry: owner "main" (0x28c58) 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: 9974, uid: 81727]
              stackpointer=efffd3a4

      Full thread dump Classic VM (JDK-1.2fcs-I, green threads):
          "Image Animator 3" (TID:0xebcc4fe8, sys_thread_t:0x6fda18, state:R) prio=3
              at java.awt.MediaTracker.setDone(Compiled Code)
              at java.awt.MediaEntry.setStatus(Compiled Code)
              at java.awt.ImageMediaEntry.imageUpdate(Compiled Code)
              at sun.awt.image.ImageWatched.newInfo(Compiled Code)
              at sun.awt.image.ImageRepresentation.imageComplete(Compiled Code)
              at sun.awt.image.ImageDecoder.imageComplete(Compiled Code)
              at sun.awt.image.GifImageDecoder.produceImage(Compiled Code)
              at sun.awt.image.InputStreamImageSource.doFetch(Compiled Code)
              at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
              at sun.awt.image.ImageFetcher.run(Compiled Code)
          "Ellipses Demo" (TID:0xebc93428, sys_thread_t:0x6df488, state:R) prio=1
          "BezierAnim Demo" (TID:0xebc93240, sys_thread_t:0x6df350, state:R) prio=1
          "Arcs Demo" (TID:0xebc932d8, sys_thread_t:0x6eedc0, state:R) prio=1
          "Image Fetcher 2" (TID:0xebcc6f20, sys_thread_t:0x6b4bc0, state:R) prio=3
              at java.lang.Thread.isInterrupted(Native Method)
              at java.lang.Thread.interrupted(Compiled Code)
              at sun.awt.image.ImageFetcher.fetchloop(Compiled Code)
              at sun.awt.image.ImageFetcher.run(Compiled Code)
          "PerformanceMonitor" (TID:0xebcc4018, sys_thread_t:0x698040, state:R) prio=1
          "MemoryMonitor" (TID:0xebcc3bd8, sys_thread_t:0x69a290, state:R) prio=1
          "AWT-Finalizer" (TID:0xebcbfcc0, sys_thread_t:0x5fe388, state:CW) prio=9
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.AWTFinalizer.run(Compiled Code)
          "TimerQueue" (TID:0xebcbd768, sys_thread_t:0x5b3b78, state:CW) prio=5
              at java.lang.Object.wait(Native Method)
              at javax.swing.TimerQueue.run(Compiled Code)
              at java.lang.Thread.run(Compiled Code)
          "Screen Updater" (TID:0xebcae6f0, sys_thread_t:0x48adc8, state:CW) prio=4
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.ScreenUpdater.nextEntry(Compiled Code)
              at sun.awt.ScreenUpdater.run(Compiled Code)
          "AWT-Motif" (TID:0xebcb0278, sys_thread_t:0x328e78, state:R) prio=5
              at sun.awt.motif.MToolkit.run(Native Method)
              at java.lang.Thread.run(Compiled Code)
          "SunToolkit.PostEventQueue-0" (TID:0xebcb0128, sys_thread_t:0x2f31a8, state:CW) prio=5
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at sun.awt.PostEventQueue.run(Compiled Code)
          "AWT-EventQueue-0" (TID:0xebcb0600, sys_thread_t:0x2f3070, state:CW) prio=6
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at java.awt.EventQueue.getNextEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
          "Finalizer" (TID:0xebc98320, sys_thread_t:0x68a88, state:CW) prio=8
              at java.lang.Object.wait(Native Method)
              at java.lang.ref.ReferenceQueue.remove(Compiled Code)
              at java.lang.ref.ReferenceQueue.remove(Compiled Code)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
          "Reference Handler" (TID:0xebc983b0, sys_thread_t:0x645d8, state:CW) prio=10
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Compiled Code)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:209)
          "Signal dispatcher" (TID:0xebc983e0, sys_thread_t:0x5d838, state:CW) prio=5
          "main" (TID:0xebc981e0, sys_thread_t:0x28c58, state:R) prio=5
              at sun.awt.font.NativeFontWrapper.canDisplay(Native Method)
              at java.awt.Font.canDisplay(Compiled Code)
              at java.awt.Font.canDisplayUpTo(Compiled Code)
              at java.awt.Font.canDisplayUpTo(Compiled Code)
              at demos.Fonts.AllFonts.<init>(Compiled Code)
              at java.lang.Class.newInstance(Native Method)
              at CanvasPanel.<init>(Compiled Code)
              at TheLayout.<init>(Compiled Code)
              at Java2Demo.<init>(Compiled Code)
              at Java2Demo.main(Compiled Code)
      Monitor Cache Dump:
          sun.awt.AWTFinalizer@EBCBFCC0/EBD32158: <unowned>
              Waiting to be notified:
                  "AWT-Finalizer" (0x5fe388)
          java.lang.ref.ReferenceQueue$Lock@EBC98338/EBCCDD58: <unowned>
              Waiting to be notified:
                  "Finalizer" (0x68a88)
          java.awt.EventQueue@EBCB05A0/EBD54008: <unowned>
              Waiting to be notified:
                  "AWT-EventQueue-0" (0x2f3070)
          java.lang.Class@EBCA6630/EBD0D630: owner "main" (0x28c58) 1 entry
          javax.swing.TimerQueue@EBCBD790/EBE964E8: <unowned>
              Waiting to be notified:
                  "TimerQueue" (0x5b3b78)
          java.lang.ref.Reference$Lock@EBC983C0/EBCCD898: <unowned>
              Waiting to be notified:
                  "Reference Handler" (0x645d8)
          sun.awt.PostEventQueue@EBCB0128/EBD542F8: <unowned>
              Waiting to be notified:
                  "SunToolkit.PostEventQueue-0" (0x2f31a8)
          sun.awt.ScreenUpdater@EBCAE6F0/EBD73600: <unowned>
              Waiting to be notified:
                  "Screen Updater" (0x48adc8)
      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" (0x28c58) 1 entry
          Dynamic loading lock: <unowned>
          Monitor IO lock: <unowned>
          User signal monitor: <unowned>
              Waiting to be notified:
                  "Signal dispatcher" (0x5d838)
          Child death monitor: <unowned>
          I/O monitor: owner "AWT-Motif" (0x328e78) 1 entry
          Alarm monitor: <unowned>
              Waiting to be notified:
                  <unknown thread> (0x2bb30)
          Thread queue lock: owner "main" (0x28c58) 1 entry
          Monitor registry: owner "main" (0x28c58) 1 entry

      Abort

      Then upon setting JAVA_FONTS to /usr/openwin/lib/X11/fonts/TrueType
      will remedy the problem.


      rk2d@eng 1998-09-04

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jehung Jeannette Hung
              Reporter:
              rrangarasunw Rekha Rangarajan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: