Summary: | Some programs (emacs,urxvt) hang at xcb_wait_for_event | ||
---|---|---|---|
Product: | xorg | Reporter: | Daniel Clemente <n142857> |
Component: | Lib/Xlib | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED MOVED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | CC: | b.riefenstahl, freedesktop, peter.hutterer, psychon |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Daniel Clemente
2014-04-29 13:59:04 UTC
I don't think what I found is related, but can you attach your Xorg.log please? from a session where you did reproduce that bug. And more specifically, do you have a custom xorg.conf? I'll send the Xorg.log when I can reproduce this again. I'm not using custom xorg.conf (I have no /etc/X11/xorg.conf). xserver-xorg==1:7.7+7 from Debian testing. I don't know whether this is related: lastly I have experienced hyperthrashing due to few RAM and too many simultaneous programs, for that reason some programs are hung for some seconds until thrashing finishes. I cannot guarantee that the hang happened in those moments. But I hope no xorg code depends on a function running fast. probably not the same issue then, sorry. mine requires a InputDevice section in the xorg.conf It just happened again (emacs, with the same stack trace I pasted above) and I confirm: - no message at Xorg.0.log - no relation with hyperthrashing (I now have many free Gb of RAM) or slow programs under stress; the hang happens during normal conditions The nearest „strange thing“ I did before the hang was to change window (as I do hundreds of times each day) with wmii. Just FYI; I think I'm experiencing the same bug with both of urxvt v9.14 from Ubuntu 12.04.4 APT and urxvt v9.20 from SF.net tarball. A burst of visual bells (such caused by pressing 'k' on less, perhaps with "xset r rate 200 100") reproducibly causes urxvt to hang. When I rebuilt urxvt with --disable-xim, the problem disappered. My XIM server is ibus 1.4.1-3ubuntu1. I guess this is related to https://bugzilla.redhat.com/show_bug.cgi?id=452849#c19 According to Akira's analysis, it was a deadlock of an X client, though he could find a workaround at his XIM server wrapper side. A stack trace from urxvt v9.20 #0 0x00007ffff75b7a08 in __GI___poll (fds=0x7fffffffa5b0, nfds=1, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:83 #1 0x00007ffff72ba862 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007ffff72bc01f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #3 0x00007ffff7ae2ba8 in _XReadEvents () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #4 0x00007ffff7aca390 in XIfEvent () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #5 0x00007ffff7b12d64 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #6 0x00007ffff7b13b09 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #7 0x00007ffff7b13d8b in _XimRead () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #8 0x00007ffff7b01879 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #9 0x00007ffff7aefd3e in XSetICValues () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #10 0x000000000041af40 in rxvt_term::im_send_spot (this=0x71b4b0) at main.C:1266 #11 0x000000000040f0fa in rxvt_term::flush (this=0x71b4b0) at command.C:1021 #12 0x000000000041ff82 in rxvt_term::scr_bell (this=0x71b4b0) at screen.C:1966 #13 0x000000000040c839 in rxvt_term::cmd_parse (this=0x71b4b0) at command.C:2376 #14 0x0000000000411e14 in rxvt_term::pty_cb (this=0x71b4b0, w=..., revents=1) at command.C:1244 #15 0x00000000004298c0 in ev_invoke_pending () at ./../libev/ev.c:3061 #16 0x000000000042aad1 in ev_run (flags=<optimized out>) at ./../libev/ev.c:3461 #17 0x000000000040a3f5 in main (argc=1, argv=0x7fffffffdf38) at rxvt.C:38 I support last comment, that's a good finding. It seems fast keyboard input helped me to reproduce the bug in some cases (but still very seldom! even with xset and visual bell in screen), and it seems that disabling XIM in Emacs (through .Xresources) keeps Emacs safe. Anyway I had seen the bug also with slow keyboard input (that is, without holding keys for seconds, just typing normally). After 4 months of daily use of urxvt and a XIM-less emacs (as in previous comment), I can state again: Emacs has never hung anymore, while urxvt has, though very rarely (I think just once, right now). It seemed related to typing while urxvt was loading. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/35. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.