#608 Deadlock in AWT Thread (Linux)

closed-invalid
nobody
5
2002-06-23
2001-08-15
Calvin Yu
No

System: RedHat 7.1, kernel 2.4.6, KDE, Sun JDK 1.3.1

Haven't figured out exactly what causes it, but when
I do a thread dump, this is what I get:

"AWT-EventQueue-0" prio=1 tid=0x8217c40 nid=0x26a5
waiting on monitor [0x49094000..0x49095890]
at java.lang.Object.wait(Native Method)
at
sun.awt.motif.X11Selection.pGetSelectionOwnership(Native
Method)
at
sun.awt.motif.X11Selection.getSelectionOwnership(X11Selection.java:174)
at
sun.awt.motif.X11Clipboard.setContents(X11Clipboard.java:63)
at
org.gjt.sp.jedit.Registers$ClipboardRegister.setValue(Registers.java:318)
at
org.gjt.sp.jedit.Registers.setRegister(Registers.java:257)
at
org.gjt.sp.jedit.Registers.copy(Registers.java:52)
at java.lang.reflect.Method.invoke(Native
Method)
at bsh.Reflect.invokeMethod(Reflect.java:321)
at
bsh.Reflect.invokeStaticMethod(Reflect.java:92)[cyu@aquaman
jaha]$
at bsh.Name.invokeMethod(Name.java:696)
at
bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:53)
at
bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
at bsh.BSHBlock.eval(BSHBlock.java:74)
at
bsh.BshMethod.invokeDeclaredMethod(BshMethod.java:162)
at
bsh.NameSpace.invokeMethod(NameSpace.java:1012)
at
bsh.NameSpace.invokeMethod(NameSpace.java:984)
at
org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:373)
at
org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:55)
at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:188)
at
org.gjt.sp.jedit.gui.DefaultInputHandler.keyPressed(DefaultInputHandler.java:231)
at
org.gjt.sp.jedit.textarea.JEditTextArea.processKeyEvent(JEditTextArea.java:4016)
at
java.awt.Component.processEvent(Component.java:3553)
at
java.awt.Container.processEvent(Container.java:1164)
at
java.awt.Component.dispatchEventImpl(Component.java:2593)
at
java.awt.Container.dispatchEventImpl(Container.java:1213)
at
java.awt.Component.dispatchEvent(Component.java:2497)
at
java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
at
java.awt.Container.dispatchEventImpl(Container.java:1200)
at
java.awt.Window.dispatchEventImpl(Window.java:914)
at
java.awt.Component.dispatchEvent(Component.java:2497)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Calvin

Discussion

  • Stephen Blackheath

    Logged In: YES
    user_id=45973

    I have been getting the same problem, and my stack trace
    looks almost identical. I'm using jEdit 3.2.2 on Debian
    Woody, Kernel 2.4.9, KDE, Sun JDK 1.3.1.

    I use jedit all day, and I'm getting two or three of these
    hangs a day. I have to kill jEdit and re-start it. This
    problem never occurred with jEdit-3.0.2 (which I was
    previously using).

     
  • Calvin Yu

    Calvin Yu - 2001-09-27

    Logged In: YES
    user_id=76078

    I think it was Slava who suggested that I create a startup script
    with the following statement:

    Registers.setRegister('$',new Registers.StringRegister(""));

    I haven't experienced the problem since.

    Calvin

     
  • Stephen Blackheath

    Logged In: YES
    user_id=45973

    This would seem to be a bug in Sun's JDK1.3.x for Linux. It
    does not occur in JDK 1.4.0-beta3, which I have been using
    for several weeks now.

     
  • Slava Pestov

    Slava Pestov - 2002-06-23

    Logged In: YES
    user_id=2280

    A Java bug.

     
  • Slava Pestov

    Slava Pestov - 2002-06-23
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks