GNU logs - #11676, boring messages

Message sent to bug-gnu-emacs@HIDDEN:

X-Loop: help-debbugs@HIDDEN
Subject: bug#11676: 24.1; Daemon crashes when ssh dies
Resent-From: taylanbayirli@HIDDEN (Taylan Ulrich B.)
Original-Sender: debbugs-submit-bounces <at>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 11 Jun 2012 22:39:01 +0000
Resent-Message-ID: <handler.11676.B.13394543357172 <at>>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 11676
X-GNU-PR-Package: emacs
To: 11676 <at>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> id=B.13394543357172
          (code B ref -1); Mon, 11 Jun 2012 22:39:01 +0000
Received: (at submit) by; 11 Jun 2012 22:38:55 +0000
Received: from localhost ([]:38453
	by with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1SeDGA-0001rb-Aa
	for submit <at>; Mon, 11 Jun 2012 18:38:55 -0400
Received: from ([]:50204)
	by with esmtp (Exim 4.72)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDG7-0001rT-7B
	for submit <at>; Mon, 11 Jun 2012 18:38:53 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDDW-0002wJ-Gr
	for submit <at>; Mon, 11 Jun 2012 18:36:12 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from ([]:38212)
	by with esmtp (Exim 4.71)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDDW-0002vy-BF
	for submit <at>; Mon, 11 Jun 2012 18:36:10 -0400
Received: from ([]:44661)
	by with esmtp (Exim 4.71)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDDU-0008Of-4Q
	for bug-gnu-emacs@HIDDEN; Mon, 11 Jun 2012 18:36:09 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDDR-0002uO-Fa
	for bug-gnu-emacs@HIDDEN; Mon, 11 Jun 2012 18:36:07 -0400
Received: from ([]:52108)
	by with esmtp (Exim 4.71)
	(envelope-from <taylanbayirli@HIDDEN>) id 1SeDDR-0002tS-40
	for bug-gnu-emacs@HIDDEN; Mon, 11 Jun 2012 18:36:05 -0400
Received: by wgbds1 with SMTP id ds1so3627973wgb.0
	for <bug-gnu-emacs@HIDDEN>; Mon, 11 Jun 2012 15:36:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113;
Received: by with SMTP id b83mr7013448weq.204.1339453841073;
	Mon, 11 Jun 2012 15:30:41 -0700 (PDT)
Received: from ( [])
	by with ESMTPS id
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 11 Jun 2012 15:30:40 -0700 (PDT)
From: taylanbayirli@HIDDEN (Taylan Ulrich B.)
Date: Tue, 12 Jun 2012 00:30:37 +0200
Message-ID: <87txyh8os2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by Genre and OS details not
X-detected-operating-system: by GNU/Linux 2.6 (newer, 3)
X-Spam-Score: -6.1 (------)
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <>
List-Unsubscribe: <>,
	<mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>,
	<mailto:debbugs-submit-request <at>>
Sender: debbugs-submit-bounces <at>
Errors-To: debbugs-submit-bounces <at>
X-Spam-Score: -6.1 (------)

I'm running emacs as a daemon on my home PC, and connect with ssh
from work, running emacsclient. The PC at work is unstable and
tends to crash (OS X gray shade of death; don't know if/how it kills
processes running on the system (e.g. ssh) but should be irrelevant).
_Sometimes_ this crash of the client PC will cause the daemon to
abort and dump core.

`bt full' and `bt' output (full seems to fail?):

(gdb) bt full
#0  0x499239ad in kill () from /usr/lib/
No symbol table info available.
#1  0x08134ad9 in fatal_error_signal (sig=6) at emacs.c:366
        _mask = Variable "_mask" is not available.
(gdb) bt
#0  0x499239ad in kill () from /usr/lib/
#1  0x08134ad9 in fatal_error_signal (sig=6) at emacs.c:366
#2  <signal handler called>
#3  0x499239ad in kill () from /usr/lib/
#4  0x0813451b in abort () at emacs.c:394
#5  0x081dfc4f in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=-1, do_display=1, 
    wait_for_cell=138602522, wait_proc=0x0, just_wait_proc=0) at process.c:4942
#6  0x0814285f in read_char (commandflag=1, nmaps=6, maps=0xcfbebe60, prev_event=138602522, 
    used_mouse_menu=0xcfbebfa4, end_time=0x0) at keyboard.c:3855
#7  0x08144402 in read_key_sequence (keybuf=0xcfbebff4, bufsize=30, prompt=138602522, 
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9328
#8  0x08146297 in command_loop_1 () at keyboard.c:1449
#9  0x081a5f5d in internal_condition_case (bfun=0x81460e0 <command_loop_1>, handlers=138656178, 
    hfun=0x8140d80 <cmd_error>) at eval.c:1515
#10 0x08140a03 in command_loop_2 (ignore=138602522) at keyboard.c:1160
#11 0x081a6005 in internal_catch (tag=138654178, func=0x81409e0 <command_loop_2>, arg=138602522)
    at eval.c:1272
#12 0x08141006 in recursive_edit_1 () at keyboard.c:1139
#13 0x08141121 in Frecursive_edit () at keyboard.c:823
#14 0x08135838 in main (argc=2, argv=0xcfbec2a0) at emacs.c:1715

If I get a core dump with a different bt, I will let you know.
Note that I am running OpenBSD (5.1).


In GNU Emacs 24.1.1 (i386-unknown-openbsd5.1, GTK+ Version 2.24.9)
 of 2012-06-10 on
Configured using:
 `configure '--with-jpeg=no''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: POSIX
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Term

Minor modes in effect:
  csv-field-index-mode: t
  tracking-mode: t
  diff-auto-refine-mode: t
  global-auto-complete-mode: t
  yas/global-mode: t
  yas/minor-mode: t
  workgroups-mode: t
  shell-dirtrack-mode: t
  ido-everywhere: t
  global-undo-tree-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
SPC e DEL SPC s e n d SPC SPC m a i l SPC f SPC RET 
C-z C-z C-z C-z ESC x m a i l RET C-x k RET C-z C-z 
ESC x m e s s a SPC DEL TAB DEL RET TAB s e n d SPC 
m a SPC C-g C-z C-z C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-z C-z C-z v c o n f RET C-x C-f ~ 
/ v a r / e x t / e m TAB e m TAB s r c / RET e m C-s 
C-s C-s C-s C-s RET C-x C-f p r o C-s RET C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p C-p C-l C-z C-z , h o w 
t o s e t u p s e m a n t i c b o v i n a t o r f o 
r a n e w l a n g u a g e RET C-p ESC f RET ESC > t 
h e SPC t i t l e SPC r e a l l y SPC s u i d DEL t 
s SPC C E D E T SPC h e r p SPC d e r p RET C-z C-z 
ESC C-l ESC C-l ESC C-l ESC C-l ESC C-l C-l ESC C-l 
ESC C-l ESC C-l ESC v ESC v ESC v ESC v ESC v ESC v 
ESC v ESC v ESC v ESC v C-v C-v C-v C-v C-v C-v C-v 
C-v C-v C-v C-v C-c S u n a m e SPC - a RET ESC x r 
e p o SPC r t SPC e m a SPC TAB TAB RET

Recent messages:
Making completion list...
Switched:  ( ** 0: irc | * 1: config | 2: gnus | 3: tor | 4: guitar | 5: org | 6: circe | 7: conkeror | 8: lisp | 9: xcode | 10: workirc | 11: termite )
byte-code: End of buffer [5 times]
Switched:  ( * 0: irc | ** 1: config | 2: gnus | 3: tor | 4: guitar | 5: org | 6: circe | 7: conkeror | 8: lisp | 9: xcode | 10: workirc | 11: termite )
Switched:  ( ** 0: irc | * 1: config | 2: gnus | 3: tor | 4: guitar | 5: org | 6: circe | 7: conkeror | 8: lisp | 9: xcode | 10: workirc | 11: termite )
Switched:  ( * 0: irc | ** 1: config | 2: gnus | 3: tor | 4: guitar | 5: org | 6: circe | 7: conkeror | 8: lisp | 9: xcode | 10: workirc | 11: termite )
Mark set
Switched:  ( ** 0: irc | * 1: config | 2: gnus | 3: tor | 4: guitar | 5: org | 6: circe | 7: conkeror | 8: lisp | 9: xcode | 10: workirc | 11: termite )
Making completion list... [2 times]

Load-path shadows:
/home/tub/var/ext/emacs/xcode.el/xcode hides /home/tub/var/ext/emacs/xcode
/home/tub/var/ext/emacs/workgroups.el/workgroups hides /home/tub/var/ext/emacs/workgroups
/home/tub/var/ext/emacs/magit/.dir-locals hides /home/tub/var/ext/emacs/emacs-24.1/lisp/gnus/.dir-locals

(shadow emacsbug reposition rfc2104 smtpmail cus-edit cus-start cus-load
pp sendmail ibuf-ext gnus-cite shr-color color shr mail-extr gnus-async
gnus-bcklg qp gnus-ml nndraft nnmh nndoc nnfolder utf-7 gnutls nnimap
parse-time utf7 netrc gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo
nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message idna
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win
pcmpl-unix thingatpt scheme browse-url org-wl org-w3m org-vm org-rmail
org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp
org-exp-blocks find-func org-agenda org-info org-gnus org-docview
org-bibtex bibtex org-bbdb multi-isearch network-stream starttls tls
php-mode etags cc-langs speedbar sb-image ezimage dframe xcode-taylan
xcode find-file cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs csv-mode sort keymap-taylan term
disp-table ehelp electric circe-taylan circe-color-nicks lui-logging
circe lui-irc-colors lcs lui-format lui rx tracking flyspell ispell
incomplete mail-taylan gnus gnus-ems nnheader mail-utils wid-edit
org-taylan org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table
org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete org-list
org-faces org-compat org-entities org-macs noutline outline cal-menu
calendar cal-loaddefs magit-taylan magit-bisect magit-key-mode magit
server esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups
eshell esh-module esh-mode esh-util ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff iswitchb diff-mode
log-edit pcvs-util add-log ac-taylan auto-complete-clang
auto-complete-config auto-complete popup yas-taylan yasnippet
dropdown-list derived warnings help-mode view easymenu wg-taylan
workgroups ibuffer-taylan ibuf-macs ibuffer tramp-taylan tramp
tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv
macroexp assoc gnus-util mm-util mail-prsvr password-cache shell
pcomplete comint ansi-color ring format-spec tramp-loaddefs regexp-opt
ido-taylan ido electric-taylan uniquify-taylan uniquify advice
advice-preload paredit-taylan paredit undo-tree-taylan undo-tree
easy-mmode help-fns edmacro kmacro diff faces-taylan auto-mode-taylan
secrets-taylan time-date paren saveplace taylan-lib cl tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Message sent:

Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: taylanbayirli@HIDDEN (Taylan Ulrich B.)
Subject: bug#11676: Acknowledgement (24.1; Daemon crashes when ssh dies)
Message-ID: <handler.11676.B.13394543357172.ack <at>>
References: <87txyh8os2.fsf@HIDDEN>
X-Gnu-PR-Message: ack 11676
X-Gnu-PR-Package: emacs
Reply-To: 11676 <at>
Date: Mon, 11 Jun 2012 22:39:02 +0000

Thank you for filing a new bug report with

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):

If you wish to submit further information on this problem, please
send it to 11676 <at>

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

Message received at control <at>

Received: (at control) by; 5 May 2019 04:15:51 +0000
From debbugs-submit-bounces <at> Sun May 05 00:15:50 2019
Received: from localhost ([]:52803
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1hN8Z4-0007ii-CE
	for submit <at>; Sun, 05 May 2019 00:15:50 -0400
Received: from ([]:44713)
 by with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hN8Z2-0007bz-8w; Sun, 05 May 2019 00:15:48 -0400
Received: by with SMTP id f24so775629qtk.11;
 Sat, 04 May 2019 21:15:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025;
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025;
X-Gm-Message-State: APjAAAUpTB5RDcOt2tY/gMVWPCsNIFmIQolY7UvufEYYvTQ+2+bE6Zmj
X-Google-Smtp-Source: APXvYqxmd5paigikVWTWZH3z7AP6Womrbhx6lsVAXLE5Cvmj6aKBP9nRs4uVEmKyMtymJ5hiydedZw==
X-Received: by 2002:a0c:c192:: with SMTP id n18mr724554qvh.203.1557029742572; 
 Sat, 04 May 2019 21:15:42 -0700 (PDT)
Received: from minid ( [])
 by with ESMTPSA id
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 04 May 2019 21:15:41 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Doug Gilmore <dougjgilmore@HIDDEN>
Subject: Re: bug#23939: Segfault in daemon mode Emacs when detaching an X
References: <CADZFUQZ06gySPwYtR__yVkG1LTKXNNZTHc4cx4OU+Ef74C1t=Q@HIDDEN>
Date: Sun, 05 May 2019 00:15:40 -0400
In-Reply-To: <CADZFUQZ06gySPwYtR__yVkG1LTKXNNZTHc4cx4OU+Ef74C1t=Q@HIDDEN> (Doug
 Gilmore's message of "Sun, 10 Jul 2016 17:00:49 -0700")
Message-ID: <87k1f5mt8z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
Cc: 23939 <at>
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -1.0 (-)

#14958 = emacs --daemon crashing when X-frames are removed ungracefully
#11676 = Daemon crashes when ssh dies
#22174 = emacs --daemon crashes when ssh is disconnected. I am using lucid x toolkit.
merge 14958 11676 22174
#11639 = 24.0.95; Emacs daemon hangs when emacsclient was killed
# probably the GTK thing
merge 11639 8501

Doug Gilmore <dougjgilmore@HIDDEN> writes:

> I have been running my own build of Emacs 24.2 for quite a while in
> daemon mode for quite a while without any problems except that the
> daemon would on rare occasions crash when I detached a windows frame
> via the delete-frame Emacs command.  The other day this happened
> several times in succession when connecting to a daemon running on
> another host and I was able to catch the failure under an attached gdb
> session.  I attached a backtrace and a prototype fix.
> I have been building my own Emacs on Ubuntu-12/14 configured with the
> --with-x-toolkit=lucid option, so this is not a Gtk issue.
> Has anyone else been seeing this problem?

There are some other reports about Emacs daemon dying when closing X
sessions, but the backtraces look different, so I guess it's not the
same problem.

> #0  x_uncatch_errors () at /scratch/dgilmore/emacs-24.2/src/xterm.c:7672
> #1  0x00000000004cb588 in x_catch_errors_unwind (dummy=<optimized out>) at /scratch/dgilmore/emacs-24.2/src/xselect.c:546
> #2  0x000000000055b4ce in unbind_to (count=<optimized out>, value=11872738) at /scratch/dgilmore/emacs-24.2/src/eval.c:3433
> #3  0x000000000055b6e5 in unwind_to_catch (catch=0x7ffc44910f60, value=<optimized out>) at /scratch/dgilmore/emacs-24.2/src/eval.c:1314
> #4  0x000000000055d5a9 in Fsignal (error_symbol=11924850, data=38401462) at /scratch/dgilmore/emacs-24.2/src/eval.c:1764

> (gdb) p x_error_message
> $1 = (struct x_error_message_stack *) 0x0

> Subject: [PATCH] Make sure x_error_message is not NULL.
> Before dereferencing the pointer.

> @@ -7665,6 +7665,14 @@ x_uncatch_errors (void)
>  {
>    struct x_error_message_stack *tmp;
> +  /* In rare situations when running Emacs run in daemon mode,
> +     shutting down an emacsclient via delete-frame can cause
> +     x_uncatch_errors to be called when x_error_message is set to
> +     NULL.  */
> +  
> +  if (x_error_message == NULL)
> +    return;
> +

If this really is possible, I guess a NULL check wouldn't be a bad

Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.