You are not logged in.

#1 2013-04-06 08:51:12

aweb
Member
Registered: 2010-12-18
Posts: 25

emacs crashes with C-x 5 0

I have an arch laptop on which emacs reliably crashes.  More precisely, whenever I type C-x 5 0 to close a window, all windows close and then emacs gets into a tight loop burning CPU.  This problem is driving me crazy.  Stranger still, I have an arch desktop on which the problem does not occur.

The machines are configured almost identically, except that the laptop (which experiences the problem) has intel graphics, while the desktop uses nvidia.  I've reproduced the problem with "emacs -q" (ruling out configuration files).  The problem happens if I ssh from the laptop to itself and forward X11, but not if I ssh between the two machines in either direction.

I have run memtest86+ on the laptop.  I have uninstalled and reinstalled emacs.  I have reinstalled all of base.  I have even run sha256sum on the emacs binaries and all shared libraries of "ldd emacs" on the two machines, and verified that everything is identical except for libGL (because of intel vs. nvidia).  Finally, I re-installed all 869 packages on the laptop, to no avail.

I've tried to build the arch emacs package from source, so as to debug it, but the PKGBUILD in abs is broken on both of my machines.  Upon linking temacs, I get errors of undefined references in image.o (mostly to graphicsmagick sounding functions from libGraphicsMagickWand).

Does anyone have any suggestions?  For what it's worth, the problem machine is a Pentium core i7 M 620, while the working machine has a Xeon E5620 CPU.  The working CPU has 4 flags the other one doesn't, namely pdpe1gb, pcid, dca, and epb, but these are all CPU features for the kernel, so shouldn't be resulting in a different instruction set.

Thanks.

Offline

#2 2013-04-06 14:33:11

heidenseek
Member
Registered: 2010-04-10
Posts: 8

Re: emacs crashes with C-x 5 0

Are you running emacs using the gui or are you launching it with the -nw flag to launch it in a terminal session?

Offline

#3 2013-04-06 19:49:25

aweb
Member
Registered: 2010-12-18
Posts: 25

Re: emacs crashes with C-x 5 0

I'm using it in X11.  C-x 5 0 "delete-frame" is a function that deletes an X window.  Sorry if my post was unclear, because what emacs calls a frame is what X windows calls a window.

Basically if I start emacs (without -nw), then run C-x 5 2, then run C-x 5 0, emacs disappears and a minute later my fan starts blowing hard because emacs has been chewing up the CPU...

Offline

#4 2013-04-06 23:52:58

aweb
Member
Registered: 2010-12-18
Posts: 25

Re: emacs crashes with C-x 5 0

Okay, I guess it's a bug in emacs.  I made a fresh completely fresh arch linux install on a USB drive, and emacs still crashes on the intel machine but not the nvidia machine.

Offline

#5 2013-04-07 01:39:34

aweb
Member
Registered: 2010-12-18
Posts: 25

Re: emacs crashes with C-x 5 0

Okay, for anyone else who is getting frustrated by this, the workaround is to downgrade to the gtk2 toolkit from gtk3.  I just edited the PKGBUILD file to change gtk3 to gtk2, and also disabled imagemagick (since that causes build errors).  The working configure line is here:

  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
    --localstatedir=/var --with-x-toolkit=gtk2 --with-xft --without-imagemagick

The problem must be caused by some weird i915 graphics driver error triggered by gtk3.

Offline

Board footer

Powered by FluxBB