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

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

Eli Zaretskii writes:
> Thanks.  Can you please recreate the problem in an unoptimized build,
> and post a backtrace from that?  Backtraces from optimized builds are
> frequently misleading and/or missing vital information.

Sure, see below.

    #0  0xb6331dc3 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    No symbol table info available.
    #1  0xb632a533 in pselect () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    No symbol table info available.
    #2  0x08280216 in xg_select (fds_lim=9, rfds=0xbfa5c204, wfds=0xbfa5c184, efds=0x0, 
        timeout=0xbfa5c178, 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 = 167607947, 
              tv_nsec = -1079656808
            }
            tmop = 0xbfa5c178
            context = 0x9e6d5b0
            have_wfds = true
            gfds_buf = {{
                fd = 7, 
                events = 1, 
                revents = 0
              }, {
                fd = 6, 
                events = 1, 
                revents = 0
              }, {
                fd = 8, 
                events = 1, 
                revents = 0
              }, {
                fd = 139526984, 
                events = 17565, 
              }, {
                fd = 13704, 
                events = 47800, 
                revents = 49061
              }, {
                fd = 136168266, 
                events = 13704, 
                revents = 0
              }, {
                fd = 22224, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 20606, 
                revents = 2070
              }, {
                fd = 22224, 
                events = 47864, 
                revents = 49061
              }, {
                fd = 136170433, 
                events = 13704, 
                revents = 0
              }, {
                fd = 22224, 
                events = 9, 
                revents = 0
              }, {
                fd = -1079657768, 
                events = 18740, 
                revents = 2070
              }, {
                fd = 167145149, 
                events = 47928, 
                revents = 49061
              }, {
                fd = 136176230, 
                events = 27108, 
                revents = 2127
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = -1079657736, 
                events = 17565, 
                revents = 2070
              }, {
                fd = 139513280, 
                events = 47928, 
                revents = 49061
              }, {
                fd = 136284775, 
                revents = 0
              }, {
                fd = 22224, 
                events = 47928, 
                revents = 49061
              }, {
                fd = 136168188, 
                events = 982, 
                revents = 0
              }, {
                fd = 6, 
                events = 47928, 
                revents = 49061
              }, {
                fd = 136283574, 
                events = 1691, 
                revents = 2556
              }, {
                fd = 0, 
                events = 13704, 
                revents = 0
              }, {
                fd = 0, 
                events = 17565, 
                revents = 2070
              }, {
                fd = 0, 
                events = 48488, 
                revents = 49061
              }, {
                fd = 136521996, 
                events = 7, 
                revents = 0
              }, {
                fd = 0, 
                events = 48488, 
                revents = 49061
              }, {
                fd = 136524951, 
                events = 41861, 
                revents = 2106
              }, {
                fd = 0, 
                events = 2, 
                revents = 0
              }, {
                fd = 0, 
                events = 26, 
                revents = 0
              }, {
                fd = 138060660, 
                events = 48488, 
                revents = 49061
              }, {
                events = 41844, 
                revents = 2106
              }, {
                fd = -1079657576, 
                events = 48488, 
                revents = 49061
              }, {
                fd = 136519287, 
                events = 65535, 
                revents = 32767
              }, {
                fd = 0, 
                events = 65535, 
                revents = 65535
              }, {
                fd = -1230329784, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 3, 
                events = 62112, 
                revents = 2114
              }, {
                fd = 138060660, 
                events = 61930, 
                revents = 2114
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 564762112, 
                events = 58568, 
                revents = 2160
              }, {
                fd = 3, 
                events = 40857, 
                revents = 46762
              }, {
                fd = -1229410304, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 0, 
                events = 3, 
                revents = 0
              }, {
                fd = -1230327780, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 2147483647, 
                events = 58568, 
                revents = 2160
                fd = 3, 
                events = 46532, 
                revents = 46776
              }, {
                fd = -1230266224, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 46532, 
                revents = 46776
              }, {
                fd = 2147483647, 
                events = 0, 
                revents = 0
              }, {
                fd = 564762112, 
                events = 16384, 
                revents = 46723
              }, {
                fd = 166443520, 
                events = 44763, 
                revents = 46762
              }, {
                fd = -1229410304, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 0, 
                events = 48248, 
                revents = 49061
              }, {
                fd = -1230327474, 
                events = 54704, 
                revents = 2534
              }, {
                fd = -1229410304, 
                events = 0, 
                revents = 0
              }, {
                fd = -1230327451, 
                events = 11807, 
                revents = 2167
              }, {
                fd = 167511427, 
                events = 48216, 
                revents = 49061
              }, {
                fd = 135749784, 
                events = 0, 
                revents = 0
              }, {
                fd = -1229410304, 
                events = 48268, 
              }, {
                fd = -1223711620, 
                events = 41911, 
                revents = 46888
              }, {
                fd = 0, 
                events = 48248, 
                revents = 49061
              }, {
                fd = 135503759, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 166386016, 
                events = 65525, 
                revents = 65535
              }, {
                fd = 0, 
                events = 51528, 
                revents = 2533
              }, {
                fd = -1237316112, 
                events = 3582, 
                revents = 46656
              }, {
                fd = -1240581293, 
                events = 6, 
                revents = 0
              }, {
                fd = -1079657244, 
                events = 15589, 
                revents = 46656
              }, {
                fd = -1240578875, 
                events = 45600, 
                revents = 2532
              }, {
                fd = 134, 
                events = 2275, 
                revents = 2097
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 0, 
                revents = 0
              }, {
                fd = 167145568, 
                events = 65535, 
                revents = 65535
              }, {
                fd = 166058452, 
                events = 0, 
                revents = 0
              }, {
                fd = 1, 
                events = 0, 
                revents = 0
              }, {
                fd = 167145149, 
                events = 22224, 
                revents = 0
              }, {
                fd = 166054304, 
                events = 4096, 
                revents = 0
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = -1079657252, 
                events = 1, 
                revents = 0
              }, {
                fd = -1079657216, 
                events = 76, 
                revents = 0
              }, {
                fd = 0, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 0, 
                events = 48408, 
                revents = 49061
              }, {
                fd = 135749694, 
                events = 54704, 
                revents = 2534
              }, {
                fd = 13704, 
                events = 48456, 
                revents = 49061
              }, {
                fd = 136328803, 
                events = 13704, 
                revents = 0
              }, {
                events = 0, 
                revents = 0
              }, {
                fd = 564762112, 
                events = 18632, 
                revents = 2070
              }, {
                fd = 143268013, 
                events = 41241, 
                revents = 46719
              }, {
                fd = -1232912384, 
                events = 11840, 
                revents = 2533
              }, {
                fd = 166122928, 
                events = 65535, 
                revents = 65535
              }, {
                fd = -1233112789, 
                events = 17784, 
                revents = 2538
              }, {
                fd = 7, 
                events = 15049, 
                revents = 46606
              }, {
                fd = 564762112, 
                events = 57344, 
                revents = 46607
              }, {
                fd = 166054216, 
                events = 41241, 
                revents = 46719
              }, {
                fd = -1232912384, 
                events = 11840, 
                revents = 2533
              }, {
                fd = 166122928, 
                events = 65535, 
                revents = 65535
              }, {
                fd = -1237331936, 
                events = 17784, 
                revents = 2538
              }, {
                fd = 166014528, 
                events = 54704, 
                revents = 2534
              }, {
                fd = -1233112629, 
                events = 16384, 
                revents = 46723
                fd = 166443520, 
                events = 1, 
                revents = 0
              }, {
                fd = -1233065064, 
                events = 47768, 
                revents = 2539
              }, {
                fd = 166051840, 
                events = 12617, 
                revents = 46720
              }, {
                fd = 564762112, 
                events = 16384, 
                revents = 46723
              }, {
                fd = -1233065082, 
                events = 16384, 
                revents = 46723
              }, {
                fd = -1233096325, 
                events = 48632, 
                revents = 49061
              }, {
                fd = 166122928, 
                events = 65535, 
                revents = 65535
              }, {
                fd = -1233096340, 
                events = 16384, 
                revents = 46723
              }, {
                fd = 166443520, 
                events = 48632, 
                revents = 49061
              }, {
                fd = -1233220357, 
                events = 48632, 
                revents = 49061
              }, {
                fd = -1233065146, 
                events = 16384, 
                revents = 46723
              }, {
                fd = 564762112, 
                events = 47768, 
                revents = 2539
              }, {
                fd = 0, 
                events = 0, 
                revents = 0
              }, {
                fd = 564762112, 
                events = 16384, 
              }, {
                fd = 166443520, 
                events = 1, 
                revents = 0
              }, {
                fd = -1233215895, 
                events = 47616, 
                revents = 2539
              }, {
                fd = 2, 
                events = 40247, 
                revents = 13737
              }, {
                fd = -1233215940, 
                events = 24576, 
                revents = 46582
              }, {
                fd = -1079656820, 
                events = 54704, 
                revents = 2534
              }, {
                fd = -1230038388, 
                events = 11608, 
                revents = 2533
              }, {
                fd = -1237324998, 
                events = 45056, 
                revents = 46776
              }, {
                fd = -1230038436, 
                events = 11608, 
                revents = 2533
              }, {
                fd = -1229410304, 
                events = 48780, 
                revents = 49061
              }, {
                fd = -1223711620, 
                events = 6727, 
                revents = 46767
              }, {
                fd = -1229410304, 
                events = 54704, 
                revents = 2534
              }, {
                fd = -1079656856, 
                events = 17715, 
                revents = 2070
              }, {
                fd = 167607955, 
                events = 48792, 
                revents = 49061
              }, {
                fd = 136131980, 
                revents = 2557
              }}
            gfds = 0xbfa5ba74
            gfds_size = 128
            n_gfds = 3
            retval = 0
            our_fds = 0
            max_fds = 8
            context_acquired = true
            i = 3
            nfds = 139513280
            tmo_in_millisec = -1
            need_to_dispatch = 8
            sa_avail = 16384
            sa_count = 4
            sa_must_free = false
    #3  0x0823ec78 in wait_reading_process_output (time_limit=30, 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 = false
            channel = 1024
            nfds = 0
            Available = {
              fds_bits = {80, 0 <repeats 31 times>}
            }
            Writeok = {
              fds_bits = {0 <repeats 32 times>}
            }
            check_write = true
            check_delay = 0
            no_avail = false
            xerrno = 11
            proc = -1079655704
            timeout = {
              tv_sec = 0, 
              tv_nsec = 498959630
            }
            end_time = {
              tv_sec = 1469976810, 
              tv_nsec = 399266284
            }
            timer_delay = {
              tv_sec = 0, 
              tv_nsec = 498959630
            }
            got_output_end_time = {
              tv_sec = 1469976810, 
              tv_nsec = 399266284
            }
            wait = TIMEOUT
            got_some_output = -1
            count = 3
            now = {
              tv_sec = 0, 
              tv_nsec = -1
    #4  0x080629f2 in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5762
            sec = 30
            nsec = 0
            do_display = true
    #5  0x0816e7ef in read_char (commandflag=1, map=167511299, prev_event=0, used_mouse_menu=0xbfa5c5df, 
        end_time=0x0) at keyboard.c:2714
            tem0 = -1079655048
            timeout = 30
            delay_level = 4
            buffer_size = 1
            c = 0
            jmpcount = 3
            local_getcjmp = {{
                __jmpbuf = {0, 8388608, 0, -1079655016, -1964718513, -324554976}, 
                __mask_was_saved = 0, 
                __saved_mask = {
                  __val = {27640968, 40, 3215311808, 0, 3215312056, 136168112, 142272912, 142272912, 
                    3215312088, 135787174, 0, 3, 0, 3215312056, 135677085, 139513280, 3215312152, 
                    135796804, 0, 14736, 0, 3215312088, 135677085, 139513280, 3215312152, 136284775, 0, 
                    167511291, 3215312152, 136131980, 167511291, 0}
                }
              }}
            save_jump = {{
                __jmpbuf = {0, 0, 0, 0, 0, 0}, 
                __mask_was_saved = 0, 
                __saved_mask = {
                  __val = {0 <repeats 32 times>}
                }
              }}
            tem = -1079655096
            save = 135677085
            previous_echo_area_message = 0
            also_record = 0
            reread = false
            recorded = false
            polling_stopped_here = false
            orig_kboard = 0x9eabb08
    #6  0x08179c54 in read_key_sequence (keybuf=0xbfa5c6e4, bufsize=30, prompt=0, 
        dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, 
        prevent_redisplay=false) at keyboard.c:9063
            interrupted_kboard = 0x9eabb08
            interrupted_frame = 0x9f67060
            key = -1079654756
            used_mouse_menu = false
            echo_local_start = 0
            last_real_key_start = 0
            keys_local_start = 0
            new_binding = 0
            count = 3
            t = 0
            echo_start = 0
            keys_start = 0
            current_binding = 167511299
            first_event = 0
            mock_input = 0
            fkey = {
              parent = 141781043, 
              map = 141781043, 
              start = 0, 
              end = 0
            }
            keytran = {
              parent = 139692819, 
              map = 139692819, 
              start = 0, 
              end = 0
            }
            indec = {
              parent = 141781139, 
              map = 141781139, 
              start = 0, 
              end = 0
            }
            shift_translated = false
            delayed_switch_frame = 0
            original_uppercase = -1079654911
            original_uppercase_position = -1
            dummyflag = false
            starting_buffer = 0x85408f8
            fake_prefixed_keys = 0
    #7  0x0816ba86 in command_loop_1 () at keyboard.c:1365
            cmd = 257264
            keybuf = {442, 0, -1079654664, 135677085, 139513280, -1079654632, 135704696, 0, 142140523, 0, 
              -1079654632, 135677085, 139513280, -1079654584, 136268725, 0, -1079654593, -1079654584, 
              136268768, 8388608, 0, -1079654552, 165982544, 3, 141565579, -1079654536, 136268564, 9528, 
              1, 0}
            i = 1
            prev_modiff = 27
            prev_buffer = 0x85408f8
            already_adjusted = false
    #8  0x081f4971 in internal_condition_case (bfun=0x816b641 <command_loop_1>, handlers=9528, 
        hfun=0x816ae1d <cmd_error>) at eval.c:1309
            val = 9528
            c = 0x9e4b150
    #9  0x0816b332 in command_loop_2 (ignore=0) at keyboard.c:1107
            val = 2
    #10 0x081f438e in internal_catch (tag=22920, func=0x816b308 <command_loop_2>, arg=0) at eval.c:1074
            val = 22920
            c = 0x9e4b080
    #11 0x0816b2c5 in command_loop () at keyboard.c:1086
    No locals.
    #12 0x0816aa49 in recursive_edit_1 () at keyboard.c:692
            count = 1
            val = -1079654296
    #13 0x0816abdc in Frecursive_edit () at keyboard.c:763
            count = 0
            buffer = 0
    #14 0x08168cbf in main (argc=2, argv=0xbfa5c9c4) at emacs.c:1626
            stack_bottom_variable = 0 '\000'
            do_initial_setlocale = true
            dumping = false
            skip_args = 0
            rlim = {
              rlim_cur = 8388608, 
              rlim_max = 18446744073709551615
            }
            no_loadup = false
            junk = 0x0
            dname_arg = 0x0
            ch_to_dir = 0x0
            original_pwd = 0x0