Subject: 25.1; suspend-frame "freezes" Emacs under i3-wm

From: Benjamin Riefenstahl <[email-masked]>
Date: Sun, 31 Jul 2016 16:03:33 +0200

When I incidentially press C-z under i3-wm, Emacs stops.  The window
stays up (there is no "iconify" under i3-wm), but the cursor does not
blink any more and keystrokes do not have an effect.  The menus still
seem to work and once I have dropped down a menu, I can again edit text.
Still the cursor does not blink and it is hollow.  Usually all goes back
to normal when I switch buffers or when I go to another program and than
back to Emacs.

The output of gdb's "bt full" in this state is below, the output of
"xbacktrace" is empty.

This is with Emacs from git, branch emacs-25, i3-wm 4.8, X.org 1.16.4,
other info see below after the stacktrace.

    #0  0xb6330dc3 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    No symbol table info available.
    #1  0xb6329533 in pselect () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    No symbol table info available.
    #2  0x081fa8cc in xg_select (fds_lim=9, rfds=0xbff19e60, wfds=0xbff19ee0, efds=0x0, 
        timeout=0xbff19d88, sigmask=0x0) at xgselect.c:113
            all_rfds = {
              fds_bits = {464, 0 <repeats 31 times>}
            }
            all_wfds = {
              fds_bits = {0 <repeats 32 times>}
            }
            tmo = {
              tv_sec = -1074685848, 
              tv_nsec = 136045870
            }
            tmop = 0xbff19d88
            context = 0x8544550
            have_wfds = <optimized out>
            gfds_buf = {{
                fd = 7, 
                events = 1, 
                revents = 0
              }, {
                fd = 6, 
                events = 1, 
                revents = 0
              }, {
                fd = 8, 
                events = 1, 
                revents = 0
              }, {
                fd = -1074685644, 
                events = 0, 
              }, {
                fd = 13, 
                events = 13, 
                revents = 0
              }, {
                fd = 137618340, 
                events = 39060, 
                revents = 49137
              }, {
                fd = 138352243, 
                events = 58260, 
                revents = 2099
              }, {
                fd = 138352200, 
                events = 39680, 
                revents = 49137
              }, {
                fd = 138913520, 
                events = 12288, 
                revents = 2131
              }, {
                fd = -1233116855, 
                events = 58232, 
                revents = 2099
              }, {
                fd = 4323416, 
                events = 2, 
                revents = 0
              }, {
                fd = -1074685284, 
                events = 50207, 
                revents = 2072
              }, {
                fd = 137618324, 
                events = 58277, 
                revents = 2099
              }, {
                fd = 14, 
                events = 2, 
                revents = 0
              }, {
                fd = 0, 
                events = 39580, 
                revents = 49137
              }, {
                fd = 150078773, 
                events = 22224, 
                revents = 0
              }, {
                fd = 150209891, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                revents = 49137
              }, {
                fd = 12, 
                events = 58237, 
                revents = 2099
              }, {
                fd = 151153496, 
                events = 27272, 
                revents = 2306
              }, {
                fd = -1232916480, 
                events = 576, 
                revents = 2192
              }, {
                fd = -1074685288, 
                events = 58232, 
                revents = 2099
              }, {
                fd = 4323416, 
                events = 0, 
                revents = 0
              }, {
                fd = -1074685284, 
                events = 29423, 
                revents = 2073
              }, {
                fd = 142850336, 
                events = 13704, 
                revents = 0
              }, {
                fd = -11, 
                events = 0, 
                revents = 0
              }, {
                fd = 139671880, 
                events = 65008, 
                revents = 46655
              }, {
                fd = -1237320194, 
                events = 11091, 
                revents = 46606
              }, {
                fd = 6, 
                events = 39428, 
                revents = 49137
              }, {
                fd = -1237308187, 
                events = 13509, 
                revents = 46606
              }, {
                fd = 22224, 
                events = 0, 
                revents = 0
              }, {
                events = 15585, 
                revents = 2055
              }, {
                fd = 142850296, 
                events = 13704, 
                revents = 0
              }, {
                fd = 0, 
                events = 56034, 
                revents = 2072
              }, {
                fd = 1, 
                events = 39576, 
                revents = 49137
              }, {
                fd = 0, 
                events = 46819, 
                revents = 2071
              }, {
                fd = -1, 
                events = 18900, 
                revents = 2131
              }, {
                fd = 1, 
                events = 1, 
                revents = 0
              }, {
                fd = 151153152, 
                events = 27464, 
                revents = 2306
              }, {
                fd = 1077244, 
                events = 14752, 
                revents = 2131
              }, {
                fd = 4096, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 39420, 
                revents = 49137
              }, {
                fd = 1, 
                events = 39456, 
                revents = 49137
              }, {
                fd = 76, 
                events = 0, 
                revents = 0
              }, {
                fd = 13704, 
                events = 22224, 
                revents = 0
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 11, 
                events = 112, 
                revents = 0
              }, {
                fd = -1074685292, 
                events = 47134, 
                revents = 2072
              }, {
                fd = 13704, 
                events = 22224, 
                revents = 0
              }, {
                fd = 151153400, 
                events = 38656, 
                revents = 27953
              }, {
                fd = 4309048, 
                events = 1333, 
                revents = 2290
              }, {
                fd = -1233153767, 
                events = 12288, 
                revents = 46723
              }, {
                fd = 139631384, 
                events = 17744, 
                revents = 2132
              }, {
                fd = -1, 
                events = 8491, 
                revents = 46720
              }, {
                fd = 139965504, 
                events = 39576, 
                revents = 49137
              }, {
                fd = -1240585527, 
                events = 38656, 
                revents = 27953
              }, {
                fd = -1240477696, 
                events = 14664, 
                revents = 2131
              }, {
                fd = -1233153767, 
                events = 12288, 
                revents = 46723
              }, {
                fd = 139631384, 
                events = 17744, 
              }, {
                fd = -1, 
                events = 49184, 
                revents = 46655
              }, {
                fd = 139965504, 
                events = 39704, 
                revents = 2130
              }, {
                fd = 139740496, 
                events = 8651, 
                revents = 46720
              }, {
                fd = -1232916480, 
                events = 576, 
                revents = 2192
              }, {
                fd = 1, 
                events = 56216, 
                revents = 46720
              }, {
                fd = 143655640, 
                events = 12288, 
                revents = 2131
              }, {
                fd = -1233116855, 
                events = 38656, 
                revents = 27953
              }, {
                fd = -1232916480, 
                events = 56198, 
                revents = 46720
              }, {
                fd = -1232916480, 
                events = 24955, 
                revents = 46720
              }, {
                fd = -1074685160, 
                events = 17744, 
                revents = 2132
              }, {
                fd = -1, 
                events = 24940, 
                revents = 46720
              }, {
                fd = -1232916480, 
                events = 576, 
                revents = 2192
              }, {
                fd = -1074685160, 
                events = 31995, 
                revents = 46718
              }, {
                fd = -1074685160, 
                revents = 46720
              }, {
                fd = -1232916480, 
                events = 38656, 
                revents = 27953
              }, {
                fd = 143655640, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 38656, 
                revents = 27953
              }, {
                fd = -1232916480, 
                events = 576, 
                revents = 2192
              }, {
                fd = 1, 
                events = 36457, 
                revents = 46718
              }, {
                fd = 143655488, 
                events = 2, 
                revents = 0
              }, {
                fd = 0, 
                events = 36412, 
                revents = 46718
              }, {
                fd = -1242148864, 
                events = 39852, 
                revents = 49137
              }, {
                fd = 139740496, 
                events = 2700, 
                revents = 46767
              }, {
                fd = 143662280, 
                events = 56122, 
                revents = 46655
              }, {
                fd = -1229414400, 
                events = 2652, 
                revents = 46767
              }, {
                fd = 143662280, 
                events = 40960, 
                revents = 46776
              }, {
                fd = -1074685012, 
                events = 38012, 
                revents = 46863
              }, {
                events = 40960, 
                revents = 46776
              }, {
                fd = 2, 
                events = 18858, 
                revents = 2071
              }, {
                fd = 0, 
                events = 731, 
                revents = 2292
              }, {
                fd = -1074685012, 
                events = 39303, 
                revents = 46762
              }, {
                fd = 2147483647, 
                events = 0, 
                revents = 0
              }, {
                fd = -1, 
                events = 38984, 
                revents = 46762
              }, {
                fd = 139740496, 
                events = 315, 
                revents = 2184
              }, {
                fd = 2, 
                events = 9430, 
                revents = 2073
              }, {
                fd = 10, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 38656, 
                revents = 27953
              }, {
                fd = 139602528, 
                events = 27272, 
                revents = 2306
              }, {
                fd = 151153352, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 3, 
                events = 1, 
                revents = 0
                fd = -1074684832, 
                events = 1, 
                revents = 0
              }, {
                fd = 150209243, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 739, 
                revents = 2292
              }, {
                fd = 0, 
                events = 3, 
                revents = 0
              }, {
                fd = 0, 
                events = 2, 
                revents = 0
              }, {
                fd = 0, 
                events = 40128, 
                revents = 49137
              }, {
                fd = -1074684736, 
                events = 723, 
                revents = 2292
              }, {
                fd = 3, 
                events = 11415, 
                revents = 2066
              }, {
                fd = -1074684856, 
                events = 22430, 
                revents = 0
              }, {
                fd = 636, 
                events = 24511, 
                revents = 1
              }, {
                fd = 350000, 
                events = 0, 
                revents = 0
              }, {
                fd = -1074683784, 
                events = 9736, 
                revents = 2073
              }, {
                fd = 0, 
                events = 723, 
                revents = 2292
              }, {
                fd = 3, 
                events = 20635, 
              }, {
                fd = -1074684744, 
                events = 636, 
                revents = 22430
              }, {
                fd = 90047350, 
                events = 635, 
                revents = 22430
              }, {
                fd = 590943078, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 19956, 
                revents = 2066
              }, {
                fd = 0, 
                events = 40112, 
                revents = 49137
              }, {
                fd = 3, 
                events = 40231, 
                revents = 23
              }, {
                fd = 140889512, 
                events = 1333, 
                revents = 2290
              }, {
                fd = 499104272, 
                events = 0, 
                revents = 0
              }, {
                fd = 1547559, 
                events = 0, 
                revents = 0
              }, {
                fd = 1469973115, 
                events = 4966, 
                revents = 9017
              }, {
                fd = 150209235, 
                events = 739, 
                revents = 2292
              }, {
                fd = 3, 
                events = 3, 
                revents = 0
              }, {
                fd = 1469973115, 
                events = 4966, 
                revents = 9017
              }, {
                fd = 0, 
                revents = 7615
              }}
            gfds = <optimized out>
            gfds_size = <optimized out>
            n_gfds = <optimized out>
            retval = 0
            our_fds = 0
            max_fds = 8
            context_acquired = <optimized out>
            i = <optimized out>
            nfds = <optimized out>
            tmo_in_millisec = -1
            need_to_dispatch = <optimized out>
            sa_avail = <optimized out>
            sa_must_free = <optimized out>
    #3  0x081c83fc in wait_reading_process_output (time_limit=<optimized out>, nsecs=0, read_kbd=-1, 
        do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:4831
            process_skipped = <optimized out>
            channel = <optimized out>
            nfds = <optimized out>
            Available = {
              fds_bits = {80, 0 <repeats 31 times>}
            }
            Writeok = {
              fds_bits = {0 <repeats 32 times>}
            }
            check_write = <optimized out>
            check_delay = <optimized out>
            no_avail = <optimized out>
            xerrno = 11
            proc = <optimized out>
            timeout = {
              tv_sec = 0, 
              tv_nsec = 499104272
            }
            end_time = {
              tv_sec = 1469973142, 
              tv_nsec = 589870637
            }
            timer_delay = <optimized out>
            got_output_end_time = <optimized out>
            wait = TIMEOUT
            got_some_output = -1
            now = {
              tv_sec = 0, 
              tv_nsec = -1
            }
    #4  0x08061849 in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5762
            sec = 30
            nsec = 0
            do_display = true
    #5  0x0812ad7e in read_char (commandflag=1, map=150212091, prev_event=0, used_mouse_menu=0xbff1a52b, 
        end_time=0x0) at keyboard.c:2714
            tem0 = -514
            local_getcjmp = {{
                __jmpbuf = {1, 0, 139996144, 0, 74246092, -1039961437}, 
                __mask_was_saved = 0, 
                __saved_mask = {
                  __val = {1, 14736, 152122696, 3002, 3220284408, 1, 150706020, 749, 3220284144, 
                    4294967295, 152122696, 3002, 3220284408, 136134786, 151957259, 14736, 1, 4294967295, 
                    152122696, 3002, 4294967295, 135791145, 151957259, 14736, 152122701, 0, 3220284228, 
                    3220284228, 3, 1833051, 152122696, 139986917}
                }
              }}
            save_jump = {{
                __jmpbuf = {0, 0, 0, 0, 0, 0}, 
                __mask_was_saved = 0, 
                __saved_mask = {
                  __val = {0 <repeats 32 times>}
                }
              }}
            save = 139045248
            previous_echo_area_message = 0
            also_record = 0
            reread = false
            recorded = false
            polling_stopped_here = false
    #6  0x0812ba04 in read_key_sequence (keybuf=0xfffffdfe, prompt=-1074685888, dont_downcase_last=192, 
        can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false, 
        bufsize=<optimized out>) at keyboard.c:9063
            interrupted_kboard = 0x0
            used_mouse_menu = false
            fkey = {
              parent = 141434355, 
              map = 141434355, 
              start = 0, 
              end = 0
            }
            keytran = {
              parent = 139348755, 
              map = 139348755, 
              start = 0, 
              end = 0
            }
            indec = {
              parent = 141434363, 
              map = 141434363, 
              start = 0, 
              end = 0
            }
    #7  0x0812d37c in command_loop_1 () at keyboard.c:1365
            keybuf = {106, 446, 14208, 152197003, -1074682345, 135415282, 215528, 152197003, 137017684, 0, 
              -1074682345, 0, 0, 135415545, 152197003, -1074682345, 1, 135415597, 141884563, 15842327, 
              -1074681992, 0, 141884563, 0, 1, 135836368, 9528, 1, -1074681992, 135397824}
            i = 0
            prev_buffer = 0x9113548
    #8  0x0818b424 in internal_condition_case (bfun=0x812d1b0 <command_loop_1>, handlers=9528, 
        hfun=0x8124610 <cmd_error>) at eval.c:1309
            c = <optimized out>
    #9  0x0812019f in command_loop_2 (ignore=0) at keyboard.c:1107
            val = -514
    #10 0x0818b3bb in internal_catch (tag=22920, func=0x8120180 <command_loop_2>, arg=0) at eval.c:1074
            val = -514
            c = <optimized out>
    #11 0x0812015a in command_loop () at keyboard.c:1086
    No locals.
    #12 0x08124282 in recursive_edit_1 () at keyboard.c:692
            val = -514
    #13 0x08124567 in Frecursive_edit () at keyboard.c:763
            buffer = <optimized out>
    #14 0x080580a9 in main (argc=<optimized out>, argv=0xbff1a824) at emacs.c:1626
            dummy = -1235947096
            stack_bottom_variable = 0 '\000'
            do_initial_setlocale = <optimized out>
            dumping = <optimized out>
            skip_args = 0
            rlim = {
              rlim_cur = 8388608, 
              rlim_max = 18446744073709551615
            }
            no_loadup = <optimized out>
            junk = 0x0
            dname_arg = 0x0
            ch_to_dir = 0x0
            original_pwd = <optimized out>

In GNU Emacs 25.1.2 (i686-pc-linux-gnu, GTK+ Version 2.24.25)
 of 2016-07-31 built on justinian
Repository revision: b275cc76f0c5ab49e81445fcc3420c8772aefd42
Windowing system distributor 'The X.Org Foundation', version 11.0.11604000
System Description:	Debian GNU/Linux 8.5 (jessie)

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit [2 times]
Type C-x 1 to delete the help window.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr cl-extra emacsbug message dired format-spec
rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 8 88857 9362)
 (symbols 24 20008 0)
 (miscs 20 57 180)
 (strings 16 14862 3408)
 (string-bytes 1 413938)
 (vectors 8 12494)
 (vector-slots 4 447083 8134)
 (floats 8 170 170)
 (intervals 28 217 10)
 (buffers 520 20)
 (heap 1024 12141 1324))