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

Mozilla or application crashed when switch to Japanese input.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version "1.4.2_12"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
      Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
      The previous versions have the same bug.

      ADDITIONAL OS VERSION INFORMATION :
      Linux 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux(Japanese)


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Browser is Mozilla1.7.3

      A DESCRIPTION OF THE PROBLEM :
      I wrote an applet only contains a textfield component and a button, and I wrote a html file to run the applet. A frame contains a textfield popups when user click the button.The applet is an application too and can run stand alone.

      There are two phenomenons:
      1.When I run the applet through browsing the html file,I can switch to the Japanese input to type Japanese characters into the textfield of the applet,it works well.Then click the button and a frame with a textfield appears,but I cant switch to the Japanese input, and I can't input anything into the textfield,and the broswer crashes.
      2.I run the applet as a stand alone application,the application crashes when I switch to the Japanese input.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      You can reproduce this bug by the following steps:
      1.Write an applet that can run stand alone and a html file.(The java source and the html are attached).
      2.Open mozilla broswer then open the html file.
      3.Active the Japanese by Cntr+Spaces,you can input Japanese characters into the textfield.
      4.Click the button,a frame appears.Active the Japanese input by Cntr+sapce.
      [Actual Result]User can't active the Japanese input and the broswer crashes.
      5.You can't active the Japanese input.The broswer crashes.
      6.Close the broswer and reopen the html file,then do the 3rd step,you will find the you can't active the Japanese input.

      7.Log out Linux then login. Redo steps1-3, and you 'll find you can active Japanese input again.


      8.Run the applet as a stand alone application.
      9.A frame appears, then active Japanese input by pressing Cntr+Space,the application crashes and throws an exception and an error log file created.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Excepted result after the 4th step:User can active the Japanese input and input Japanese characters into the textfield in the frame.

      Excepted result after the 9th step:User can active the Japanese input and input Japanese characters into the textfield.
      ACTUAL -
      Actual result after the 4th step:User can't active the Japanese input and the broswer crashes.

      Actual result after the 9th step:The application crashes.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      I can't get any error message before step 6th.

      After step 9th:
      The error messages in the console:
      an unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x00000000, pid=342, tid=2869124016
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode)
      # Problematic frame:
      # C 0x00000000
      #
      # An error report file with more information is saved as hs_err_pid342.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      The contents of the log file:hs_err_pid342.log
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0x00000000, pid=342, tid=2869124016
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode)
      # Problematic frame:
      # C 0x00000000
      #

      --------------- T H R E A D ---------------

      Current thread (0x08223900): JavaThread "AWT-Motif" daemon [_thread_in_native, id=351]

      siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000

      Registers:
      EAX=0x082445d0, EBX=0x00c5c59c, ECX=0x00000000, EDX=0x081e144c
      ESP=0xab0348b8, EBP=0xab0348e4, ESI=0xab0348f0, EDI=0x0823ee78
      EIP=0x00000000, CR2=0x00000000, EFLAGS=0x00010292

        Top of Stack: (sp=0xab0348b8)
      0xab0348b8: 00be82ff 0823ee78 082445d0 00000000
      0xab0348c8: 00000000 00000000 082445d0 00000001
      0xab0348d8: 0823ecc0 00000000 00000005 ab034988
      0xab0348e8: ab40b89a 0823ee78 ab48e213 082212d0
      0xab0348f8: 00000000 00000000 00000000 ab4a123c
      0xab034908: ab48e14e 082181d0 ab40cad4 08222d88
      0xab034918: 00843ad0 00000018 0086f540 00baa810
      0xab034928: 004a3850 ab414354 00b67ff4 00000001

      Instructions: (pc=0x00000000)
      0xfffffff0:

      Stack: [0xaafc3000,0xab036000), sp=0xab0348b8, free space=454k
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.motif.MToolkit.run()V+0
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x08057928 JavaThread "DestroyJavaVM" [_thread_blocked, id=342]
        0x082406b8 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=353]
        0x08239b70 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=352]
      =>0x08223900 JavaThread "AWT-Motif" daemon [_thread_in_native, id=351]
        0x082235c0 JavaThread "AWT-Shutdown" [_thread_blocked, id=350]
        0x080a3308 JavaThread "CompilerThread0" daemon [_thread_blocked, id=348]
        0x080a24e8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=347]
        0x0808dec8 JavaThread "Finalizer" daemon [_thread_blocked, id=345]
        0x0808d320 JavaThread "Reference Handler" daemon [_thread_blocked, id=344]

      Other Threads:
        0x0808c0d8 VMThread [id=343]
        0x080a4d00 WatcherThread [id=349]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 576K, used 272K [0xabca0000, 0xabd40000, 0xac180000)
        eden space 512K, 40% used [0xabca0000, 0xabcd4108, 0xabd20000)
        from space 64K, 100% used [0xabd30000, 0xabd40000, 0xabd40000)
        to space 64K, 0% used [0xabd20000, 0xabd20000, 0xabd30000)
       tenured generation total 1408K, used 463K [0xac180000, 0xac2e0000, 0xafca0000)
         the space 1408K, 32% used [0xac180000, 0xac1f3fc0, 0xac1f4000, 0xac2e0000)
       compacting perm gen total 4096K, used 2759K [0xafca0000, 0xb00a0000, 0xb3ca0000)
         the space 4096K, 67% used [0xafca0000, 0xaff51f58, 0xaff52000, 0xb00a0000)

      Dynamic libraries:
      00821000-0086e000 r-xp 00000000 fd:00 3186757 /usr/X11R6/lib/libXt.so.6.0
      0086e000-00872000 rwxp 0004c000 fd:00 3186757 /usr/X11R6/lib/libXt.so.6.0
      00a26000-00a3b000 r-xp 00000000 fd:00 853227 /lib/ld-2.3.4.so
      00a3b000-00a3c000 r-xp 00014000 fd:00 853227 /lib/ld-2.3.4.so
      00a3c000-00a3d000 rwxp 00015000 fd:00 853227 /lib/ld-2.3.4.so
      00a43000-00b66000 r-xp 00000000 fd:00 853228 /lib/tls/libc-2.3.4.so
      00b66000-00b67000 r-xp 00123000 fd:00 853228 /lib/tls/libc-2.3.4.so
      00b67000-00b6a000 rwxp 00124000 fd:00 853228 /lib/tls/libc-2.3.4.so
      00b6a000-00b6c000 rwxp 00b6a000 00:00 0
      00b6e000-00b8f000 r-xp 00000000 fd:00 853229 /lib/tls/libm-2.3.4.so
      00b8f000-00b91000 rwxp 00020000 fd:00 853229 /lib/tls/libm-2.3.4.so
      00b93000-00b95000 r-xp 00000000 fd:00 853230 /lib/libdl-2.3.4.so
      00b95000-00b97000 rwxp 00001000 fd:00 853230 /lib/libdl-2.3.4.so
      00b99000-00c5c000 r-xp 00000000 fd:00 4456452 /usr/X11R6/lib/libX11.so.6.2
      00c5c000-00c60000 rwxp 000c3000 fd:00 4456452 /usr/X11R6/lib/libX11.so.6.2
      00c74000-00c81000 r-xp 00000000 fd:00 4456453 /usr/X11R6/lib/libXext.so.6.4
      00c81000-00c82000 rwxp 0000c000 fd:00 4456453 /usr/X11R6/lib/libXext.so.6.4
      00c84000-00c92000 r-xp 00000000 fd:00 853231 /lib/tls/libpthread-2.3.4.so
      00c92000-00c94000 rwxp 0000d000 fd:00 853231 /lib/tls/libpthread-2.3.4.so
      00c94000-00c96000 rwxp 00c94000 00:00 0
      00c98000-00c9f000 r-xp 00000000 fd:00 4456460 /usr/X11R6/lib/libSM.so.6.0
      00c9f000-00ca0000 rwxp 00007000 fd:00 4456460 /usr/X11R6/lib/libSM.so.6.0
      00ca2000-00cb7000 r-xp 00000000 fd:00 4456459 /usr/X11R6/lib/libICE.so.6.3
      00cb7000-00cb8000 rwxp 00014000 fd:00 4456459 /usr/X11R6/lib/libICE.so.6.3

      VM Arguments:
      java_command: test.TextFieldApplet
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/CA/BrightStorARCserve/bin:/opt/CA/BrightStorARCserve/sbin:/opt/CA/BrightStorARCserve/reports:/root/bin:/opt/CA/BrightStorARCserve/bin:/opt/CA/BrightStorARCserve/sbin:/opt/CA/BrightStorARCserve/reports
      LD_LIBRARY_PATH=/usr/java/j2re1.4.2_12/lib/i386/client:/usr/java/j2re1.4.2_12/lib/i386:/usr/java/j2re1.4.2_12/../lib/i386::/opt/CA/BrightStorARCserve/lib:/opt/CA/BrightStorARCserve/dbase/ingres/ingres/lib:/opt/CA/SharedComponents/lib
      SHELL=/bin/bash
      DISPLAY=:0.0


      --------------- S Y S T E M ---------------

      OS:Red Hat Enterprise Linux AS release 4 (Nahant)

      uname:Linux 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686
      libc:glibc 2.3.4 NPTL 2.3.4
      rlimit: STACK 10240k, CORE 0k, NPROC 8055, NOFILE 1024, AS infinity
      load average:325215078481544067418021531507253339114023570572081208587916205359104.00 977815675408483433918049624480332726561040266557160735113682102876567218729940928289688202398035270165855279348819944396855476010817492560205821526677852966825245658492853386960984828024051877281792.00 181152568423775743984625672471874620230193945693286437169147875413913002647653538528856718643324044399164715492453713564318808791534767402692074089580098656770288828091620571281854588544253434776252065235789039573740521254123551241865886809146273287245157995568226086420480.00

      CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2

      Memory: 4k page, physical 507488k(24344k free), swap 1015800k(1009440k free)

      vm_info: Java HotSpot(TM) Client VM (1.4.2_12-b03) for linux-x86, built on May 9 2006 12:48:55 by unknown with unknown compiler



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      TextFieldApplet.java

      import java.applet.Applet;
      import java.awt.*;
      import java.awt.Button;
      import java.awt.TextField;

      /**
       * @author denje02
       *
       */
      public class TextFieldApplet extends Applet {

      private Button button = null;
      private TextField textField = null;


      /**
      * This method initializes
      *
      */
      public TextFieldApplet() {
      super();
      }


      /**
      * @param args
      */
          public void init() {
              this.setLayout(null);
              this.setSize(new java.awt.Dimension(388,204));
              this.add(getButton(), null);
              this.add(getTextField(), null);
          
          }


      /**
      * This method initializes button
      *
      * @return java.awt.Button
      */
      private Button getButton() {
      if (button == null) {
      button = new Button();
      button.setBounds(new java.awt.Rectangle(82,48,159,39));
      button.setLabel("Ok");
      button.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent e) {
      System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
      Frame frame = new Frame();
      TextField testfield = new TextField();
      frame.setLayout(null);
      testfield.setBounds(100,100,100,30);
      frame.add(testfield);
      frame.setSize(400,400);
      frame.setVisible(true);
      }
      });
      }
      return button;
      }


      /**
      * This method initializes textField
      *
      * @return java.awt.TextField
      */
      private TextField getTextField() {
      if (textField == null) {
      textField = new TextField();
      textField.setBounds(new java.awt.Rectangle(59,120,267,36));
      }
      return textField;
      }


      public static void main(String[] args) {
      // TODO Auto-generated method stub
      Frame frame = new Frame("TextField Testing");
      TextFieldApplet applet = new TextFieldApplet();
      applet.init();
      frame.add(applet);
      frame.setSize(new Dimension(400,400));
      frame.setVisible(true);

      }

      }

      runapplet.html
      <html>
        <head>
            <title>TextField in applet</title>
        </head>
        <body>
            <h1>TextField in applet</h1>
            <hr>
            <applet code=TextFieldApplet.class width=400 height=400>
      alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
      Your browser is completely ignoring the &lt;APPLET&gt; tag!
            </applet>
            <hr>
        </body>
      </html>
      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yyamasaksunw Yuriko Yamasaki (Inactive)
                Reporter:
                dav Andrei Dmitriev (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: