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

Stopping kinput2 causes the java application to hang on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.0, 1.4.1
    • client-libs
    • tiger
    • x86
    • linux



      Name: jk109818 Date: 10/15/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      RedHatLinux 7.2 with KDE

      A DESCRIPTION OF THE PROBLEM :
      java:classes_awt_im
      The java application killed with input method process
      (kinput2), unlikely other X applications (for instance rxvt
      or kterm)

      I think this issue is related to Bug Id 4742123, that is
      closed as not a bug, but I think the java application
      process would not hang up due to the input method's process
      at least.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Compile the attached source
      2. Kill the kinput2 process
      ps -ef | grep kinput2
      kill -9 <kinput2 process id>
      3. Launch kinput2
      kiput2 -xim -kinput -canna
      4. Run compiled java application
      ./j2sdk1.4.1/bin java Frame1
      5. Kill the kinput2 that is launched step 3
      Key in [Ctrl-C] or kill the process
      6. Click the java application's frame


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected result:
      The java application that is launched step 4 keeps running
      without error as well as other X applications (for instance
      rxvt or kterm)
      Actual result:
      The java application is killed with kinput2 with following
      error messages.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 11 occurred at PC=0x4CB6954C
      Function=XSetICValues+0x4C
      Library=/usr/X11R6/lib/libX11.so.6

      Current Java thread:
      at sun.awt.motif.MComponentPeer._requestFocus(Native Method)
      at sun.awt.motif.MComponentPeer.requestFocus(MComponentPeer.java:479)
      at java.awt.Component.requestFocusHelper(Component.java:6113)
      at java.awt.Component.requestFocusInWindow(Component.java:6033)
      at
      java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.
      java:293)
      at java.awt.Component.dispatchEventImpl(Component.java:3468)
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
      at java.awt.Window.dispatchEventImpl(Window.java:1585)
      at java.awt.Component.dispatchEvent(Component.java:3439)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
      at java.awt.SequencedEvent.dispatch(SequencedEvent.java:91)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
      at
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:
      197)
      at
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:15
      0)
      at
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
      at
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      Dynamic libraries:
      08048000-0804e000 r-xp 00000000 03:06 376783
      /home/ahasegaw/j2sdk1.4.1/bin/java
      0804e000-0804f000 rw-p 00005000 03:06 376783
      /home/ahasegaw/j2sdk1.4.1/bin/java
      40000000-40016000 r-xp 00000000 03:06 2044002 /lib/ld-2.2.4.so
      40016000-40017000 rw-p 00015000 03:06 2044002 /lib/ld-2.2.4.so
      40017000-40020000 r-xp 00000000 03:06 4856852
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
      40020000-40021000 rw-p 00008000 03:06 4856852
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/native_threads/libhpi.so
      40022000-40027000 r--s 00000000 03:06 5396339
      /usr/lib/gconv/gconv-modules.cache
      40027000-40031000 r-xp 00000000 03:06 2044036 /lib/libnss_files-2.2.4.so
      40031000-40032000 rw-p 00009000 03:06 2044036 /lib/libnss_files-2.2.4.so
      40033000-40040000 r-xp 00000000 03:06 5461578 /lib/i686/libpthread-0.9.so
      40040000-40048000 rw-p 0000c000 03:06 5461578 /lib/i686/libpthread-0.9.so
      40048000-4004b000 r-xp 00000000 03:06 2044015 /lib/libdl-2.2.4.so
      4004b000-4004c000 rw-p 00002000 03:06 2044015 /lib/libdl-2.2.4.so
      4004c000-4017e000 r-xp 00000000 03:06 5461574 /lib/i686/libc-2.2.4.so
      4017e000-40183000 rw-p 00131000 03:06 5461574 /lib/i686/libc-2.2.4.so
      40187000-4049f000 r-xp 00000000 03:06 2175473
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
      4049f000-40654000 rw-p 00317000 03:06 2175473
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
      40665000-40678000 r-xp 00000000 03:06 2044020 /lib/libnsl-2.2.4.so
      40678000-40679000 rw-p 00012000 03:06 2044020 /lib/libnsl-2.2.4.so
      4067b000-4069d000 r-xp 00000000 03:06 5461576 /lib/i686/libm-2.2.4.so
      4069d000-4069e000 rw-p 00021000 03:06 5461576 /lib/i686/libm-2.2.4.so
      4069e000-406ae000 r-xp 00000000 03:06 3794189
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libverify.so
      406ae000-406b0000 rw-p 0000f000 03:06 3794189
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libverify.so
      406b0000-406d1000 r-xp 00000000 03:06 3794190
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libjava.so
      406d1000-406d3000 rw-p 00020000 03:06 3794190
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libjava.so
      406d3000-406e8000 r-xp 00000000 03:06 3794192
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libzip.so
      406e8000-406ea000 rw-p 00014000 03:06 3794192
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libzip.so
      406ea000-41db8000 r--s 00000000 03:06 2289900
      /home/ahasegaw/j2sdk1.4.1/jre/lib/rt.jar
      41dfb000-41e12000 r--s 00000000 03:06 2289880
      /home/ahasegaw/j2sdk1.4.1/jre/lib/sunrsasign.jar
      41e12000-41e83000 r--s 00000000 03:06 2289882
      /home/ahasegaw/j2sdk1.4.1/jre/lib/jsse.jar
      41e83000-41e96000 r--s 00000000 03:06 2289881
      /home/ahasegaw/j2sdk1.4.1/jre/lib/jce.jar
      41e96000-42152000 r--s 00000000 03:06 2289898
      /home/ahasegaw/j2sdk1.4.1/jre/lib/charsets.jar
      441fa000-441fd000 r--s 00000000 03:06 4595624
      /home/ahasegaw/j2sdk1.4.1/jre/lib/ext/dnsns.jar
      4c403000-4c477000 r--p 00000000 03:06 3237701
      /usr/lib/locale/ja_JP.eucjp/LC_CTYPE
      4c67b000-4c698000 r--s 00000000 03:06 4595623
      /home/ahasegaw/j2sdk1.4.1/jre/lib/ext/sunjce_provider.jar
      4c698000-4c737000 r--s 00000000 03:06 4595625
      /home/ahasegaw/j2sdk1.4.1/jre/lib/ext/localedata.jar
      4c737000-4c745000 r--s 00000000 03:06 4595626
      /home/ahasegaw/j2sdk1.4.1/jre/lib/ext/ldapsec.jar
      4c745000-4ca0c000 r-xp 00000000 03:06 3794200
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libawt.so
      4ca0c000-4ca21000 rw-p 002c6000 03:06 3794200
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libawt.so
      4ca46000-4ca99000 r-xp 00000000 03:06 3794199
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libmlib_image.so
      4ca99000-4ca9a000 rw-p 00052000 03:06 3794199
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libmlib_image.so
      4ca9a000-4ca9d000 r-xp 00000000 03:06 5396203 /usr/lib/gconv/EUC-JP.so
      4ca9d000-4ca9e000 rw-p 00002000 03:06 5396203 /usr/lib/gconv/EUC-JP.so
      4cab5000-4cabb000 r-xp 00000000 03:06 2469192 /usr/X11R6/lib/libXp.so.6.2
      4cabb000-4cabd000 rw-p 00005000 03:06 2469192 /usr/X11R6/lib/libXp.so.6.2
      4cabd000-4cb05000 r-xp 00000000 03:06 2469198 /usr/X11R6/lib/libXt.so.6.0
      4cb05000-4cb09000 rw-p 00047000 03:06 2469198 /usr/X11R6/lib/libXt.so.6.0
      4cb09000-4cb15000 r-xp 00000000 03:06 2469180 /usr/X11R6/lib/libXext.so.6.4
      4cb15000-4cb17000 rw-p 0000b000 03:06 2469180 /usr/X11R6/lib/libXext.so.6.4
      4cb17000-4cb1b000 r-xp 00000000 03:06 2469200 /usr/X11R6/lib/libXtst.so.6.1
      4cb1b000-4cb1d000 rw-p 00003000 03:06 2469200 /usr/X11R6/lib/libXtst.so.6.1
      4cb1d000-4cbf6000 r-xp 00000000 03:06 2469172 /usr/X11R6/lib/libX11.so.6.2
      4cbf6000-4cbfb000 rw-p 000d8000 03:06 2469172 /usr/X11R6/lib/libX11.so.6.2
      4cbfb000-4cc02000 r-xp 00000000 03:06 2469170 /usr/X11R6/lib/libSM.so.6.0
      4cc02000-4cc04000 rw-p 00006000 03:06 2469170 /usr/X11R6/lib/libSM.so.6.0
      4cc04000-4cc18000 r-xp 00000000 03:06 2469166 /usr/X11R6/lib/libICE.so.6.3
      4cc18000-4cc19000 rw-p 00013000 03:06 2469166 /usr/X11R6/lib/libICE.so.6.3
      4cc1b000-4cce1000 r-xp 00000000 03:06 3794202
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libfontmanager.so
      4cce1000-4ccfc000 rw-p 000c5000 03:06 3794202
      /home/ahasegaw/j2sdk1.4.1/jre/lib/i386/libfontmanager.so
      4ccfc000-4cd30000 r-xp 00000000 03:06 311709
      /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
      4cd30000-4cd3c000 rw-p 00033000 03:06 311709
      /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
      4ce61000-4ce79000 r-xp 00000000 03:06 5396337 /usr/lib/gconv/libJIS.so
      4ce79000-4ce7a000 rw-p 00017000 03:06 5396337 /usr/lib/gconv/libJIS.so

      Local Time = Thu Oct 10 16:13:52 2002
      Elapsed Time = 10
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
      #


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;
      public class Frame1 extends Frame {
        TextField textField1 = new TextField();

        public Frame1() {
          try {
            jbInit();
          }
          catch(Exception e) {
            e.printStackTrace();
          }
        }
        public static void main(String[] args) {
          Frame1 frame1 = new Frame1();
          frame1.setSize(400,300);
          frame1.setVisible(true);
        }
        private void jbInit() throws Exception {
          textField1.setText("textField1");
          this.add(textField1, BorderLayout.CENTER);
        }
      }


      ---------- END SOURCE ----------
      (Review ID: 165639)
      ======================================================================

            naoto Naoto Sato
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: