emacs freezes after Auto-saving done on large text file

Bug #1405607 reported by themusicgod1 on 2014-12-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs24 (Ubuntu)
High
Unassigned

Bug Description

Seems like if I'm editing a particularly large text file (130Mb) and I'm typing while it auto-saves, emacs enters a non-responsive state (the zenity ""emacs" is not responding - you may choose to wait a short while for it to continue or force the application to quit entirely" window. comes up). Not 100% consistently, but pretty consistently.

emacs24:
  Installed: 24.4+1-4ubuntu1
  Candidate: 24.4+1-4ubuntu1
  Version table:
 *** 24.4+1-4ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
libx11-6:
  Installed: 2:1.6.2-2ubuntu2
  Candidate: 2:1.6.2-2ubuntu2
  Version table:
 *** 2:1.6.2-2ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
libglib2.0-0:
  Installed: 2.43.2-1ubuntu1
  Candidate: 2.43.2-1ubuntu1
  Version table:
 *** 2.43.2-1ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
libglib2.0-0-dbg:
  Installed: 2.43.2-1ubuntu1
  Candidate: 2.43.2-1ubuntu1
  Version table:
 *** 2.43.2-1ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
libc6:
  Installed: 2.19-13ubuntu3
  Candidate: 2.19-13ubuntu3
  Version table:
 *** 2.19-13ubuntu3 0
        500 http://ca.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Ubuntu: 15.04

Linux Hedy 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[Switching to thread 1 (Thread 0x7f41a5fffa80 (LWP 3119))]
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f419be5bb72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007f419be5d64f in xcb_wait_for_event ()
   from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007f41a2b0f3a8 in _XReadEvents ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4 0x00007f41a2af7889 in XIfEvent ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5 0x00007f41a2b3e6e7 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6 0x00007f41a2b3f317 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7 0x00007f41a2b3f5f1 in _XimRead ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#8 0x00007f41a2b2e1a6 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#9 0x00007f41a2b1c0ad in XSetICValues ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00000000004cf585 in ?? ()
#11 0x00000000004be352 in ?? ()
#12 0x0000000000459c22 in ?? ()
#13 0x00000000004bccdc in ?? ()
#14 0x000000000041de46 in ?? ()
#15 0x000000000041f11b in ?? ()
#16 0x000000000042147d in ?? ()
---Type <return> to continue, or q <return> to quit---
#17 0x000000000045296c in ?? ()
#18 0x00000000004f5243 in ?? ()
#19 0x00000000004f615f in ?? ()
#20 0x00000000004f7ed0 in ?? ()
#21 0x000000000055aaa7 in ?? ()
#22 0x00000000004ea3ee in ?? ()
#23 0x000000000055a98b in ?? ()
#24 0x00000000004ee9f7 in ?? ()
#25 0x00000000004eed10 in ?? ()
#26 0x0000000000418509 in ?? ()
#27 0x00007f419f301ec5 in __libc_start_main (main=0x417ab0, argc=1,
    argv=0x7ffff93b7878, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7ffff93b7868) at libc-start.c:287
#28 0x0000000000418fbe in ?? ()
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f418f9bd700 (LWP 3175))]
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f41a327814c in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7f41840010c0, timeout=-1, context=0x21da5d0)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:4103
#2 g_main_context_iterate (context=context@entry=0x21da5d0,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:3803
#3 0x00007f41a327825c in g_main_context_iteration (context=0x21da5d0,
    may_block=1) at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:3869
#4 0x00007f418f9c527d in ?? ()
   from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#5 0x00007f41a329eb95 in g_thread_proxy (data=0x2275450)
    at /build/buildd/glib2.0-2.43.2/./glib/gthread.c:764
#6 0x00007f419f6ad0a5 in start_thread (arg=0x7f418f9bd700)
    at pthread_create.c:309
#7 0x00007f419f3da90d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 3
[Switching to thread 3 (Thread 0x7f41953eb700 (LWP 3157))]
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f41a327814c in g_main_context_poll (priority=2147483647, n_fds=2,
    fds=0x7f41880010c0, timeout=-1, context=0x20cc520)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:4103
#2 g_main_context_iterate (context=0x20cc520, block=block@entry=1,
    dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:3803
#3 0x00007f41a32784d2 in g_main_loop_run (loop=0x20cc4b0)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:4002
#4 0x00007f41a386bd56 in gdbus_shared_thread_func (user_data=0x20cc4f0)
    at /build/buildd/glib2.0-2.43.2/./gio/gdbusprivate.c:273
#5 0x00007f41a329eb95 in g_thread_proxy (data=0x13c08f0)
    at /build/buildd/glib2.0-2.43.2/./glib/gthread.c:764
#6 0x00007f419f6ad0a5 in start_thread (arg=0x7f41953eb700)
    at pthread_create.c:309
#7 0x00007f419f3da90d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) thread 4
[Switching to thread 4 (Thread 0x7f419605b700 (LWP 3123))]
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0 0x00007f419f3d045d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f41a327814c in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7f41900008e0, timeout=-1, context=0x13bf910)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:4103
#2 g_main_context_iterate (context=context@entry=0x13bf910,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:3803
#3 0x00007f41a327825c in g_main_context_iteration (context=0x13bf910,
    may_block=may_block@entry=1)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:3869
#4 0x00007f41a3278299 in glib_worker_main (data=<optimized out>)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:5614
#5 0x00007f41a329eb95 in g_thread_proxy (data=0x13c0400)
    at /build/buildd/glib2.0-2.43.2/./glib/gthread.c:764
#6 0x00007f419f6ad0a5 in start_thread (arg=0x7f419605b700)
    at pthread_create.c:309
#7 0x00007f419f3da90d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: emacs24 24.4+1-4ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-28.38-generic 3.16.7-ckt1
Uname: Linux 3.16.0-28-generic x86_64
ApportVersion: 2.15.1-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Dec 25 06:11:54 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (168 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
SourcePackage: emacs24
UpgradeStatus: No upgrade log present (probably fresh install)

themusicgod1 (themusicgod1) wrote :
themusicgod1 (themusicgod1) wrote :
Download full text (6.2 KiB)

1) ...seems like when this happens the right-click context menu does not come up in gnome-terminal, also.
2) installed lib11-6-dbg symbols:

(gdb) bt
#0 0x00007f81515ac45d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f814e037b72 in poll (__timeout=-1, __nfds=1, __fds=0x7fff4a855a10)
    at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2 _xcb_conn_wait (c=c@entry=0x157a930, cond=cond@entry=0x157a970,
    vector=vector@entry=0x0, count=count@entry=0x0)
    at ../../src/xcb_conn.c:447
#3 0x00007f814e03964f in xcb_wait_for_event (c=0x157a930)
    at ../../src/xcb_in.c:622
#4 0x00007f8154ceb3a8 in _XReadEvents (dpy=dpy@entry=0x1577930)
    at ../../src/xcb_io.c:401
#5 0x00007f8154cd3889 in XIfEvent (dpy=0x1577930, event=0x7fff4a855c40,
    predicate=0x7f8154d19f70 <_CheckCMEvent>,
    arg=0x16a5800 "\240E\376T\201\177") at ../../src/IfEvent.c:68
#6 0x00007f8154d1a6e7 in _XimXRead (im=0x16a5800,
    recv_buf=0x7fff4a856850 "", buf_len=2048, ret_len=0x7fff4a855d6c)
    at ../../../../modules/im/ximcp/imTrX.c:476
#7 0x00007f8154d1b317 in _XimReadData (im=im@entry=0x16a5800,
    len=len@entry=0x7fff4a855dce, buf=buf@entry=0x7fff4a856850 "",
    buf_size=buf_size@entry=2048)
    at ../../../../modules/im/ximcp/imTransR.c:165
#8 0x00007f8154d1b5f1 in _XimRead (im=im@entry=0x16a5800,
    len=len@entry=0x7fff4a855e5e, buf=buf@entry=0x7fff4a856850 "",
---Type <return> to continue, or q <return> to quit---
    buf_size=buf_size@entry=2048,
    predicate=predicate@entry=0x7f8154d094d0 <_XimSetICValuesCheck>,
    arg=arg@entry=0xc348b0 "@E\376T\201\177")
    at ../../../../modules/im/ximcp/imTransR.c:235
#9 0x00007f8154d0a1a6 in _XimProtoSetICValues (xic=0xc348b0,
    arg=<optimized out>) at ../../../../modules/im/ximcp/imDefIc.c:778
#10 0x00007f8154cf80ad in XSetICValues (ic=0xc348b0)
    at ../../../src/xlibi18n/ICWrap.c:332
#11 0x00000000004cf585 in ?? ()
#12 0x00000000004be352 in ?? ()
#13 0x0000000000459c22 in ?? ()
#14 0x00000000004bccdc in ?? ()
#15 0x000000000041de46 in ?? ()
#16 0x000000000041f11b in ?? ()
#17 0x000000000042147d in ?? ()
#18 0x000000000045296c in ?? ()
#19 0x00000000004f49e1 in ?? ()
#20 0x00000000004f615f in ?? ()
#21 0x00000000004f7ed0 in ?? ()
#22 0x000000000055aaa7 in ?? ()
#23 0x00000000004ea3ee in ?? ()
#24 0x000000000055a98b in ?? ()
---Type <return> to continue, or q <return> to quit---
#25 0x00000000004ee9f7 in ?? ()
#26 0x00000000004eed10 in ?? ()
#27 0x0000000000418509 in ?? ()
#28 0x00007f81514ddec5 in __libc_start_main (main=0x417ab0, argc=1,
    argv=0x7fff4a858a38, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fff4a858a28) at libc-start.c:287
#29 0x0000000000418fbe in ?? ()
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f8145d49700 (LWP 23725))]
#0 0x00007f81515ac45d in poll () at ../sysdeps/unix/syscall-template.S:81
81 in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0 0x00007f81515ac45d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f815545414c in g_main_context_poll (priority=2147483647, n_fds=1,
    fds=0x7f813c0010c0, timeout=-1, context=0x16b5b10)
    at /build/buildd/glib2.0-2.43.2/./glib/gmain.c:4103
#2 g_ma...

Read more...

themusicgod1 (themusicgod1) wrote :
Download full text (7.9 KiB)

With emacs24-dbg installed:
0x00007fe2ce27a45d in poll () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x00007fe2ce27a45d in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007fe2cad05b72 in poll (__timeout=-1, __nfds=1, __fds=0x7fff7b15faa0)
    at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2 _xcb_conn_wait (c=c@entry=0x2c8e930, cond=cond@entry=0x2c8e970,
    vector=vector@entry=0x0, count=count@entry=0x0)
    at ../../src/xcb_conn.c:447
#3 0x00007fe2cad0764f in xcb_wait_for_event (c=0x2c8e930)
    at ../../src/xcb_in.c:622
#4 0x00007fe2d19b93a8 in _XReadEvents (dpy=dpy@entry=0x2c8b930)
    at ../../src/xcb_io.c:401
#5 0x00007fe2d19a1889 in XIfEvent (dpy=0x2c8b930, event=0x7fff7b15fcd0,
    predicate=0x7fe2d19e7f70 <_CheckCMEvent>,
    arg=0x2db7c00 "\240%\313\321\342\177") at ../../src/IfEvent.c:68
#6 0x00007fe2d19e86e7 in _XimXRead (im=0x2db7c00,
    recv_buf=0x7fff7b1608e0 "", buf_len=2048, ret_len=0x7fff7b15fdfc)
    at ../../../../modules/im/ximcp/imTrX.c:476
#7 0x00007fe2d19e9317 in _XimReadData (im=im@entry=0x2db7c00,
    len=len@entry=0x7fff7b15fe5e, buf=buf@entry=0x7fff7b1608e0 "",
    buf_size=buf_size@entry=2048)
    at ../../../../modules/im/ximcp/imTransR.c:165
#8 0x00007fe2d19e95f1 in _XimRead (im=im@entry=0x2db7c00,
    len=len@entry=0x7fff7b15feee, buf=buf@entry=0x7fff7b1608e0 "",
---Type <return> to continue, or q <return> to quit---
    buf_size=buf_size@entry=2048,
    predicate=predicate@entry=0x7fe2d19d74d0 <_XimSetICValuesCheck>,
    arg=arg@entry=0x2ec0480 "@%\313\321\342\177")
    at ../../../../modules/im/ximcp/imTransR.c:235
#9 0x00007fe2d19d81a6 in _XimProtoSetICValues (xic=0x2ec0480,
    arg=<optimized out>) at ../../../../modules/im/ximcp/imDefIc.c:778
#10 0x00007fe2d19c60ad in XSetICValues (ic=0x2ec0480)
    at ../../../src/xlibi18n/ICWrap.c:332
#11 0x00000000004cf585 in xic_set_preeditarea (w=<optimized out>,
    x=<optimized out>, y=<optimized out>) at xfns.c:2107
#12 0x00000000004be352 in x_draw_window_cursor (w=0x1174ec8,
    glyph_row=0xc8fcd0, x=0, y=361, cursor_type=FILLED_BOX_CURSOR,
    cursor_width=50550864, on_p=true, active_p=true) at xterm.c:7331
#13 0x0000000000459c22 in display_and_set_cursor (w=0x1174ec8,
    on=on@entry=true, hpos=0, vpos=19, x=0, y=361) at xdisp.c:27572
#14 0x00000000004bccdc in x_update_window_end (w=0x1174ec8,
    cursor_on_p=<optimized out>, mouse_face_overwritten_p=<optimized out>)
    at xterm.c:582
#15 0x000000000041de46 in update_window (w=w@entry=0x1174ec8,
    force_p=<optimized out>, force_p@entry=true) at dispnew.c:3535
#16 0x000000000041f11b in update_window_tree (w=w@entry=0x1174ec8,
    force_p=force_p@entry=true) at dispnew.c:3210
---Type <return> to continue, or q <return> to quit---
#17 0x000000000042147d in update_frame (f=0x1173eb8, force_p=<optimized out>,
    inhibit_hairy_id_p=<optimized out>) at dispnew.c:3099
#18 0x000000000045296c in redisplay_internal () at xdisp.c:14030
#19 0x0000000000452ef5 in redisplay () at xdisp.c:13207
#20 0x00000000004f5243 in read_char (commandflag=1, map=map@entry=54464966,
    prev_event=12333362,
    used_mo...

Read more...

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in emacs24 (Ubuntu):
status: New → Confirmed
DiagonalArg (diagonalarg) wrote :

I've noticed this as a long-standing problem since earlier emacs version. I hadn't identified it as related to particularly large files, but now that you mention it, the problem seems to always occur when running rmail or (now) gnus. I tend to have quite large mail files.

themusicgod1 (themusicgod1) wrote :

I'm not 100% sure but after looking at the stack trace I figured I'd try to disable cursor blink mode (which had been on). I haven't had this crash since. Could be a coincidence ...but generally happened about once an hour and it hasn't happened in awhile.

themusicgod1 (themusicgod1) wrote :

seems to take longer to reproduce but was able to reproduce in blink-cursor-mode off

Changed in emacs24 (Ubuntu):
importance: Undecided → High
themusicgod1 (themusicgod1) wrote :

This freeze is often associated with a bunch of what you're typing being written backwards in the current frame. I had a whole word come out this way: "nohduorp" Maybe not every time, 1/4 of the time.

themusicgod1 (themusicgod1) wrote :

After removing ibus after this comment on another bug ( https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1421483/comments/19 ) I'm noticing emacs seems to be more stable. Anyone else who has this, are you using ibus and does removing ibus help?

themusicgod1 (themusicgod1) wrote :

This only seems to come up with ibus installed. I can't reproduce it otherwise.

themusicgod1 (themusicgod1) wrote :

for what it's worth (only happens with ibus installed):

ibus:
  Installed: 1.5.9-1ubuntu2
  Candidate: 1.5.9-1ubuntu2

themusicgod1 (themusicgod1) wrote :

Doesn't appear this is an issue in xenial.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers