From unknown Tue Jun 17 22:12:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8750: 24.0.50; Crash in daemon mode when display goes away Resent-From: Nix Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2011 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8750@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130657926712923 (code B ref -1); Sat, 28 May 2011 10:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 May 2011 10:41:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQGx7-0003MN-GR for submit@debbugs.gnu.org; Sat, 28 May 2011 06:41:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQGx4-0003Lu-He for submit@debbugs.gnu.org; Sat, 28 May 2011 06:41:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQGwx-0002YC-Q2 for submit@debbugs.gnu.org; Sat, 28 May 2011 06:40:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGwx-0002Y8-OP for submit@debbugs.gnu.org; Sat, 28 May 2011 06:40:55 -0400 Received: from eggs.gnu.org ([140.186.70.92]:33351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGww-0005Me-2o for bug-gnu-emacs@gnu.org; Sat, 28 May 2011 06:40:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQGwt-0002XK-JG for bug-gnu-emacs@gnu.org; Sat, 28 May 2011 06:40:54 -0400 Received: from icebox.esperi.org.uk ([81.187.191.129]:40426 helo=mail.esperi.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQGws-0002Wn-So for bug-gnu-emacs@gnu.org; Sat, 28 May 2011 06:40:51 -0400 Received: from esperi.org.uk (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.4/8.14.3) with ESMTP id p4SAemaP011433 for ; Sat, 28 May 2011 11:40:48 +0100 Received: (from nix@localhost) by esperi.org.uk (8.14.4/8.12.11/Submit) id p4SAemli002983; Sat, 28 May 2011 11:40:48 +0100 From: Nix Emacs: ballast for RAM. Date: Sat, 28 May 2011 11:40:48 +0100 Message-ID: <877h9bp0pb.fsf@spindle.srvr.nix> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DCC-dcc1.aftenposten.no-Metrics: spindle 1215; Body=1 Fuz1=1 Fuz2=1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) I suspend my desktop box every night, to save power. My Emacs runs on a remote system in --daemon mode, and is never shut down. $DISPLAY on that system points directly to the desktop box: this is sometimes suspended, so the TCP/IP connection cannot be assumed to stay up. (Nonetheless, if it goes away, if it is re-established, the X session will be exactly as it was.) When this happens, Emacs's X error handler kicks in and kills it: #0 0x00007f3f639ea357 in kill () from /lib/libc.so.6 #1 0x00000000004fc26f in fatal_error_signal (sig=) at emacs.c:342 #2 #3 0x00007f3f639ea357 in kill () from /lib/libc.so.6 #4 0x00000000004fba85 in abort () at emacs.c:371 #5 0x0000000000446595 in redisplay_internal () at xdisp.c:11511 #6 0x0000000000446ab3 in redisplay_preserve_echo_area (from_where=) at xdisp.c:12163 #7 0x00000000005b2707 in Fdelete_process (process=71306213) at process.c:779 #8 0x00000000005b5b7d in kill_buffer_processes (buffer=11868546) at process.c:7003 #9 0x00000000004fbffa in shut_down_emacs (sig=0, no_x=, stuff=11868546) at emacs.c:2040 #10 0x00000000004b9489 in x_connection_closed (dpy=, error_message=) at xterm.c:7758 #11 0x00000000004b96b5 in x_io_error_quitter (display=0xde1ff0) at xterm.c:7866 #12 0x00007f3f6619346e in _XIOError (dpy=0xde1ff0) at XlibInt.c:1602 #13 0x00007f3f6619190e in _XReply (dpy=0xde1ff0, rep=0x7ffff7e82500, extra=, discard=) at xcb_io.c:632 #14 0x00007f3f661867a3 in XQueryColors (dpy=0xde1ff0, cmap=2, defs=0x7ffff7e825d0, ncolors=2) at QuColors.c:55 #15 0x00000000005d380c in xftfont_get_colors (f=0xfcc6f0, face=0xf0050d0, gc=, xftface_info=0x0, fg=0xd495c20, bg=0xd495c30) at xftfont.c:121 #16 0x00000000005d41e9 in xftfont_prepare_face (f=0xfcc6f0, face=0xf0050d0) at xftfont.c:533 #17 0x00000000004b1112 in prepare_face_for_display (f=0xfcc6f0, face=0xf0050d0) at xfaces.c:4165 #18 0x000000000042e14c in get_glyph_face_and_encoding (s=0x7ffff7e82960, face_id=12, start=, end=, overlaps=) at xdisp.c:20536 #19 fill_glyph_string (s=0x7ffff7e82960, face_id=12, start=, end=, overlaps=) at xdisp.c:20744 #20 0x000000000044d70f in draw_glyphs (w=0xfcc980, x=103, row=, area=TEXT_AREA, start=0, end=259, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:21359 #21 0x000000000045343d in x_write_glyphs (start=, len=259) at xdisp.c:23101 #22 0x000000000041706a in update_text_area (w=0xfcc980, vpos=100, mouse_face_overwritten_p=0x7ffff7e8310c) at dispnew.c:3808 #23 update_window_line (w=0xfcc980, vpos=100, mouse_face_overwritten_p=0x7ffff7e8310c) at dispnew.c:4049 #24 0x0000000000418b01 in update_window (w=0xfcc980, force_p=0) at dispnew.c:3611 #25 0x0000000000419c03 in update_window_tree (w=0xfcc980, force_p=0) at dispnew.c:3369 #26 0x000000000041ce56 in update_frame (f=0xfcc6f0, force_p=0, inhibit_hairy_id_p=0) at dispnew.c:3296 #27 0x0000000000445a01 in redisplay_internal () at xdisp.c:11949 #28 0x0000000000446ab3 in redisplay_preserve_echo_area (from_where=) at xdisp.c:12163 #29 0x0000000000507f90 in detect_input_pending_run_timers (do_display=1) at keyboard.c:10442 #30 0x00000000005b0b0e in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=, do_display=1, wait_for_cell=11868546, wait_proc=0x0, just_wait_proc=0) at process.c:4618 #31 0x0000000000508f8e in kbd_buffer_get_event (commandflag=1, nmaps=9, maps=0x7ffff7e853a0, prev_event=11868546, used_mouse_menu=0x7ffff7e855bc, end_time=0x0) at keyboard.c:3840 #32 read_char (commandflag=1, nmaps=9, maps=0x7ffff7e853a0, prev_event=11868546, used_mouse_menu=0x7ffff7e855bc, end_time=0x0) at keyboard.c:2786 #33 0x000000000050aefe in read_key_sequence (keybuf=0x7ffff7e85620, prompt=11868546, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at keyboard.c:9272 #34 0x000000000050cafb in command_loop_1 () at keyboard.c:1445 #35 0x00000000005709ae in internal_condition_case (bfun=0x50c920 , handlers=11920930, hfun=0x5020b0 ) at eval.c:1507 #36 0x0000000000500d6e in command_loop_2 (ignore=) at keyboard.c:1156 #37 0x0000000000570888 in internal_catch (tag=Cannot access memory at address 0x6dfc ) at eval.c:1261 #38 0x0000000000501b6a in command_loop () at keyboard.c:1135 #39 recursive_edit_1 () at keyboard.c:756 #40 0x0000000000501ea6 in Frecursive_edit () at keyboard.c:820 #41 0x00000000004fcd95 in main (argc=, argv=0x7ffff7e85e88) at emacs.c:1686 This seems an excessive reaction to the X connection going away, particularly in --daemon mode, where it might have a dozen connections to different X displays. At suspension time I have closed all the frames anyway, so what's it doing in read_key_sequence()? What frame is it updating? It shouldn't have any left! (If this is impossible, can anyone suggest a way to keep Emacs running while the X server is down? I've tried xpra, but its keyboard handling is too broken :( ) In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.8) of 2011-05-26 on spindle Windowing system distributor `The X.Org Foundation', version 11.0.10903902 configured using `configure '--without-pop' '--without-kerberos' '--without-hesiod' '--without-mmdf' '--with-x-toolkit=gtk' 'NO_FAST_MATH=t'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t iswitchb-mode: t show-paren-mode: t global-cwarn-mode: t global-semanticdb-minor-mode: t global-semantic-idle-completions-mode: t global-semantic-idle-scheduler-mode: t compile-bookmarks-mode: t semantic-mode: t type-break-mode-line-message-mode: t icomplete-mode: t recentf-mode: t mv-shell-mode: t which-function-mode: t desktop-save-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: i n i m e C-s C-s C-s C-s C-s C-s C-a C-s n n i m a p C-s C-s C-a C-x k C-x C-f d o g o n u m a i C-s C-s C-s C-a C-s n n i m a p C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a C-x k C-x C-f C-k a r C-s C-s C-s C-e ( n o t SPC ( n u l l SPC a n d SPC ( C-e g n u s - n e w s g r o u p - n a m e ) ) ) C-b C-x C-\ C-g C-x C-e C-x C-s x b y t e - r e f C-x b M-x r e p o r t - e m a C-g : C-e n i l M-x Recent messages: Auto-saving... Mark saved where search started [4 times] Quit (((or (string= "alt.sysadmin.recovery" gnus-newsgroup-name) (string= "alt.dev.null" gnus-newsgroup-name)) ("Approved" "foo")) ((message-news-p) (address "nix-razor-pit@esperi.org.uk") (Reply-To "Nix <$}xinix{$@esperi.org.uk>")) ((or (nix-at-work-p) (and ... ...)) (name "Nick Alcock") (address "nick.alcock@oracle.com"))) Saving file /home/nix/lisp/emacs/personal/dot-gnus-articles.el... Wrote /home/nix/lisp/emacs/personal/dot-gnus-articles.el Showing all blocks ... done Compiling /home/nix/lisp/emacs/personal/dot-gnus-articles.el...done Wrote /home/nix/lisp/emacs/personal/dot-gnus-articles.elc Quit nil Load-path shadows: /home/nix/lisp/defaults hides /usr/share/emacs/site-lisp/defaults /home/nix/lisp/emacs/site-wide/site-start hides /usr/share/emacs/site-lisp/site-start /home/nix/lisp/emacs/site-wide/default hides /usr/share/emacs/site-lisp/default /home/nix/lisp/emacs/site-wide/scroll-in-place hides /usr/share/emacs/site-lisp/scroll-in-place /usr/share/emacs/site-lisp/emms/tq hides /usr/share/emacs/24.0.50/lisp/emacs-lisp/tq Features: (shadow debug gnus-cite emacsbug multi-isearch gnus-topic url-cache url-http url-gw url-auth url-handlers nndraft nnrss xml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg utf-7 nnimap parse-time utf7 nnmh nnml nnfolder gnus-cache bbdb-gnus bbdb-snarf rot13 epa-file epa derived epg netrc gnus-demon nntp dot-gnus-mail dot-gnus-splits mm-url smtpmail gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig dot-gnus-articles dot-gnus-sa background nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source dot-gnus-bbdb dot-gnus-colourization tc mail-extr gnus-start gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader jka-compr vc-git checkdoc thingatpt eldoc generic site-default dot-emacs dot-emacs-emacs iswitchb xemacs-compat add-log misc init-music network-stream starttls tls emms-volume emms-volume-amixer emms-history emms-bookmarks emms-metaplaylist-mode emms-browser sort emms-playlist-sort emms-last-played emms-playing-time emms-stream-info emms-streams emms-mode-line emms-cache emms-info later-do emms-playlist-limit emms-playlist-mode emms-player-mpd tq emms-player-simple emms-source-playlist emms-source-file dired emms emms-compat init-message-modes bbdb-expire bbdb-hooks bbdb-com silly-mail boxquote rect message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader init-time-tracking timeclock-visualize sgml-mode url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap auto-edit-substitute init-prog-modes init-prog-modes-emacs filecache paren cwarn cc-mode cc-fonts cc-menus semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/ctxt htmlfontify cus-edit cus-start cus-load compile-bookmarks font-latex latex easy-mmode edmacro kmacro tex-style tex semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs miniedit type-break icomplete site-start-load gawd-keys help-mode view gawd-keys-emacs gawd-mode-frobs gawd-mode-frobs-emacs windmove recentf tree-widget wid-edit mv-shell printing ps-print ps-def lpr uptimes pp bbdb timezone browse-kill-ring+ browse-kill-ring tempbuf timeclock igrep grep compile term disp-table ehelp electric comint tramp tramp-compat auth-source eieio assoc gnus-util time-date mm-util mail-prsvr password-cache format-spec tramp-loaddefs regexp-opt hideshow filladapt gawd-faces gawd-faces-emacs nix-dark-theme gawd-misc gawd-misc-emacs which-func imenu winner gawd-lists bbdb-autoloads desktop generic-x uniquify byte-opt warnings bytecomp byte-compile cconv macroexp time advice help-fns advice-preload scroll-in-place site-start-emacs site-autoloads auctex-autoloads tex-site info c-eldoc-autoloads compilation-recenter-end-autoloads compile-bookmarks-autoloads dictionary-autoloads diff-git-autoloads elk-test-autoloads fringe-helper-autoloads full-ack-autoloads htmlize-autoloads jump-autoloads inflections-autoloads findr-autoloads lua-mode-autoloads mv-shell-autoloads package tabulated-list emms-auto w3m-load apropos-toc cl ring filesets easymenu flash-paren saveplace redo+ 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) -- NULL && (void) From unknown Tue Jun 17 22:12:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8750: 24.0.50; Crash in daemon mode when display goes away Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2011 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nix Cc: 8750@debbugs.gnu.org Received: via spool by 8750-submit@debbugs.gnu.org id=B8750.130660415421910 (code B ref 8750); Sat, 28 May 2011 17:36:02 +0000 Received: (at 8750) by debbugs.gnu.org; 28 May 2011 17:35:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQNQX-0005hJ-RV for submit@debbugs.gnu.org; Sat, 28 May 2011 13:35:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQNQV-0005h8-I5 for 8750@debbugs.gnu.org; Sat, 28 May 2011 13:35:52 -0400 Received: from localhost ([127.0.0.1]:35367) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQNQK-0006aA-5J; Sat, 28 May 2011 13:35:40 -0400 From: Glenn Morris References: <877h9bp0pb.fsf@spindle.srvr.nix> X-Spook: monarchist espionage Baranyi Aladdin codes lock picking X-Ran: &eEfyqX>+ww]^4e6kh@I}SWCEn,wJ4_yF\3!BiG[H*w?/Q{:1*|U^:LqAI}\;yZZ,/mI%R X-Hue: green X-Attribution: GM Date: Sat, 28 May 2011 13:35:36 -0400 In-Reply-To: <877h9bp0pb.fsf@spindle.srvr.nix> (nix@esperi.org.uk's message of "Sat, 28 May 2011 11:40:48 +0100") Message-ID: <7hei3i6847.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Nix wrote: > I suspend my desktop box every night, to save power. My Emacs runs on a > remote system in --daemon mode, and is never shut down. $DISPLAY on that > system points directly to the desktop box: this is sometimes suspended, > so the TCP/IP connection cannot be assumed to stay up. (Nonetheless, if > it goes away, if it is re-established, the X session will be exactly as > it was.) > > When this happens, Emacs's X error handler kicks in and kills it: Sounds like this etc/PROBLEMS entry: ** When Emacs is compiled with Gtk+, closing a display kills Emacs. > (If this is impossible, can anyone suggest a way to keep Emacs running > while the X server is down? I've tried xpra, but its keyboard handling > is too broken :( ) You can try using a Lucid toolkit build. > In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.8) > of 2011-05-26 on spindle From unknown Tue Jun 17 22:12:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8750: 24.0.50; Crash in daemon mode when display goes away Resent-From: Nix Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2011 23:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 8750@debbugs.gnu.org Received: via spool by 8750-submit@debbugs.gnu.org id=B8750.130662587215661 (code B ref 8750); Sat, 28 May 2011 23:38:02 +0000 Received: (at 8750) by debbugs.gnu.org; 28 May 2011 23:37:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQT4o-00044X-Vv for submit@debbugs.gnu.org; Sat, 28 May 2011 19:37:51 -0400 Received: from icebox.esperi.org.uk ([81.187.191.129] helo=mail.esperi.org.uk) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQT4m-00044K-DT for 8750@debbugs.gnu.org; Sat, 28 May 2011 19:37:49 -0400 Received: from esperi.org.uk (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.4/8.14.3) with ESMTP id p4SNbfSP003113; Sun, 29 May 2011 00:37:41 +0100 Received: (from nix@localhost) by esperi.org.uk (8.14.4/8.12.11/Submit) id p4SNbf08028289; Sun, 29 May 2011 00:37:41 +0100 From: Nix References: <877h9bp0pb.fsf@spindle.srvr.nix> <7hei3i6847.fsf@fencepost.gnu.org> Emacs: is that a Lisp interpreter in your editor, or are you just happy to see me? Date: Sun, 29 May 2011 00:37:41 +0100 In-Reply-To: <7hei3i6847.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 28 May 2011 13:35:36 -0400") Message-ID: <878vtq75x6.fsf@spindle.srvr.nix> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DCC-INFN-TO-Metrics: spindle 1233; Body=2 Fuz1=2 Fuz2=2 X-Spam-Score: -4.6 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On 28 May 2011, Glenn Morris said: > Nix wrote: > >> I suspend my desktop box every night, to save power. My Emacs runs on a >> remote system in --daemon mode, and is never shut down. $DISPLAY on that >> system points directly to the desktop box: this is sometimes suspended, >> so the TCP/IP connection cannot be assumed to stay up. (Nonetheless, if >> it goes away, if it is re-established, the X session will be exactly as >> it was.) >> >> When this happens, Emacs's X error handler kicks in and kills it: > > Sounds like this etc/PROBLEMS entry: > > ** When Emacs is compiled with Gtk+, closing a display kills Emacs. Yeah, but I foolishly assumed that --daemon would evade this. (It's not as if it even *has* a display it's displaying anything on when there are no frames.) If it doesn't evade this, dammit it *should*. :) >> (If this is impossible, can anyone suggest a way to keep Emacs running >> while the X server is down? I've tried xpra, but its keyboard handling >> is too broken :( ) > > You can try using a Lucid toolkit build. Will do. -- NULL && (void) From unknown Tue Jun 17 22:12:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8750: 24.0.50; Crash in daemon mode when display goes away Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2011 23:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Nix Cc: Glenn Morris , 8750@debbugs.gnu.org Received: via spool by 8750-submit@debbugs.gnu.org id=B8750.130662658116684 (code B ref 8750); Sat, 28 May 2011 23:50:02 +0000 Received: (at 8750) by debbugs.gnu.org; 28 May 2011 23:49:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQTGG-0004L2-0C for submit@debbugs.gnu.org; Sat, 28 May 2011 19:49:40 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQTGE-0004Kr-Mk for 8750@debbugs.gnu.org; Sat, 28 May 2011 19:49:38 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4SNnWkj031887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 May 2011 19:49:33 -0400 Received: by furball (Postfix, from userid 1000) id C415216031F; Sat, 28 May 2011 19:49:31 -0400 (EDT) From: Chong Yidong References: <877h9bp0pb.fsf@spindle.srvr.nix> <7hei3i6847.fsf@fencepost.gnu.org> <878vtq75x6.fsf@spindle.srvr.nix> Date: Sat, 28 May 2011 19:49:31 -0400 In-Reply-To: <878vtq75x6.fsf@spindle.srvr.nix> (nix@esperi.org.uk's message of "Sun, 29 May 2011 00:37:41 +0100") Message-ID: <87r57iwflg.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Nix writes: >>> (If this is impossible, can anyone suggest a way to keep Emacs running >>> while the X server is down? I've tried xpra, but its keyboard handling >>> is too broken :( ) >> >> You can try using a Lucid toolkit build. > > Will do. Another possible workaround is to run some code in your pre-suspend script that makes the Emacs daemon close all its X connections. I don't know whether that will successfully avoid triggering the GTK fail, but it's worth a try. From unknown Tue Jun 17 22:12:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8750: 24.0.50; Crash in daemon mode when display goes away Resent-From: Nix Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 May 2011 20:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8750 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: Glenn Morris , 8750@debbugs.gnu.org Received: via spool by 8750-submit@debbugs.gnu.org id=B8750.13068733862697 (code B ref 8750); Tue, 31 May 2011 20:24:02 +0000 Received: (at 8750) by debbugs.gnu.org; 31 May 2011 20:23:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRVT0-0000hS-7H for submit@debbugs.gnu.org; Tue, 31 May 2011 16:23:06 -0400 Received: from icebox.esperi.org.uk ([81.187.191.129] helo=mail.esperi.org.uk) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRVSw-0000gr-Je for 8750@debbugs.gnu.org; Tue, 31 May 2011 16:23:04 -0400 Received: from esperi.org.uk (nix@spindle.srvr.nix [192.168.14.15]) by mail.esperi.org.uk (8.14.4/8.14.3) with ESMTP id p4VKMtTM018176; Tue, 31 May 2011 21:22:55 +0100 Received: (from nix@localhost) by esperi.org.uk (8.14.4/8.12.11/Submit) id p4VKMtvL024423; Tue, 31 May 2011 21:22:55 +0100 From: Nix References: <877h9bp0pb.fsf@spindle.srvr.nix> <7hei3i6847.fsf@fencepost.gnu.org> <878vtq75x6.fsf@spindle.srvr.nix> <87r57iwflg.fsf@stupidchicken.com> Emacs: because you deserve a brk today. Date: Tue, 31 May 2011 21:22:55 +0100 In-Reply-To: <87r57iwflg.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 28 May 2011 19:49:31 -0400") Message-ID: <87d3iywrfk.fsf@spindle.srvr.nix> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DCC-INFN-TO-Metrics: spindle 1233; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) On 29 May 2011, Chong Yidong verbalised: > Nix writes: > >>>> (If this is impossible, can anyone suggest a way to keep Emacs running >>>> while the X server is down? I've tried xpra, but its keyboard handling >>>> is too broken :( ) >>> >>> You can try using a Lucid toolkit build. >> >> Will do. It worked. The only visible change to Emacs is tiny changes in the appearance of the menubar and scroll bar. That, I can live with. -- NULL && (void) From debbugs-submit-bounces@debbugs.gnu.org Tue May 31 17:29:38 2011 Received: (at control) by debbugs.gnu.org; 31 May 2011 21:29:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRWVO-00031E-0H for submit@debbugs.gnu.org; Tue, 31 May 2011 17:29:38 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRWVN-000314-17 for control@debbugs.gnu.org; Tue, 31 May 2011 17:29:37 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QRWVH-0006oK-SX for control@debbugs.gnu.org; Tue, 31 May 2011 17:29:32 -0400 Date: Tue, 31 May 2011 17:29:31 -0400 Message-Id: Subject: control message for bug 8750 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) unarchive 1493 forcemerge 1493 8750 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 13:15:01 2012 Received: (at control) by debbugs.gnu.org; 20 Jun 2012 17:15:01 +0000 Received: from localhost ([127.0.0.1]:50121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShOUe-0001kw-R4 for submit@debbugs.gnu.org; Wed, 20 Jun 2012 13:15:01 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50814) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShOUc-0001kp-SZ for control@debbugs.gnu.org; Wed, 20 Jun 2012 13:14:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ShORG-00055J-4p for control@debbugs.gnu.org; Wed, 20 Jun 2012 13:11:30 -0400 Date: Wed, 20 Jun 2012 13:11:30 -0400 Message-Id: Subject: control message for bug 11741 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) unarchive 8750 merge 8750 11741 From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 23 00:06:10 2012 Received: (at control) by debbugs.gnu.org; 23 Jul 2012 04:06:10 +0000 Received: from localhost ([127.0.0.1]:58254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1St9uM-00045q-8a for submit@debbugs.gnu.org; Mon, 23 Jul 2012 00:06:10 -0400 Received: from mail-vc0-f172.google.com ([209.85.220.172]:49992) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1St9uK-00045j-5a for control@debbugs.gnu.org; Mon, 23 Jul 2012 00:06:08 -0400 Received: by vcbfo14 with SMTP id fo14so5948729vcb.3 for ; Sun, 22 Jul 2012 20:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+5MvtlnwYfJ660w5BrCN1bZOcV529z5KsC8fBj94A0o=; b=FzQSaLbezXtKeT8hC2wj4byywXEPDIy2LZDD7sRhWJQl298EC3VwuAdU6GPGGRcZeZ KYxsSuHr+mdpCUtkluJxV9XOIpJmv3gqtmZDxxCTt0UHufmnm/UiSNGJpiMMQ7XtpHXM 5NIeAffgaskdcbUW1iQEd2U0q9R6WE9JzcnWMxZu7Hf+uD4DF1Fk1qsLxV4IbHXMq63x 07Gl3aMxsYN5hbBFpU4Zdmqs0aizXz1d3D3bB+RwGU2P+ftFWezrGhSLm+Ah+q0FGkr/ HPkw4ScS4mGQS2N2CiwHWpu9yzUapcIwsjGVq1evKaGQYwhpE7tT9wkRhiCdFCxXzqKU 5MMw== MIME-Version: 1.0 Received: by 10.52.90.144 with SMTP id bw16mr9722566vdb.129.1343015975923; Sun, 22 Jul 2012 20:59:35 -0700 (PDT) Received: by 10.220.110.138 with HTTP; Sun, 22 Jul 2012 20:59:35 -0700 (PDT) Date: Mon, 23 Jul 2012 00:59:35 -0300 Message-ID: Subject: unarchive 11741 From: Alejandro Benitez To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) unarchive 11741 Hi, Looks like this actually is a regression as the steps to reproduce that described the OP are not the the same as the know problem. 1. I start an Emacs daemon, even outside of X 2. then open an emacsclient frame in X 3. then C-x 5 0 4. then exit X 5. the daemon dies Step 3 means that the frame should be deleted before the X server for that frame would supposedly crash or exit unexpectedly. The actual problem is that the frame is not successfully deleted before exiting X, although it looks like it does. Emacs 23.4.1 does delete the frame successfully, so when I exit the X server I don't get a "there is currently 1 client connected" message that when I get with Emacs 24.1. I was able to reproduce this in Emacs 24.1 i686-pc-cygwin, GTK+. Emacs 23.4.1 i686-pc-cygwin, GTK+ does not die after performing the 4 steps above.