GNU bug report logs -
#4970
23.1; Emacs Gtk running nuts
Previous Next
Reported by: Werner Fink <werner <at> suse.de>
Date: Thu, 19 Nov 2009 10:40:04 UTC
Severity: normal
Merged with 7951
Found in version 23.1
Done: Jan Djärv <jan.h.d <at> swipnet.se>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 4970 <at> emacsbugs.donarmstrong.com (full text, mbox):
Jan Djärv <jan.h.d <at> swipnet.se> writes:
> Dan Nicolaescu skrev:
> > Werner Fink <werner <at> suse.de> writes:
> >
> > > A user runs "emacs -nw" within xterm, and often stop them with CTRL-Z to
> > > keep them in background. Now Emacs loops and hogs both memory and cpu after
> > > shutting down X11 going to runlevel 3. Likely this was a leftover emacs from
> > > background.
> > > > From top:
> > > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
> > COMMAND > 23902 xxxxxx 20 0 7222m 3.4g 608 R 100
> > 88.9 59:28.72 emacs-gtk
> >
> > I have seen this in the past, but only with the info above I was able to
> > find a reliable way to reproduce this.
> >
> > It also happens with the lucid toolkit, so it's not related to gtk.
> >
> >
> > Xnest :1&
> > xterm -display :1
> >
> > Now in that xterm window in Xnest do:
> > emacs -Q -nw
> > C-z
> >
> > kill the Xnest window
> >
> > and watch the emacs process grow in size.
> >
>
> What happens is that reading from the terminal fails and Emacs tries
> to remove that terminal, but in term.c:
>
> if (last_terminal)
> error ("Attempt to delete the sole terminal device with live frames");
>
>
> which goes back to the command loop, tries to read agan, fails, and
> tries to delete the terminal again, and so on.
>
> If you remove this check, Emacs exits. But I suppose it is there for
> a reason, but I don't know what. Anybody?
It's there so that if you do:
emacs -Q -nw
C-x 5 0
does not exit emacs.
This bug report was last modified 13 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.