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

Segfault loading classes when loading s.f.StrikeCache before s.f.SunFontManager

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java8

      ADDITIONAL OS VERSION INFORMATION :
      Linux #67-Ubuntu SMP Mon Mar 5 19:35:26 UTC 2012 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      When Class.forName("sun.font.StrikeCache") before loading sun.font.SunFontManager, there will be an UnstatisFiedLinkError thrown. The reason is that there is a native call in its static initialize block, but the native library is not loaded in yet.
      This problem will hurt more if loading SunFontManager after loading StrikeCache, a VM crash is occurred.
      This problem will hurt even more if loading StrikeCache failed, user can not loading SunFontManager and sun.font.SunLayoutEngine either.


      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: