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

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

XMLWordPrintable

    • 2d
    • x86
    • linux

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: