all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs crash
Date: Mon, 20 Jun 2016 07:17:29 -0700 (PDT)	[thread overview]
Message-ID: <a770e946-699a-4c62-96dc-28a0db232b05@googlegroups.com> (raw)

Can someone check this recipe for crashing emacs please?

Ubuntu 16.4 running vanilla Unity -- yes this is likely related to X/WM stuff
emacs 24.5.1

1 Start emacs with
$ emacs --daemon

init contains just this 2 line function:

(defun kill-later ()
  (run-with-timer 1 nil 'save-buffers-kill-emacs))


2. 
$ emacsclient -n -c somefile
[somefile exists]

3. Write something there (ie dirty it and get a '*' in modeline)

4. Remove the frame by clicking the X in the frame

5. Try to kill emacs with
$ emacsclient -c  -e '(kill-later)'

6. top shows emacs running at 100% usage

7. killing it in top causes an apport crash

Note 1 Why is kill-later defined in that round-about way?
Because directly invoking save-buffers-kill-emacs from emacsclient
makes the -n option ignored
This in turn causes the save-buffers-kill-emacs to say "You have clients"

Note 2 If an emacs frame is present the save-buffer dialog appears as expected
and there is no issue 


             reply	other threads:[~2016-06-20 14:17 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 14:17 Rusi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-13 15:56 emacs crash Rusi
2015-02-13 16:03 ` Rusi
2015-02-14  6:44 ` Alexis
     [not found] ` <mailman.35.1423896300.31049.help-gnu-emacs@gnu.org>
2015-02-14 10:23   ` Rusi
2015-02-14 11:10     ` Alexis
2015-02-14 17:53 ` Robert Thorpe
2006-06-07 19:12 Donald Zoch
2005-08-31 19:58 Philip B Giangarra
2005-04-24 10:23 joseph
2005-04-25 16:05 ` Richard Stallman
2004-11-03  9:55 B. Anyos
2004-11-03 10:28 ` Jason Rumney
2004-11-03 10:50   ` B. Anyos
2004-11-03 11:21     ` Jason Rumney
2004-11-03 11:29       ` Dhruva Krishnamurthy
2004-11-03 12:02       ` B. Anyos
2004-11-03 11:06   ` Dhruva Krishnamurthy
2004-11-03 14:09     ` CHENG Gao
2004-11-03 15:02       ` B. Anyos
2004-11-04  9:51         ` Richard Stallman
2004-11-04 10:31           ` Jason Rumney
2004-11-04 12:52             ` B. Anyos
2004-11-04 13:08               ` Dhruva Krishnamurthy
2004-11-05  8:38                 ` Cheng Gao
2004-11-04 15:48             ` B. Anyos
2004-11-05  0:15               ` Richard Stallman
2004-11-04 17:05             ` Jan D.
2004-11-05  8:03               ` Stefan
2004-11-04  9:51       ` Richard Stallman
2003-10-08 12:42 Werner LEMBERG
2003-08-16 13:56 Werner LEMBERG
2003-08-18  4:52 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a770e946-699a-4c62-96dc-28a0db232b05@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.