Subject: bug#20036: 24.4.90; Emacs hangs/freezes

From: Justin Kirby <[email-masked]>
Date: Fri, 27 Mar 2015 18:12:37 -0400

Glenn Morris <[email-masked]> writes:

> This looks the same as
>
> http://debbugs.gnu.org/6842
>
> which is ibus-related, apparently.

The system has been running continuously without suspending since
starting this latest emacs session. There is no indication that ibus has
restarted or any other problems

Configured using:
 `configure --build x86_64-linux-gnu --build x86_64-linux-gnu
 --with-pop=yes --with-x=yes --with-x-toolkit=gtk3
 --with-toolkit-scroll-bars 'CFLAGS=-g3 -Og -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions
 -Wl,-z,relro''

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Special

Minor modes in effect:
  smooth-scroll-mode: t
  helm-mode: t
  helm-match-plugin-mode: t
  helm-occur-match-plugin-mode: t
  show-paren-mode: t
  pyvenv-mode: t
  savehist-mode: t
  jabber-activity-mode: t
  global-git-gutter+-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-1> C-x 1 M-x e m a <backspace> 
<backspace> <backspace> r e p o r t - e m <return>

bt full:

#0  0x00007ffff25b912d in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007fffeee7ab72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#2  0x00007fffeee7c64f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
No symbol table info available.
#3  0x00007ffff4c9a198 in _XReadEvents () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#4  0x00007ffff4c82751 in XIfEvent () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#5  0x00007ffff4cc8f24 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#6  0x00007ffff4cc9b80 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#7  0x00007ffff4cc9e71 in _XimRead () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#8  0x00007ffff4cb88a6 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#9  0x00007ffff4ca6b3d in XSetICValues () from /usr/lib/x86_64-linux-gnu/libX11.so.6
No symbol table info available.
#10 0x00000000004bd419 in xic_set_preeditarea (w=w@entry=0x91de1a0, x=x@entry=0, y=y@entry=361) at xfns.c:2107
        attr = 0xa78b3c0
        spot = {x = 9, y = 376}
#11 0x00000000004ac4c8 in x_draw_window_cursor (w=0x91de1a0, glyph_row=<optimized out>, x=0, y=361, cursor_type=<optimized out>, 
    cursor_width=<optimized out>, on_p=<optimized out>, active_p=<optimized out>) at xterm.c:7331
No locals.
#12 0x00000000004544a4 in display_and_set_cursor (w=w@entry=0x91de1a0, on=on@entry=true, hpos=0, vpos=19, x=0, y=361) at xdisp.c:27572
        new_cursor_type = 0
        new_cursor_width = 1
        active_cursor = 1
        glyph_row = 0x8930fe0
        glyph = <optimized out>
#13 0x00000000004adc53 in x_update_window_end (w=0x91de1a0, cursor_on_p=<optimized out>, mouse_face_overwritten_p=<optimized out>) at xterm.c:582
No locals.
#14 0x000000000041a8da in update_window (w=w@entry=0x91de1a0, force_p=force_p@entry=true) at dispnew.c:3535
        end = 0x86d5110
        mode_line_row = 0x86d5110
        header_line_row = <optimized out>
        changed_p = <optimized out>
        mouse_face_overwritten_p = false
        row = <optimized out>
        yb = <optimized out>
        n_updated = <optimized out>
        desired_matrix = <optimized out>
        paused_p = false
        preempt_count = <optimized out>
        rif = <optimized out>
#15 0x000000000041a96d in update_window_tree (w=0x91de1a0, force_p=force_p@entry=true) at dispnew.c:3210
        paused_p = false
#16 0x000000000041a955 in update_window_tree (w=w@entry=0x7742cd0, force_p=force_p@entry=true) at dispnew.c:3208
        paused_p = false
#17 0x000000000041c259 in update_frame (f=f@entry=0x5e68528, force_p=true, force_p@entry=false, inhibit_hairy_id_p=inhibit_hairy_id_p@entry=false)
    at dispnew.c:3099
        paused_p = <optimized out>
#18 0x000000000044bfd0 in redisplay_internal () at xdisp.c:14030
        mini_window = <optimized out>
        w = 0x91de1a0
        sw = <optimized out>
        pending = 0
        must_finish = <optimized out>
        match_p = <optimized out>
        tlbufpos = {charpos = 99298133, bytepos = 558}
        tlendpos = {charpos = 9179, bytepos = 9179}
        number_of_visible_frames = <optimized out>
        sf = 0x5e68528
        polling_stopped_here = 1
        tail = <optimized out>
        consider_all_windows_p = <optimized out>
        update_miniwindow_p = <optimized out>
#19 0x000000000044cd0e in redisplay () at xdisp.c:13207
No locals.
#20 0x00000000004e1cfe in read_char (commandflag=1, map=map@entry=87118598, prev_event=12005682, used_mouse_menu=used_mouse_menu@entry=0x7fffffffdbbb, 
    end_time=end_time@entry=0x0) at keyboard.c:2570
        c = <optimized out>
        local_getcjmp = {{__jmpbuf = {4611686019484352512, 0, 4611686018595160064, 5502441, 140737488345536, 4, 1, 5773536}, __mask_was_saved = -9760, 
            __saved_mask = {__val = {582, 583, 5777369, 0, 140737488345592, 92027624, 5789699, 584, 5453221, 12193058, 87121136, 2, 0, 2336, 16166224, 
                16252962}}}}
        save_jump = {{__jmpbuf = {16345424, 5153361, 12005682, 8, 12038258, 87121141, 9763, 0}, __mask_was_saved = -9544, __saved_mask = {__val = {12005682, 
                12005682, 96280982, 17977005, 87118614, 4294967295, 12005682, 12005730, 2, 12005682, 5154634, 39366918, 12005682, 86164, 42351456, 1}}}}
        tem = <optimized out>
        save = <optimized out>
        previous_echo_area_message = 12005682
        also_record = 12005682
        reread = false
        polling_stopped_here = false
        orig_kboard = 0xd24eb0
#21 0x00000000004e3302 in read_key_sequence (keybuf=keybuf@entry=0x7fffffffdc80, bufsize=bufsize@entry=30, prompt=12005682, 
    dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, 
    fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at keyboard.c:9088
        interrupted_kboard = 0xd24eb0
        interrupted_frame = 0x5e68528
        key = <optimized out>
        used_mouse_menu = false
        echo_local_start = 0
        last_real_key_start = <optimized out>
        keys_local_start = <optimized out>
        new_binding = <optimized out>
        t = <optimized out>
        echo_start = 0
        keys_start = 0
        current_binding = 87118598
        first_event = 12005682
        first_unbound = 31
        mock_input = 0
        fkey = {parent = 15799430, map = 15799430, start = 0, end = 0}
        keytran = {parent = 11985478, map = 11985478, start = 0, end = 0}
        indec = {parent = 15799462, map = 15799462, start = 0, end = 0}
        shift_translated = false
        delayed_switch_frame = 12005682
        original_uppercase = 8649276117469031424
        original_uppercase_position = -1
        dummyflag = false
        starting_buffer = 0x5315cf0
        fake_prefixed_keys = 12005682
#22 0x00000000004e48bb in command_loop_1 () at keyboard.c:1452
        cmd = <optimized out>
        keybuf = {12047538, 444, 140737488346360, 2, 22674384, 8649276117469031424, 390842032849, 49727126, 49727126, 140737488346692, 0, 0, 9466365, 
          5508093, 12053138, 49727126, 8513249, 9466365, 9466365, 5098287, 64, 12005682, 12005682, 5098583, 12253952, 4000, 140737488346692, 0, 0, 5511372}
        i = <optimized out>
        prev_modiff = 86164
        prev_buffer = 0x5315cf0
#23 0x000000000053dbea in internal_condition_case (bfun=bfun@entry=0x4e45c4 <command_loop_1>, handlers=12057250, hfun=hfun@entry=0x4dcb44 <cmd_error>)
    at eval.c:1348
        val = <optimized out>
        c = <optimized out>
#24 0x00000000004d7eff in command_loop_2 (ignore=ignore@entry=12005682) at keyboard.c:1177
        val = <optimized out>
#25 0x000000000053dacb in internal_catch (tag=12053186, func=func@entry=0x4d7ee5 <command_loop_2>, arg=12005682) at eval.c:1112
        val = <optimized out>
        c = <optimized out>
#26 0x00000000004d7e97 in command_loop () at keyboard.c:1156
No locals.
#27 0x00000000004dc7ba in recursive_edit_1 () at keyboard.c:777
        val = <optimized out>
#28 0x00000000004dca8a in Frecursive_edit () at keyboard.c:848
        buffer = <optimized out>
#29 0x00000000004d7924 in main (argc=<optimized out>, argv=0x7fffffffdf98) at emacs.c:1646
        dummy = 0
        stack_bottom_variable = -1 '\377'
        do_initial_setlocale = <optimized out>
        dumping = false
        skip_args = 0
        rlim = {rlim_cur = 8720000, rlim_max = 18446744073709551615}
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x1344fc0 "@p4\001"
        original_pwd = 0x0