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

Java crashes when loading jis font

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      Name: dmR10075 Date: 03/05/2004


      This is a repost of 4095264. The bug is reproducible on Linux RH9, with
      JDK1.5.0b40 and current AWT workspace. The test case is the same,
      instruction is slightly different:
      1. Create fontconfig.properties file in <jre>/lib or <build>/lib
      directory by using fontconfig.properties.src file as template: comment
      current value for dialog.plain.latin-1 key and add:
      ---
      dialog.plain.japanese-x0208=-jis-fixed-medium-r-normal-*-*-%d-*-*-c-*-jisx0208.1983-0
      dialog.plain.latin-1=-jis-fixed-medium-r-normal-*-*-%d-*-*-c-*-jisx0208.1983-0
      ---
      2. I also added a symbol link to this file under names
      fontconfig.RedHat.properties and fontconfig.RedHat.9.0.properties, other
      names might be necessary for other platform since the name of the file
      is platform dependent(see
      http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html for
      detailed instruction).
      3. Run the test:
      AWT_TOOLKIT=sun.awt.motif.MToolkit <jre or build>/bin/java
      FontMetricsCrashProof dialog-plain-12

      It crashes, showing the following output from HotSpot:
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x4b86135a, pid=21535, tid=16384
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0-beta2-b40 mixed mode)
      # Problematic frame:
      # C [libmawt.so+0x8b35a] Java_sun_awt_motif_X11FontMetrics_init+0x38e
      #
      # An error report file with more information is saved as hs_err_pid21535.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
      Aborted (core dumped)

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dav Andrei Dmitriev (Inactive)
                Reporter:
                domsunw Dom Dom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: