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

[WIN32] Repeating creation Non-ascii label (Frame) canses page fault

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.2.0
    • client-libs
    • 1.2beta4
    • x86
    • generic, windows_95
    • Not verified

      Platform: Windows95 ja and WindowNT 4.0

      JVM dump (page fault) when repeating following steps about 15 - 20 times.:
              - Create Frame
              - add Label with non-ascii String
              - show this Frame
              - dispose this Frame

      If the label contains ASCII only, this does not happen. Assume related to I18N.

      Sample source : try 'java Labeling j 30' - hungs
                          'java Labeling e 60' - ok

      -----
      import java.awt.*;

      class Labeling {
          public static void main(String[] args) throws Exception{
              String str = null;
              Frame f;
              if (args.length != 2 ) {
                  System.out.println("Usage: java Labeling {e|j} cycle");
                  System.exit(1);
              } else if ( args[0].equals("j")) {
                  str = "¤¢¤¤¤¦¤¨¤ª¥¢¥¤¥¦¥¨¥ª°íÆõ»²»Í¸à";
              } else str = "abcdeFGHIJ12345";
              int cycle = Integer.parseInt(args[1]);
              for (int i = 0; i < cycle; i++) {
                  f = new Frame("LabelTest - "+i+"/"+cycle);
                  f.add(new Label(str));
                  f.pack();
                  f.show();
                  Thread.currentThread().sleep(1000);
                  f.dispose();
              }
              System.exit(0);
          }
      }

      -----

      Stack dump follows. Though the dumped module and/or cycle are varied to the trial.

      -----
      Module : JVM.DLL Address : 013f:53609e14
      Registers:
      EAX=0c0dad88 CS=013f EIP=53609e14 EFLGS=00010216
      EBX=00f80000 SS=0147 ESP=0224f8f8 EBP=00f92700
      ECX=00606d6c DS=0147 ESI=01c80000 FS=1d47
      EDX=61656c43 ES=0147 EDI=f27df7ff GS=0000
      Bytes at CS:EIP:
      8b 3c 8e 8d 34 8e 8b c8 8b c7 83 e1 1f d3 e8 a8
      Stack dump:
      7dfc55a0 01c80458 0000007d 0224fc8c 00000000 0104346f 007f6b04 0224f928 00f80000
       00fb3328 00650000 00f80160 00f91580 02705a34 007c9460 00f8f920
      -----

      koushi.takahashi@japan 1998-04-08

            nlindenbsunw Norbert Lindenberg (Inactive)
            ktakahassunw Koushi Takahashi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: