From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Emacs crash Date: Mon, 20 Jun 2016 07:17:29 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1466434531 15694 80.91.229.3 (20 Jun 2016 14:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 14:55:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 20 16:55:31 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bF0bq-0003Cj-QF for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 16:55:30 +0200 Original-Received: from localhost ([::1]:44126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF0bq-0002Ub-01 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 10:55:30 -0400 X-Received: by 10.25.217.213 with SMTP id s82mr1871759lfi.9.1466432250153; Mon, 20 Jun 2016 07:17:30 -0700 (PDT) X-Received: by 10.36.91.149 with SMTP id g143mr246379itb.7.1466432250057; Mon, 20 Jun 2016 07:17:30 -0700 (PDT) Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!oe3no5992309lbb.1!news-out.google.com!di11ni8583lbb.1!nntp.google.com!oe3no5992307lbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=219.91.159.61; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 219.91.159.61 User-Agent: G2/1.0 Injection-Date: Mon, 20 Jun 2016 14:17:30 +0000 Original-Lines: 36 Original-Xref: usenet.stanford.edu gnu.emacs.help:218219 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110529 Archived-At: 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