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

Segmentation violation for x86 native code screen update.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs

      The test excution is failed on x86 Solaris 2.7 with exit code 6, while it is passing on other platforms Win32 and Solaris 2.7.

      The test case KeyEventsToComponents contains the Focus scenarios.This test case
      excution is failing with exit code 6 on IA Solaris 2.7 while its excution is
      perfact on WinNt and Solaris 2.7.



      How to reproduce the Bug--
      Set the classpath to the awtsqe.jar in the attachements.Compile all .java files in the attachements.
       
      After compilation run the KeyEventtoComponentTest.html in the attachements by using the command :
       
      appletviewer -J-classpath -J$CLASSPATH -Xnosecurity KeyEventtoComponentTest.html
           
      You will get an applet with display window.And you will get a frame.During test excution it will produce some exceptions on the console.Check wheather the output will be same as dump trace below.finally check wheather the excution is stopped with exit code 6.If the excution stopped the Bug is reproduced.

        SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0xF08B08C4]

              stackpointer=df2017e0

      Full thread dump Classic VM (1.4.0beta-b14, native threads):
          "Screen Updater" (TID:0xd8992238, sys_thread_t:0x84e89a8, state:CW, native ID:0xa) prio=4
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:420)
              at sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:75)
              at sun.awt.ScreenUpdater.run(ScreenUpdater.java:95)
          "AWT-Motif" (TID:0xd896cd90, sys_thread_t:0x843c600, state:MW, native ID:0x9) prio=5
              at sun.awt.motif.MToolkit.run(Native Method)
              at java.lang.Thread.run(Thread.java:484)
          "AWT-EventQueue-0" (TID:0xd896d988, sys_thread_t:0x8419198, state:R, native ID:0x8) prio=6
              at sun.awt.motif.X11InputMethod.createXICNative(Native Method)
              at sun.awt.motif.X11InputMethod.activate(X11InputMethod.java:254)
              at sun.awt.im.InputContext.activateInputMethod(InputContext.java:308)
              at sun.awt.im.InputContext.focusGained(InputContext.java:272)
              at sun.awt.im.InputContext.dispatchEvent(InputContext.java:193)
              at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:177)
              at java.awt.Component.dispatchEventImpl(Component.java:2570)
              at java.awt.Component.dispatchEvent(Component.java:2540)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:323)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
          "AppletThread" (TID:0xd898a970, sys_thread_t:0x815bc58, state:R, native ID:0x7) prio=5
              at java.awt.Component.show(Component.java:929)
              at java.awt.Window.show(Window.java:392)
              at java.awt.Component.show(Component.java:952)
              at java.awt.Component.setVisible(Component.java:909)
              at KeyEventtoComponentGUI.init(KeyEventtoComponentGUI.java:102)
              at javasoft.awtsqe.RobotAppletTest.useGui(RobotAppletTest.java:519)
              at KeyEventtoComponentTest.initTestGUI(KeyEventtoComponentTest.java:34)
              at javasoft.awtsqe.RobotAppletTest.init(RobotAppletTest.java:145)
              at javasoft.sqe.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:144)
              at java.lang.Thread.run(Thread.java:484)
          "Finalizer" (TID:0xd8966528, sys_thread_t:0x8095ed0, state:CW, native ID:0x6) prio=8
              at java.lang.Object.wait(Native Method)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)
          "Reference Handler" (TID:0xd8966300, sys_thread_t:0x8091a80, state:CW, native ID:0x5) prio=10
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:420)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
          "Signal dispatcher" (TID:0xd8966330, sys_thread_t:0x80915e0, state:CW, native ID:0x4) prio=5
          "main" (TID:0xd89661a0, sys_thread_t:0x804ea40, state:CW, native ID:0x1) prio=5
              at java.lang.Object.wait(Native Method)
              at java.lang.Thread.join(Thread.java:930)
              at java.lang.Thread.join(Thread.java:983)
              at javasoft.sqe.javatest.regtest.AppletWrapper.main(AppletWrapper.java:99)
      Monitor Cache Dump:
          sun.awt.im.InputMethodContext@D8987F98/D8AE0B10: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          java.lang.Thread@D898A970/D8A17B90: <unowned>
              Waiting to be notified:
                  "main" (0x804ea40)
          java.lang.ref.Reference$Lock@D8966310/D899BF10: <unowned>
              Waiting to be notified:
                  "Reference Handler" (0x8091a80)
          java.lang.Class@D8975030/D8A29DC0: owner "AWT-EventQueue-0" (0x8419198) 1 entry
              Waiting to enter:
                  "AWT-Motif" (0x843c600)
          java.awt.Component$AWTTreeLock@D8988DA0/D8A19030: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          java.lang.ref.ReferenceQueue$Lock@D8966540/D899C3F0: <unowned>
              Waiting to be notified:
                  "Finalizer" (0x8095ed0)
          sun.awt.ScreenUpdater@D8992238/D8ABD910: <unowned>
              Waiting to be notified:
                  "Screen Updater" (0x84e89a8)
          sun.awt.motif.X11InputMethod@D8988038/D8AE0B78: owner "AWT-EventQueue-0" (0x8419198) 1 entry
      Registered Monitor Dump:
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: <unowned>
          System class loader lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Monitor cache lock: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          Thread queue lock: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          Monitor registry: owner "AWT-EventQueue-0" (0x8419198) 1 entry

      SIGABRT 6* abort (generated by abort(3) routine)
          si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
          si_errno [0]: Error 0
          si_code [-1]: SI_LWP [pid: 8898, uid: 104834]
              stackpointer=df2012b4

      Full thread dump Classic VM (1.4.0beta-b14, native threads):
          "Screen Updater" (TID:0xd8992238, sys_thread_t:0x84e89a8, state:CW, native ID:0xa) prio=4
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:420)
              at sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:75)
              at sun.awt.ScreenUpdater.run(ScreenUpdater.java:95)
          "AWT-Motif" (TID:0xd896cd90, sys_thread_t:0x843c600, state:MW, native ID:0x9) prio=5
              at sun.awt.motif.MToolkit.run(Native Method)
              at java.lang.Thread.run(Thread.java:484)
          "AWT-EventQueue-0" (TID:0xd896d988, sys_thread_t:0x8419198, state:R, native ID:0x8) prio=6
              at sun.awt.motif.X11InputMethod.createXICNative(Native Method)
              at sun.awt.motif.X11InputMethod.activate(X11InputMethod.java:254)
              at sun.awt.im.InputContext.activateInputMethod(InputContext.java:308)
              at sun.awt.im.InputContext.focusGained(InputContext.java:272)
              at sun.awt.im.InputContext.dispatchEvent(InputContext.java:193)
              at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:177)
              at java.awt.Component.dispatchEventImpl(Component.java:2570)
              at java.awt.Component.dispatchEvent(Component.java:2540)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:323)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
          "AppletThread" (TID:0xd898a970, sys_thread_t:0x815bc58, state:R, native ID:0x7) prio=5
              at java.awt.Component.show(Component.java:929)
              at java.awt.Window.show(Window.java:392)
              at java.awt.Component.show(Component.java:952)
              at java.awt.Component.setVisible(Component.java:909)
              at KeyEventtoComponentGUI.init(KeyEventtoComponentGUI.java:102)
              at javasoft.awtsqe.RobotAppletTest.useGui(RobotAppletTest.java:519)
              at KeyEventtoComponentTest.initTestGUI(KeyEventtoComponentTest.java:34)
              at javasoft.awtsqe.RobotAppletTest.init(RobotAppletTest.java:145)
              at javasoft.sqe.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:144)
              at java.lang.Thread.run(Thread.java:484)
          "Finalizer" (TID:0xd8966528, sys_thread_t:0x8095ed0, state:CW, native ID:0x6) prio=8
              at java.lang.Object.wait(Native Method)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
              at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)
          "Reference Handler" (TID:0xd8966300, sys_thread_t:0x8091a80, state:CW, native ID:0x5) prio=10
              at java.lang.Object.wait(Native Method)
              at java.lang.Object.wait(Object.java:420)
              at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
          "Signal dispatcher" (TID:0xd8966330, sys_thread_t:0x80915e0, state:CW, native ID:0x4) prio=5
          "main" (TID:0xd89661a0, sys_thread_t:0x804ea40, state:CW, native ID:0x1) prio=5
              at java.lang.Object.wait(Native Method)
              at java.lang.Thread.join(Thread.java:930)
              at java.lang.Thread.join(Thread.java:983)
              at javasoft.sqe.javatest.regtest.AppletWrapper.main(AppletWrapper.java:99)
      Monitor Cache Dump:
          sun.awt.im.InputMethodContext@D8987F98/D8AE0B10: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          java.lang.Thread@D898A970/D8A17B90: <unowned>
              Waiting to be notified:
                  "main" (0x804ea40)
          java.lang.ref.Reference$Lock@D8966310/D899BF10: <unowned>
              Waiting to be notified:
                  "Reference Handler" (0x8091a80)
          java.lang.Class@D8975030/D8A29DC0: owner "AWT-EventQueue-0" (0x8419198) 1 entry
              Waiting to enter:
                  "AWT-Motif" (0x843c600)
          java.awt.Component$AWTTreeLock@D8988DA0/D8A19030: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          java.lang.ref.ReferenceQueue$Lock@D8966540/D899C3F0: <unowned>
              Waiting to be notified:
                  "Finalizer" (0x8095ed0)
          sun.awt.ScreenUpdater@D8992238/D8ABD910: <unowned>
              Waiting to be notified:
                  "Screen Updater" (0x84e89a8)
          sun.awt.motif.X11InputMethod@D8988038/D8AE0B78: owner "AWT-EventQueue-0" (0x8419198) 1 entry
      Registered Monitor Dump:
          utf8 hash table: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class linking lock: <unowned>
          System class loader lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Monitor cache lock: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          Thread queue lock: owner "AWT-EventQueue-0" (0x8419198) 1 entry
          Monitor registry: owner "AWT-EventQueue-0" (0x8419198) 1 entry


        


         

            naoto Naoto Sato
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: