From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Mar 2014 23:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13959614234976 (code B ref -1); Thu, 27 Mar 2014 23:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Mar 2014 23:03:43 +0000 Received: from localhost ([127.0.0.1]:53294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTJKn-0001IB-Uy for submit@debbugs.gnu.org; Thu, 27 Mar 2014 19:03:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37336) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTJ5y-0000s3-Hs for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTJ5r-0002FT-0B for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5q-0002FO-Sx for submit@debbugs.gnu.org; Thu, 27 Mar 2014 18:48:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5k-0006s4-If for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTJ5e-0002EM-8I for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:08 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:52469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTJ5d-0002DT-TU for bug-gnu-emacs@gnu.org; Thu, 27 Mar 2014 18:48:02 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WTJ5I-0005Re-Gi; Thu, 27 Mar 2014 23:47:40 +0100 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WTJ5I-0000FR-E6; Thu, 27 Mar 2014 23:47:40 +0100 From: peder@klingenberg.no (Peder O. Klingenberg) Organization: Persons in a Position to Know, inc. Date: Thu, 27 Mar 2014 23:47:40 +0100 Message-ID: User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WTJ5I-0005Re-Gi X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-SpamScore: s X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1396565260.87158@bMO5ReoaTm82scSJJfiYPg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Thu, 27 Mar 2014 19:03:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Emacs compiled from git sources pulled 2014-03-26. I have a tiny local patch to startup.el that loads debian-startup in addition to the normal site-run-file (as long as site-run-file is non-nil), otherwise the sources are clean. I ran autoreconf and configure, then built with "make bootstrap". This triggers the behaviour: $ emacs -no-site-file -no-init-file --daemon=test $ emacsclient -nc -s test In emacs frame: C-x 5 0 The minibuffer flashes "No files need saving", the frame closes, and the emacs process is gone. Subsequent emacsclient invocations naturally fail with the messages emacsclient: connect: Connection refused emacsclient: error accessing socket "test" This does _not_ trigger the behaviour: $ emacs -no-site-file -no-init-file --daemon=test $ emacsclient -t -s test In emacs frame: C-x 5 0 The terminal frame exits, but I can reconnect again with another emacsclient call. Another way of _not_ triggering it: $ emacs -Q --daemon=test $ emacsclient -nc -s test Again I can exit the frame with C-x 5 0 and immediately reconnect, as expected. The only difference I could find between "-Q" and "-no-site-file -no-init-file" was that "-Q" sets inhibit-x-resources to t in startup.el. This sort of ties in to the problem only showing up when I start X frames, but I am at a loss as to how to dig deeper. I have some ancient X resources influencing emacs, but I fail to see how they can have an impact. Here's the output of "xrdb -query | grep -i emacs": Emacs*background: black Emacs*cursorColor: SeaGreen Emacs*font: 7x13 Emacs*foreground: DarkSeaGreen Emacs*menubar.background: Black Emacs*menubar.bottomShadowColor: DimGray Emacs*menubar.font: -*-fixed-bold-r-normal--13-*-*-*-*-70-iso8859-1 Emacs*menubar.foreground: DarkSeaGreen Emacs*menubar.margin: 0 Emacs*menubar.topShadowColor: DarkGray Emacs*pointerColor: SlateGrey Emacs*popup.font: -*-fixed-bold-r-normal--13-*-*-*-*-70-iso8859-1 Emacs*shadowThickness: 1 Emacs*verticalScrollBars.background: Black Emacs*verticalScrollBars.foreground: DarkSeaGreen Emacs.geometry: 85x75+0+0 Does any of this ring a bell for someone? Any ideas for where I should be looking? Any more relevant info I should provide? In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-03-26 on luna Windowing system distributor `The X.Org Foundation', version 11.0.10402000 System Description: Ubuntu 10.04.4 LTS Configured using: `configure --prefix=/usr/local/emacs-git --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp/:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --with-pop=yes' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-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 transient-mark-mode: t Recent input: M-x r e p o r SPC e m Recent messages: Starting Emacs daemon. When done with this frame, type C-x 5 0 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils server time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 77836 8053) (symbols 48 17986 0) (miscs 40 45 113) (strings 32 11943 4704) (string-bytes 1 319662) (vectors 16 10109) (vector-slots 8 382979 8265) (floats 8 71 60) (intervals 56 202 0) (buffers 960 12) (heap 1024 23942 627)) From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.13963521455380 (code B ref 17125); Tue, 01 Apr 2014 11:36:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 11:35:45 +0000 Received: from localhost ([127.0.0.1]:58870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUwyl-0001Og-Rz for submit@debbugs.gnu.org; Tue, 01 Apr 2014 07:35:44 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:33761) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUwyi-0001OT-1Y for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 07:35:41 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WUwyS-0008Ea-ER; Tue, 01 Apr 2014 13:35:24 +0200 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WUwyS-0003RN-Bs; Tue, 01 Apr 2014 13:35:24 +0200 From: peder@klingenberg.no (Peder O. Klingenberg) Organization: Persons in a Position to Know, inc. References: Date: Tue, 01 Apr 2014 13:35:24 +0200 In-Reply-To: (GNU bug Tracking System's message of "Thu, 27 Mar 2014 23:04:02 +0000") Message-ID: User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1WUwyS-0008Ea-ER X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-SpamScore: ss X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1396956924.71809@qs1ks0JY9Wy6dG7SkYe5gA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) The server process exits with a SIGSEGV and a core dump. The error seems to happen in font_clear_cache, maybe related to the changes described in bug #16069 Attaching a gdb to the server process before starting the emacsclient allowed me to capture the following: Program received signal SIGSEGV, Segmentation fault. 0x0000000000535f4e in PSEUDOVECTOR_TYPEP (a=3D0x7469672d73636168, code=3D15= ) at lisp.h:2378 2378 return ((a->size & (PSEUDOVECTOR_FLAG | PVEC_TYPE_MASK)) (gdb) bt full #0 0x0000000000535f4e in PSEUDOVECTOR_TYPEP (a=3D0x7469672d73636168, code= =3D15) at lisp.h:2378 No locals. #1 0x0000000000535fbe in PSEUDOVECTORP (a=3D8388349225861341549, code=3D15= ) at lisp.h:2392 h =3D 0x7469672d73636168 #2 0x00000000005e528d in font_clear_cache (f=3D0x1244b48, cache=3D16218886= , driver=3D0xc219c0) at font.c:2604 tail =3D 16211750 elt =3D 12770162 entity =3D 8388349225861341549 i =3D 2175 #3 0x00000000005e5111 in font_finish_cache (f=3D0x1244b48, driver=3D0xc219= c0) at font.c:2563 cache =3D 16217926 val =3D 16218726 tmp =3D 16218902 #4 0x00000000005e7c87 in font_update_drivers (f=3D0x1244b48, new_drivers= =3D12770162) at font.c:3472 driver =3D 0xc219c0 active_drivers =3D 12770162 list =3D 0xece050 #5 0x0000000000423a92 in delete_frame (frame=3D19155789, force=3D12770162)= at frame.c:1335 f =3D 0x1244b48 sf =3D 0xc41808 kb =3D 0xc2db72 minibuffer_selected =3D 0 is_tooltip_frame =3D 0 #6 0x0000000000423fb7 in Fdelete_frame (frame=3D12770162, force=3D12770162= ) at frame.c:1509 No locals. #7 0x00000000005d015d in Ffuncall (nargs=3D1, args=3D0x7fff937ae7a0) at ev= al.c:2818 fun =3D 9305797 original_fun =3D 12813026 funcar =3D 140735667693392 numargs =3D 0 lisp_numargs =3D 2474305360 val =3D 6099069 internal_args =3D 0x7fff937ae6d0 i =3D 2 #8 0x00000000005ca955 in Fcall_interactively (function=3D12813026, record_= flag=3D12770162, keys=3D12804829) at callint.c:836 val =3D 42949672960 args =3D 0x7fff937ae7a0 visargs =3D 0x7fff937ae780 specs =3D 9339777 filter_specs =3D 9339777 teml =3D 42958978752 up_event =3D 12770162 enable =3D 12770162 speccount =3D 5 next_event =3D 3 prefix_arg =3D 12770162 string =3D 0x7fff937ae7c0 "" tem =3D 0x7fff937ae7c0 "" varies =3D 0x7fff937ae770 "" i =3D 1 nargs =3D 1 mark =3D 5463998 arg_from_tty =3D false gcpro1 =3D { next =3D 0x0,=20 var =3D 0xa9c85d,=20 nvars =3D 140735667693744 } gcpro2 =3D { next =3D 0x8,=20 var =3D 0xa9c8ad,=20 nvars =3D 140735667693792 } gcpro3 =3D { next =3D 0x87,=20 var =3D 0xe06d9a47a6aa0200,=20 nvars =3D 1 } gcpro4 =3D { next =3D 0x6,=20 var =3D 0x7fff937ae848,=20 nvars =3D 1 } gcpro5 =3D { next =3D 0x7fff937ae460,=20 var =3D 0x0,=20 nvars =3D 11126960 } key_count =3D 3 record_then_fail =3D false save_this_command =3D 12813026 save_last_command =3D 20548306 save_this_original_command =3D 12813026 save_real_this_command =3D 12813026 #9 0x00000000005d0190 in Ffuncall (nargs=3D4, args=3D0x7fff937aea98) at ev= al.c:2822 fun =3D 12199085 original_fun =3D 12946690 funcar =3D 13065590 numargs =3D 3 lisp_numargs =3D 12809906 val =3D 12770162 internal_args =3D 0x7fff937aeaa0 i =3D 2 #10 0x0000000000610808 in exec_byte_code (bytestr=3D10260337, vector=3D1026= 0373, maxdepth=3D52, args_template=3D4100, nargs=3D1, args=3D0x7fff937af000= ) at bytecode.c:919 targets =3D {0x613e3e, 0x613e9b, 0x613e9d, 0x613e9f, 0x613ea1, 0x61= 3ea1, 0x613eff, 0x613f70, 0x6100dc, 0x6100de, 0x6100e0, 0x6100e2, 0x6100e4,= 0x6100e4, 0x6100ea,=20 0x6100a1, 0x61052a, 0x61052c, 0x61052e, 0x610530, 0x610532, 0x610= 532, 0x610573, 0x610538, 0x610719, 0x61071b, 0x61071d, 0x61071f, 0x610721, = 0x610721,=20 0x6106c1, 0x6106de, 0x6107d5, 0x6107d7, 0x6107d9, 0x6107db, 0x610= 7dd, 0x6107dd, 0x61077d, 0x61079a, 0x610898, 0x61089a, 0x61089c, 0x61089e, = 0x6108a0,=20 0x6108a0, 0x610840, 0x61085d, 0x611905, 0x611632, 0x611629, 0x613= e3e, 0x613e3e, 0x613e3e, 0x613e3e, 0x613e3e, 0x611b24, 0x611c0c, 0x611c63, = 0x611cba,=20 0x611d15, 0x6103bc, 0x610427, 0x611d7f, 0x61031e, 0x61048b, 0x611= dda, 0x611e3e, 0x611e85, 0x611ee9, 0x611f37, 0x612007, 0x61204e, 0x6120b2, = 0x612130,=20 0x612177, 0x6121be, 0x612222, 0x612286, 0x6122ea, 0x612368, 0x612= 3b6, 0x612404, 0x6124d4, 0x612561, 0x6125ee, 0x61282a, 0x612893, 0x6128fc, = 0x612965,=20 0x6129ce, 0x612a1c, 0x612aaa, 0x612af8, 0x612b46, 0x612b94, 0x612= c94, 0x6114c2, 0x612cf5, 0x612d3c, 0x612e07, 0x612e68, 0x612ec9, 0x612f10, = 0x612f60,=20 0x612fb0, 0x613008, 0x613e3e, 0x613059, 0x61309b, 0x6130dd, 0x613= 11f, 0x613161, 0x6131a3, 0x6114c2, 0x613e3e, 0x6131ea, 0x613239, 0x613280, = 0x6132c7,=20 0x61332b, 0x61338f, 0x6133d6, 0x6134af, 0x613513, 0x613577, 0x613= 5db, 0x61361d, 0x613e3e, 0x6113fb, 0x61093c, 0x6101db, 0x610a58, 0x610b9b, = 0x610cd5,=20 0x61138e, 0x6113c5, 0x61066f, 0x61147f, 0x6114f8, 0x611580, 0x611= 5c3, 0x611948, 0x6119c5, 0x611a43, 0x611aa8, 0x6108f5, 0x613664, 0x6136e2, = 0x613729,=20 0x613770, 0x6137b7, 0x6137fe, 0x613862, 0x6138c6, 0x61392a, 0x613= 98e, 0x613abe, 0x613b22, 0x613b86, 0x613bcd, 0x613c31, 0x613c95, 0x613cea, = 0x613d3f,=20 0x612be2, 0x612c30, 0x613d8d, 0x613de8, 0x613e3e, 0x610e0f, 0x610= efe, 0x611026, 0x61114e, 0x61126e, 0x611f85, 0x612452, 0x612d85, 0x614005, = 0x614076,=20 0x613e3e, 0x613e3e, 0x61410b, 0x613e3e, 0x613e3e, 0x613e3e, 0x613= e3e, 0x613e3e, 0x613e3e, 0x613e3e, 0x613e3e, 0x613e3e, 0x614190 } count =3D 4 count_volatile =3D 51546406209 op =3D 3 vectorp =3D 0x9c8f98 vectorp_volatile =3D 0x62a808 stack =3D { pc =3D 0xb4c0a3 "\006\006\071\203\225",=20 byte_string =3D 10260337,=20 byte_string_start =3D 0xb4c035 "\305\020\211?\205\f",=20 next =3D 0x0 } stack_volatile =3D { pc =3D 0x100c342f0
,=20 byte_string =3D 12796416,=20 byte_string_start =3D 0xc36ef2 "",=20 next =3D 0x130b796 } top =3D 0x7fff937aea98 result =3D 849472764 type =3D 12 #11 0x00000000005d086f in funcall_lambda (fun=3D10260293, nargs=3D1, arg_ve= ctor=3D0x7fff937aeff8) at eval.c:2983 val =3D 10260293 syms_left =3D 4100 next =3D 5463998 lexenv =3D 140735667695384 count =3D 4 i =3D 51546072263 optional =3D false rest =3D false #12 0x00000000005d033c in Ffuncall (nargs=3D2, args=3D0x7fff937aeff0) at ev= al.c:2864 fun =3D 10260293 original_fun =3D 12813698 funcar =3D 12619168 numargs =3D 1 lisp_numargs =3D 5 val =3D 2 internal_args =3D 0x7fff937af498 i =3D 12770162 #13 0x00000000005cfae6 in call1 (fn=3D12813698, arg1=3D12813026) at eval.c:= 2614 ret_ungc_val =3D 12770162 gcpro1 =3D { next =3D 0x1,=20 var =3D 0x1301966,=20 nvars =3D 2 } args =3D {12813698, 12813026} #14 0x000000000053cee7 in command_loop_1 () at keyboard.c:1556 scount =3D 2 cmd =3D 12813026 keybuf =3D {96, 212, 192, 5981058, 12619328, 12770162, 5463863, 127= 70162, 140735667695808, 5983251, 12770162, 12934418, 140735667695888, 59821= 83, 12619328,=20 12770162, 12934416, 20878576, 140735667695952, 6099650, 13053686,= 2, 5, 12934416, 12619328, 140735667695888, 12770162, 17072050, 13053686, 9= 905253} i =3D 3 prev_modiff =3D 11 prev_buffer =3D 0xc342f0 already_adjusted =3D false #15 0x00000000005ccf95 in internal_condition_case (bfun=3D0x53c7f5 , handlers=3D12821410, hfun=3D0x53c0f8 ) at eval.c:1354 val =3D 64 c =3D 0x13dda30 #16 0x000000000053c54f in command_loop_2 (ignore=3D12770162) at keyboard.c:= 1174 val =3D 140735667696792 #17 0x00000000005cc788 in internal_catch (tag=3D12817346, func=3D0x53c529 <= command_loop_2>, arg=3D12770162) at eval.c:1118 val =3D 12770162 c =3D 0x13dd900 #18 0x000000000053c501 in command_loop () at keyboard.c:1153 No locals. #19 0x000000000053bcf3 in recursive_edit_1 () at keyboard.c:777 count =3D 1 val =3D 12770162 #20 0x000000000053be60 in Frecursive_edit () at keyboard.c:845 count =3D 0 buffer =3D 12770162 #21 0x0000000000539f04 in main (argc=3D4, argv=3D0x7fff937af498) at emacs.c= :1654 dummy =3D 140285200712912 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D true dumping =3D false skip_args =3D 1 rlim =3D { rlim_cur =3D 8720000,=20 rlim_max =3D 18446744073709551615 } no_loadup =3D false junk =3D 0x0 dname_arg =3D 0x7fff937b0870 "test" ch_to_dir =3D 0x689070 "H\211l$\330L\211d$\340H\215-\323J%" original_pwd =3D 0x0 Lisp Backtrace: "delete-frame" (0x937ae7a8) "call-interactively" (0x937aeaa0) "command-execute" (0x937aeff8) I poked around at different stuff, and this seemed somehow relevant: (gdb) f 2 #2 0x00000000005e528d in font_clear_cache (f=3D0x1244b48, cache=3D16218886= , driver=3D0xc219c0) at font.c:2604 2604 if (FONT_ENTITY_P (entity) (gdb) p elt $14 =3D 12770162 (gdb) xpr Lisp_Symbol $15 =3D (struct Lisp_Symbol *) 0xc2db70 "nil" I also evaluated (frame-font-cache) in both the error case and when I started started the server with -Q (which, if you recall, means emacs does not segfault at the first delete-frame). -Q: (frame-font-cache) (":0" (x 1) (xft 1)) --no-site-file --no-init-file: (frame-font-cache) (":0" (x 1 (# . [# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #]) (# . #)) (xft 1 (# . []) (#) (# . [# # # #]))) Looking at the local i in stack frame #2 above, it seems way out of bounds at 2175. From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Peder O. Klingenberg" Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139636006918654 (code B ref 17125); Tue, 01 Apr 2014 13:48:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 13:47:49 +0000 Received: from localhost ([127.0.0.1]:58980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUz2a-0004qn-Bi for submit@debbugs.gnu.org; Tue, 01 Apr 2014 09:47:48 -0400 Received: from forward2h.mail.yandex.net ([84.201.187.147]:47453) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUz2W-0004qZ-AO for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 09:47:45 -0400 Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward2h.mail.yandex.net (Yandex) with ESMTP id B8524701B0C; Tue, 1 Apr 2014 17:47:39 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 50A2E13403DA; Tue, 1 Apr 2014 17:47:39 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2oLkd8frbf-lcJuZDct; Tue, 1 Apr 2014 17:47:38 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 5c7a81e4-5f67-498a-b3a0-10c6afcf05a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1396360058; bh=RZ8CPMPAx0SlqOuRWdzeC9s/oIgtBspZ0EocqnG9iz8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=a1ruSShcnZX9Ip5FFUTqz3SdsYdVP3Rj8YE0vIjQsn+NHodhck4y8T2nRZDxbk8Ez 413/FnJV2Xvvv1MAkqXPcYNPlqmljBtuUcVh5EXJn3mn6jhnyzhSP+tfLqps/Rc55h WEkbBmm/hO/Q6Cs6APGXr88TOJjVa3/A4rJhKABo= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <533AC37A.7060703@yandex.ru> Date: Tue, 01 Apr 2014 17:47:38 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 04/01/2014 03:35 PM, Peder O. Klingenberg wrote: > The server process exits with a SIGSEGV and a core dump. The error > seems to happen in font_clear_cache, maybe related to the changes > described in bug #16069 > > Attaching a gdb to the server process before starting the emacsclient > allowed me to capture the following: Could you also try to install a breakpoint at font.c:2600 and then call debug_print (elt) when hit? Probably elt is bogus here (not a vector). Also please recompile with --enable-checking to get easserts into the game. Dmitry From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139636139525365 (code B ref 17125); Tue, 01 Apr 2014 14:10:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 14:09:55 +0000 Received: from localhost ([127.0.0.1]:59410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUzNz-0006b1-D1 for submit@debbugs.gnu.org; Tue, 01 Apr 2014 10:09:55 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35810) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUzNv-0006ar-Ge for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 10:09:52 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WUzNg-0003aY-UD; Tue, 01 Apr 2014 16:09:36 +0200 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WUzNg-00078f-RY; Tue, 01 Apr 2014 16:09:36 +0200 From: peder@klingenberg.no (Peder O. Klingenberg) Organization: Persons in a Position to Know, inc. References: <533AC37A.7060703@yandex.ru> Date: Tue, 01 Apr 2014 16:09:36 +0200 In-Reply-To: <533AC37A.7060703@yandex.ru> (Dmitry Antipov's message of "Tue, 01 Apr 2014 17:47:38 +0400") Message-ID: User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WUzNg-0003aY-UD X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-SpamScore: ss X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1396966176.97651@hpdSw1Fka4AuF3G/GjSFIw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Dmitry Antipov writes: > Could you also try to install a breakpoint at font.c:2600 and then call > debug_print (elt) when hit? Probably elt is bogus here (not a vector). > Also please recompile with --enable-checking to get easserts into the game. I found and defined ENABLE_CHECKING in config.h before seeing your reply. The eassert does indeed trigger. Changing "eassert" to "if" makes the segfault go away, and I can start clients to my heart's content. The value of (frame-font-cache) on the lisp side is reduced when reattaching the second (and subsequent) clients, to only (":0" (x 1 (# . #)) (xft 1 (#))) I will do the breakpoint thing, but I'm out of time at the moment. I'll get to it either later today or tomorrow. Thanks! -- ...Peder... From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Peder O. Klingenberg" Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139636492731726 (code B ref 17125); Tue, 01 Apr 2014 15:09:01 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 15:08:47 +0000 Received: from localhost ([127.0.0.1]:59500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0Iw-0008Fb-Ar for submit@debbugs.gnu.org; Tue, 01 Apr 2014 11:08:47 -0400 Received: from forward4l.mail.yandex.net ([84.201.143.137]:51535) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0Is-0008FS-T3 for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 11:08:44 -0400 Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward4l.mail.yandex.net (Yandex) with ESMTP id 4CCF51440E29; Tue, 1 Apr 2014 19:08:41 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id E54DE1703F07; Tue, 1 Apr 2014 19:08:40 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id PL7E0Lc1wD-8eO86L9r; Tue, 1 Apr 2014 19:08:40 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: eb8ef684-82ae-47a7-9b8b-b7a1808663e8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1396364920; bh=J4hdAIba5x0LH7sSAABxNUuEHodPWpfmnXDTR7ULAuw=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=jg0TNV0rarfUV8w31l6N9mVbdUeCGmozMAzC7p/OfyyBXFvLT4ihaMDFt4xfiIDRs C0HNLPS8njnf1fDa2YpHZEjgvK/iSzH+kNRhmOgRuOTi1C6K4ceTkVKAeyp+8O7tSl Za29fInng3L73TgQjbKE8W0OiDTWV2YgNsmgo4CU= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <533AD678.7080307@yandex.ru> Date: Tue, 01 Apr 2014 19:08:40 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <533AC37A.7060703@yandex.ru> In-Reply-To: Content-Type: multipart/mixed; boundary="------------050508080701060602000507" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------050508080701060602000507 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/01/2014 06:09 PM, Peder O. Klingenberg wrote: > I will do the breakpoint thing, but I'm out of time at the moment. I'll > get to it either later today or tomorrow. Don't; please try this patch instead (hopefully it fixes a bug in font_matching_entity). Dmitry --------------050508080701060602000507 Content-Type: text/x-patch; name="bug17125.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17125.patch" === modified file 'src/composite.c' --- src/composite.c 2014-02-13 12:16:42 +0000 +++ src/composite.c 2014-04-01 14:06:38 +0000 @@ -223,7 +223,7 @@ if (INTEGERP (components)) key = Fmake_vector (make_number (1), components); else if (STRINGP (components) || CONSP (components)) - key = Fvconcat (1, &components); + key = vector1 (components); else if (VECTORP (components)) key = components; else if (NILP (components)) === modified file 'src/font.c' --- src/font.c 2014-03-03 19:58:20 +0000 +++ src/font.c 2014-04-01 14:32:00 +0000 @@ -2701,7 +2701,7 @@ if (prop < FONT_SPEC_MAX) val = Fcons (entity, val); } - return (Fvconcat (1, &val)); + return vector1 (val); } @@ -2756,10 +2756,7 @@ Lisp_Object copy; val = driver_list->driver->list (f, scratch_font_spec); - if (NILP (val)) - val = zero_vector; - else - val = Fvconcat (1, &val); + val = NILP (val) ? zero_vector : vector1 (val); copy = copy_font_spec (scratch_font_spec); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); @@ -2815,7 +2812,7 @@ entity = driver_list->driver->match (f, work); copy = copy_font_spec (work); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, entity), XCDR (cache))); + XSETCDR (cache, Fcons (Fcons (copy, vector1 (entity)), XCDR (cache))); } if (! NILP (entity)) break; === modified file 'src/lisp.h' --- src/lisp.h 2014-03-27 22:52:14 +0000 +++ src/lisp.h 2014-04-01 14:07:02 +0000 @@ -3709,6 +3709,16 @@ return v; } +/* Fast path to avoid Fvconcat (1, &obj). */ + +INLINE Lisp_Object +vector1 (Lisp_Object obj) +{ + Lisp_Object v = make_uninit_vector (1); + ASET (v, 0, obj); + return v; +} + extern struct Lisp_Vector *allocate_pseudovector (int, int, enum pvec_type); #define ALLOCATE_PSEUDOVECTOR(typ,field,tag) \ ((typ*) \ --------------050508080701060602000507-- From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Antipov Cc: "Peder O. Klingenberg" , 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.13963660341099 (code B ref 17125); Tue, 01 Apr 2014 15:28:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 15:27:14 +0000 Received: from localhost ([127.0.0.1]:59516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0an-0000Hf-QR for submit@debbugs.gnu.org; Tue, 01 Apr 2014 11:27:14 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60381 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV0al-0000HW-4s for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 11:27:12 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2B63FAC2D; Tue, 1 Apr 2014 15:27:10 +0000 (UTC) From: Andreas Schwab References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> X-Yow: YOW! I can see 1987!! PRESIDENT FORD is doing the REMAKE of "PAGAN LOVE SONG"...he's playing ESTHER WILLIAMS!! Date: Tue, 01 Apr 2014 17:27:09 +0200 In-Reply-To: <533AD678.7080307@yandex.ru> (Dmitry Antipov's message of "Tue, 01 Apr 2014 19:08:40 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Dmitry Antipov writes: > === modified file 'src/lisp.h' > --- src/lisp.h 2014-03-27 22:52:14 +0000 > +++ src/lisp.h 2014-04-01 14:07:02 +0000 > @@ -3709,6 +3709,16 @@ > return v; > } > > +/* Fast path to avoid Fvconcat (1, &obj). */ > + > +INLINE Lisp_Object > +vector1 (Lisp_Object obj) > +{ > + Lisp_Object v = make_uninit_vector (1); > + ASET (v, 0, obj); > + return v; > +} > + This is not a useful comment. Fvconcat(1,&obj) and vector1(obj) have quite different semantics. The latter creates a one-element vector containing obj (same as Fvector(1,&obj)), whereas the former creates a vector from all elements in obj. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: "Peder O. Klingenberg" , 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139636967311871 (code B ref 17125); Tue, 01 Apr 2014 16:28:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 16:27:53 +0000 Received: from localhost ([127.0.0.1]:59590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV1XV-00035P-46 for submit@debbugs.gnu.org; Tue, 01 Apr 2014 12:27:53 -0400 Received: from forward10l.mail.yandex.net ([84.201.143.143]:42524) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV1XR-000356-7H for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 12:27:50 -0400 Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward10l.mail.yandex.net (Yandex) with ESMTP id 5D9B5BA0BCA; Tue, 1 Apr 2014 20:27:45 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id D67921340777; Tue, 1 Apr 2014 20:27:44 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id gZmy6TxnJV-RiJK0qF9; Tue, 1 Apr 2014 20:27:44 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: a0045916-676d-4885-8f1f-23136f69f66e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1396369664; bh=J1aX2+3yQ88PSnuMLMG3jWTcHI2xqod+lQBJGWBjTE4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=n5/Hyhg77AzKIqEVHNg/7/KBL4goKGbkOk+T7H1OmFzj3R8wsvYknKAvLFZQ7vYS9 aXZTAWPTvREXWVexP8vYuzQVecKHMs6MHqxtjvBbZX/4MOUoPH+nntpB/sMCZPE7md d3VDfu0vz5LCEP3Zr0UO/eAsMrnvvuKNWi+nH47M= Authentication-Results: smtp1h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <533AE900.5040507@yandex.ru> Date: Tue, 01 Apr 2014 20:27:44 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> In-Reply-To: Content-Type: multipart/mixed; boundary="------------050404020608000603000909" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------050404020608000603000909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/01/2014 07:27 PM, Andreas Schwab wrote: > This is not a useful comment. Fvconcat(1,&obj) and vector1(obj) have > quite different semantics. The latter creates a one-element vector > containing obj (same as Fvector(1,&obj)), whereas the former creates a > vector from all elements in obj. Argh, that was a horrible mistake. Thanks. Peder, please try this instead. Dmitry --------------050404020608000603000909 Content-Type: text/x-patch; name="bug17125_fixed.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17125_fixed.patch" === modified file 'src/font.c' --- src/font.c 2014-03-03 19:58:20 +0000 +++ src/font.c 2014-04-01 16:23:43 +0000 @@ -2756,10 +2756,7 @@ Lisp_Object copy; val = driver_list->driver->list (f, scratch_font_spec); - if (NILP (val)) - val = zero_vector; - else - val = Fvconcat (1, &val); + val = NILP (val) ? zero_vector : Fvconcat (1, &val); copy = copy_font_spec (scratch_font_spec); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); @@ -2813,6 +2810,7 @@ else { entity = driver_list->driver->match (f, work); + entity = NILP (entity) ? zero_vector : Fvconcat (1, &entity); copy = copy_font_spec (work); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); XSETCDR (cache, Fcons (Fcons (copy, entity), XCDR (cache))); --------------050404020608000603000909-- From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: "Peder O. Klingenberg" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Antipov Cc: Andreas Schwab , 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139638614712850 (code B ref 17125); Tue, 01 Apr 2014 21:03:02 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 21:02:27 +0000 Received: from localhost ([127.0.0.1]:59766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV5pD-0003LB-7l for submit@debbugs.gnu.org; Tue, 01 Apr 2014 17:02:27 -0400 Received: from tarrant.klingenberg.no ([80.91.231.253]:59658) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV5pA-0003L0-Kx for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 17:02:25 -0400 Received: from 205.122.202.84.customer.cdi.no ([84.202.122.205] helo=[10.13.0.100]) by tarrant.klingenberg.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WV5p1-0008Nb-Kz; Tue, 01 Apr 2014 23:02:21 +0200 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=windows-1252 From: "Peder O. Klingenberg" In-Reply-To: <533AE900.5040507@yandex.ru> Date: Tue, 1 Apr 2014 23:02:08 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> X-Mailer: Apple Mail (2.1874) X-Spam-Score: -2.9 (--) X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 1 Apr, 2014, at 18:27, Dmitry Antipov wrote: > Peder, please try this instead. [...] > I skipped your earlier patch, and applied this one on top of a clean = font.c, reverting my own experiments. It was not an unconditional success, unfortunately. Nothing segfaults = anymore, but now I=92m not able to attach a graphical emacsclient at = all: $ emacsclient -nc -s test *ERROR*: Wrong type argument: font, [] Until now I=92ve been using emacsclient as built with the clean 24.4.50 = sources. I tried with a post-patch build of emacsclient as well, no = difference. Neither gdb on the server process or gdb on the emacsclient = invocation caught a signal. So I set up a terminal client, set debug-on-error and debug-on-quit and = debug-on-signal all to t (they were the ones I could remember=85) When I ran =93emacsclient -nc -s test=94 I got the following backtrace = (deeper frames and irrelevant environment elided): Debugger entered--Lisp error: (wrong-type-argument font []) x-create-frame(((visibility) (height . 75) (width . 85) (display . = "localhost:11.0") (client . nowait) (environment "..."))) x-create-frame-with-faces(((height . 75) (width . 85) (display . = "localhost:11.0") (client . nowait) (environment "...")) make-frame(((display . "localhost:11.0") (client . nowait) = (environment "...")) make-frame-on-display("localhost:11.0" ((client . nowait) (environment = "...")) server-create-window-system-frame("localhost:11.0" t #> nil nil) [=85] --=20 ...Peder... From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Resent-From: "Peder O. Klingenberg" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Apr 2014 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Antipov Cc: Andreas Schwab , 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139639007019411 (code B ref 17125); Tue, 01 Apr 2014 22:08:01 +0000 Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 22:07:50 +0000 Received: from localhost ([127.0.0.1]:59777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV6qT-000531-Ck for submit@debbugs.gnu.org; Tue, 01 Apr 2014 18:07:49 -0400 Received: from tarrant.klingenberg.no ([80.91.231.253]:59879) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV6qP-00052n-WE for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 18:07:47 -0400 Received: from 205.122.202.84.customer.cdi.no ([84.202.122.205] helo=[10.13.0.100]) by tarrant.klingenberg.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WV6qH-0001Uo-RF; Wed, 02 Apr 2014 00:07:43 +0200 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=windows-1252 From: "Peder O. Klingenberg" In-Reply-To: Date: Wed, 2 Apr 2014 00:07:30 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <82A11322-301D-4867-8FFC-B831BB93DAF2@klingenberg.no> References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> X-Mailer: Apple Mail (2.1874) X-Spam-Score: -2.9 (--) X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 1 Apr, 2014, at 23:02, Peder O. Klingenberg = wrote: > x-create-frame(((visibility) (height . 75) (width . 85) (display . = "localhost:11.0") (client . nowait) (environment "..."))) Stepping through this function in gdb, the trace seems to be x-create-frame calls=20 x_default_font_parameter (xfns.c:3049) calls x_default_parameter (xfns.c:2832) calls x_set_frame_parameters (frame.c:4018) bt full from a breakpoint on frame.c:4018 shows (top only, it=92s 48 = frames down to main(). Let me know if there may be interesting stuff = there) (gdb) bt full #0 x_default_parameter (f=3D0x135d9e0, alist=3D17834182, prop=3D14078850,= deflt=3D16340481, xprop=3D0x6eba5e "font", xclass=3D0x6eba59 "Font",=20 type=3DRES_TYPE_STRING) at frame.c:4018 tem =3D 16340577 #1 0x0000000000543a60 in x_default_font_parameter (f=3D0x135d9e0, = parms=3D17834182) at xfns.c:2832 dpyinfo =3D 0x1a64170 font_param =3D 13859698 font =3D 16340481 #2 0x0000000000544577 in Fx_create_frame (parms=3D17834182) at = xfns.c:3049 f =3D 0x135d9e0 frame =3D 20306405 tem =3D 13859650 name =3D 13859650 minibuffer_only =3D 0 window_prompting =3D 0 width =3D 5642964 height =3D 32767 count =3D 31 gcpro1 =3D { next =3D 0x87,=20 var =3D 0x975b4384e3bea600,=20 nvars =3D 140733812145632 } gcpro2 =3D { next =3D 0x21,=20 var =3D 0x7fff24e17dc8,=20 nvars =3D 5649570 } gcpro3 =3D { next =3D 0x7fff24e179c8,=20 var =3D 0x0,=20 nvars =3D 9956832 } gcpro4 =3D { next =3D 0x2,=20 var =3D 0x2,=20 nvars =3D 514 } display =3D 16339697 dpyinfo =3D 0x1a64170 parent =3D 13859698 kb =3D 0x14f8b80 This may be relevant: (gdb) f 1 #1 0x0000000000543a60 in x_default_font_parameter (f=3D0x135d9e0, = parms=3D17834182) at xfns.c:2832 2832 x_default_parameter (f, parms, Qfont, font, "font", "Font", = RES_TYPE_STRING); (gdb) p font $1 =3D 16340481 (gdb) xpr Lisp_String $2 =3D (struct Lisp_String *) 0xf95600 "7x13" (gdb) p font_param $3 =3D 13859698 (gdb) xpr Lisp_Symbol $4 =3D (struct Lisp_Symbol *) 0xd37b70 "nil" --=20 ...Peder... From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 03:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Peder O. Klingenberg" Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139641038725314 (code B ref 17125); Wed, 02 Apr 2014 03:47:01 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Apr 2014 03:46:27 +0000 Received: from localhost ([127.0.0.1]:59939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVC8A-0006aD-Ft for submit@debbugs.gnu.org; Tue, 01 Apr 2014 23:46:26 -0400 Received: from forward5l.mail.yandex.net ([84.201.143.138]:36422) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVC86-0006a3-Lq for 17125@debbugs.gnu.org; Tue, 01 Apr 2014 23:46:24 -0400 Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward5l.mail.yandex.net (Yandex) with ESMTP id 281AAC40E5B; Wed, 2 Apr 2014 07:46:20 +0400 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id BE46A1B403CD; Wed, 2 Apr 2014 07:46:19 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Vg10EhOFMe-kJfKfbxD; Wed, 2 Apr 2014 07:46:19 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: dc1feb56-dbe7-4d3e-a915-41b23575f29c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1396410379; bh=TqeHMBoAbMWq9WIlhsls3MFyaiCvV+2daIo6meMxbhc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=C8KB/c9Wz8aQEjG2jzw4KemwlBzu5qvo2u0XFYcnXWheKnsPskWyhpd/sHTMXiw93 xzAaZxHPhmfzL8d1OjEaGSnAiBlRgAg88OGGAr0D8dRP/MOb1gSqYn6pONlSeSv5wv FmI5gfnG/S6WbyfYEukBf8AEUoWXy88uNmzeJY4M= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <533B880B.5070009@yandex.ru> Date: Wed, 02 Apr 2014 07:46:19 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> In-Reply-To: Content-Type: multipart/mixed; boundary="------------020706020007040201020902" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------020706020007040201020902 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 04/02/2014 01:02 AM, Peder O. Klingenberg wrote: > I skipped your earlier patch, and applied this one on top of a clean fo= nt.c, reverting my own experiments. > > It was not an unconditional success, unfortunately. Nothing segfaults = anymore, but now I=92m not able to attach a graphical emacsclient at all:= > > $ emacsclient -nc -s test > *ERROR*: Wrong type argument: font, [] Hm...should we avoid empty vectors in font cache entities? Try this. Dmitry --------------020706020007040201020902 Content-Type: text/x-patch; name="bug17125_fixed_2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17125_fixed_2.patch" === modified file 'src/font.c' --- src/font.c 2014-03-03 19:58:20 +0000 +++ src/font.c 2014-04-02 03:38:22 +0000 @@ -2753,22 +2753,21 @@ val = XCDR (val); else { - Lisp_Object copy; - val = driver_list->driver->list (f, scratch_font_spec); - if (NILP (val)) - val = zero_vector; - else - val = Fvconcat (1, &val); - copy = copy_font_spec (scratch_font_spec); - ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); + if (!NILP (val)) + { + Lisp_Object copy = copy_font_spec (scratch_font_spec); + + val = Fvconcat (1, &val); + ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); + XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); + } } - if (ASIZE (val) > 0 + if (VECTORP (val) && ASIZE (val) > 0 && (need_filtering || ! NILP (Vface_ignored_fonts))) val = font_delete_unmatched (val, need_filtering ? spec : Qnil, size); - if (ASIZE (val) > 0) + if (VECTORP (val) && ASIZE (val) > 0) list = Fcons (val, list); } @@ -2804,7 +2803,6 @@ && (NILP (ftype) || EQ (driver_list->driver->type, ftype))) { Lisp_Object cache = font_get_cache (f, driver_list->driver); - Lisp_Object copy; ASET (work, FONT_TYPE_INDEX, driver_list->driver->type); entity = assoc_no_quit (work, XCDR (cache)); @@ -2813,9 +2811,14 @@ else { entity = driver_list->driver->match (f, work); - copy = copy_font_spec (work); - ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, entity), XCDR (cache))); + if (!NILP (entity)) + { + Lisp_Object copy = copy_font_spec (work); + Lisp_Object match = Fvector (1, &entity); + + ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); + XSETCDR (cache, Fcons (Fcons (copy, match), XCDR (cache))); + } } if (! NILP (entity)) break; --------------020706020007040201020902-- From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Antipov Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139643944423520 (code B ref 17125); Wed, 02 Apr 2014 11:51:02 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Apr 2014 11:50:44 +0000 Received: from localhost ([127.0.0.1]:60419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVJgq-00067I-5S for submit@debbugs.gnu.org; Wed, 02 Apr 2014 07:50:44 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59546) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVJgn-00067A-Vi for 17125@debbugs.gnu.org; Wed, 02 Apr 2014 07:50:42 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WVJgW-00030I-7U; Wed, 02 Apr 2014 13:50:24 +0200 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WVJgW-0000cB-4v; Wed, 02 Apr 2014 13:50:24 +0200 From: peder@klingenberg.no (Peder O. Klingenberg) Organization: Persons in a Position to Know, inc. References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> <533B880B.5070009@yandex.ru> Date: Wed, 02 Apr 2014 13:50:24 +0200 In-Reply-To: <533B880B.5070009@yandex.ru> (Dmitry Antipov's message of "Wed, 02 Apr 2014 07:46:19 +0400") Message-ID: User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WVJgW-00030I-7U X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-SpamScore: ss X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1397044224.4685@AgWmqOuunuNO+rbGnrp2ug X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Dmitry Antipov writes: > Hm...should we avoid empty vectors in font cache entities? Try this. Success! Reverting bug17125_fixed.patch and applying your bug17125_fixed_2.patch, I have an emacs running in daemon mode which does not segfault anymore. Thanks! This bug was really messing up my workflow. -- ...Peder... From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Peder O. Klingenberg" Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139644145426929 (code B ref 17125); Wed, 02 Apr 2014 12:25:02 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Apr 2014 12:24:14 +0000 Received: from localhost ([127.0.0.1]:60441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVKDF-00070G-Iz for submit@debbugs.gnu.org; Wed, 02 Apr 2014 08:24:14 -0400 Received: from forward3l.mail.yandex.net ([84.201.143.136]:51255) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVKDA-000704-Un for 17125@debbugs.gnu.org; Wed, 02 Apr 2014 08:24:10 -0400 Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward3l.mail.yandex.net (Yandex) with ESMTP id 449951501100; Wed, 2 Apr 2014 16:24:07 +0400 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id D13B31B43802; Wed, 2 Apr 2014 16:24:06 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 04S8qgFHiq-O6f0oVtB; Wed, 2 Apr 2014 16:24:06 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 41a2347a-ff5b-4ef2-a69c-93ebc669031a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1396441446; bh=3ZODdIM1V7sznICOoew1AkTnoLfLq2P4aMreE7JtdQI=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=PMeoRJGHcjLqL8Ea9dd+jCPAAz7Uuy7qSmXYpC2SXcOmstXyiBCTHfqu18+Sp17OQ wwg+F4n/E3Y0XYcQGV3z8eBET2u7WWEQbu4jrKpmzX/FMsq93z9yR/Q/OgDcj5+GrL RwjIipK5gimgbNUg5QxIimf2uj1caFvYKSMTkNsY= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <533C0165.70507@yandex.ru> Date: Wed, 02 Apr 2014 16:24:05 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> <533B880B.5070009@yandex.ru> In-Reply-To: Content-Type: multipart/mixed; boundary="------------070604060908000207080504" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------070604060908000207080504 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04/02/2014 03:50 PM, Peder O. Klingenberg wrote: > Success! > > Reverting bug17125_fixed.patch and applying your bug17125_fixed_2.patch, > I have an emacs running in daemon mode which does not segfault anymore. > > Thanks! This bug was really messing up my workflow. This patch prevents [] (empty vector, means "no match") from entering font cache. IMO this is correct, but this breaks current behavior of font_list_entities. Could you please also try a more compatible/conservative change? Dmitry --------------070604060908000207080504 Content-Type: text/x-patch; name="bug17125_fixed_3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17125_fixed_3.patch" === modified file 'src/font.c' --- src/font.c 2014-03-03 19:58:20 +0000 +++ src/font.c 2014-04-02 12:12:21 +0000 @@ -2753,14 +2753,10 @@ val = XCDR (val); else { - Lisp_Object copy; + Lisp_Object copy = copy_font_spec (scratch_font_spec); val = driver_list->driver->list (f, scratch_font_spec); - if (NILP (val)) - val = zero_vector; - else - val = Fvconcat (1, &val); - copy = copy_font_spec (scratch_font_spec); + val = NILP (val) ? zero_vector : Fvconcat (1, &val); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); } @@ -2804,7 +2800,6 @@ && (NILP (ftype) || EQ (driver_list->driver->type, ftype))) { Lisp_Object cache = font_get_cache (f, driver_list->driver); - Lisp_Object copy; ASET (work, FONT_TYPE_INDEX, driver_list->driver->type); entity = assoc_no_quit (work, XCDR (cache)); @@ -2812,10 +2807,12 @@ entity = XCDR (entity); else { + Lisp_Object match, copy = copy_font_spec (work); + entity = driver_list->driver->match (f, work); - copy = copy_font_spec (work); + match = NILP (entity) ? zero_vector : Fvector (1, &match); ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, entity), XCDR (cache))); + XSETCDR (cache, Fcons (Fcons (copy, match), XCDR (cache))); } if (! NILP (entity)) break; --------------070604060908000207080504-- From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs Resent-From: peder@klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Apr 2014 13:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Antipov Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.139644372430941 (code B ref 17125); Wed, 02 Apr 2014 13:03:03 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Apr 2014 13:02:04 +0000 Received: from localhost ([127.0.0.1]:60494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVKnr-00082y-AA for submit@debbugs.gnu.org; Wed, 02 Apr 2014 09:02:03 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:60513) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVKno-00082X-9p for 17125@debbugs.gnu.org; Wed, 02 Apr 2014 09:02:01 -0400 Received: from luna.netfonds.no ([80.91.225.79] helo=luna) by hermes.netfonds.no with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WVKnX-0004S8-9m; Wed, 02 Apr 2014 15:01:43 +0200 Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WVKnX-0000wD-79; Wed, 02 Apr 2014 15:01:43 +0200 From: peder@klingenberg.no (Peder O. Klingenberg) Organization: Persons in a Position to Know, inc. References: <533AC37A.7060703@yandex.ru> <533AD678.7080307@yandex.ru> <533AE900.5040507@yandex.ru> <533B880B.5070009@yandex.ru> <533C0165.70507@yandex.ru> Date: Wed, 02 Apr 2014 15:01:43 +0200 In-Reply-To: <533C0165.70507@yandex.ru> (Dmitry Antipov's message of "Wed, 02 Apr 2014 16:24:05 +0400") Message-ID: User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WVKnX-0004S8-9m X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-SpamScore: ss X-Netfonds-MailScanner-From: peder@klingenberg.no MailScanner-NULL-Check: 1397048503.4489@vS0USkorVw/VLzR7t409Lg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Dmitry Antipov writes: > This patch prevents [] (empty vector, means "no match") from entering font cache. > IMO this is correct, but this breaks current behavior of font_list_entities. > Could you please also try a more compatible/conservative change? Sorry, this dies in the GC before any frame becomes visible: (gdb) bt full #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:355 No locals. #1 0x00000000005edad0 in die ( msg=0x710f40 "FONT_ENTITY_P (AREF (((suppress_checking || ((((enum Lisp_Type) ((obj) & ~(1 ? - (1 << 3) : (9223372036854775807L >> (3 - 1))))) == Lisp_Cons)) ? (void) 0 : die (\"CONSP (obj)\", \"alloc.c\", 5374)), (str"..., file=0x7104c8 "alloc.c", line=5374) at alloc.c:6799 No locals. #2 0x00000000005ea9b2 in compact_font_cache_entry (entry=17306966) at alloc.c:5374 i = 0 size = 1 drop = false obj = 17300758 tail = 17300742 prev = 0x1081568 #3 0x00000000005eaba9 in compact_font_caches () at alloc.c:5407 entry = 17306838 cache = 18430694 t = 0x110f6a0 #4 0x00000000005eb1eb in Fgarbage_collect () at alloc.c:5582 nextb = 0x0 stack_top_variable = 0 '\000' i = 1618 message_p = false count = 40 start = { tv_sec = 1396443207, tv_nsec = 632197068 } retval = 13859698 tot_before = 0 [skipped 67 more frames, let me know if you want them.] Lisp Backtrace: "Automatic GC" (0xd2aba0) "x-create-frame" (0x2034c850) "x-create-frame-with-faces" (0x2034cd70) "make-frame" (0x2034d290) "make-frame-on-display" (0x2034d7e8) "server-create-window-system-frame" (0x2034dd98) 0x120c6a8 PVEC_COMPILED "funcall" (0x2034e310) 0x120bee8 PVEC_COMPILED "funcall" (0x2034eac0) "server-process-filter" (0x2034f1f8) -- ...Peder... From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: 24.4.50; daemon mode: closing X client frame exits entire emacs References: In-Reply-To: Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jul 2014 15:39:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.140509308313180 (code B ref 17125); Fri, 11 Jul 2014 15:39:04 +0000 Received: (at 17125) by debbugs.gnu.org; 11 Jul 2014 15:38:03 +0000 Received: from localhost ([127.0.0.1]:53614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5ctb-0003QC-FI for submit@debbugs.gnu.org; Fri, 11 Jul 2014 11:38:03 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:49277) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X5Wmf-0006yc-Qm for 17125@debbugs.gnu.org; Fri, 11 Jul 2014 05:06:26 -0400 Received: by mail-pa0-f46.google.com with SMTP id eu11so1122723pac.5 for <17125@debbugs.gnu.org>; Fri, 11 Jul 2014 02:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=KHe4KjEKxayFNGE8o1NxF7JjkbGeTLo7yaEJjofyTg4=; b=SxGMpWWe3HIMLq+UheEneoNJ4O6QVU3b3F/OAqg9RDy7Rvsp+WtkS0d3vNEcG4nv7w Qr/XhH0VMGRJX0HXyfvGCo/cPxBXZVZfBKhnTHp+i1eyalvKrIdUs/TzYByEAr4zCx/G Nm3DYfajEUCbOPedVZ9+fRVXM4RTMKS4NtsiwaI4QYBEoZ6xNFdAaw/XLjosjh4MnT9z Wh+dJcNgaqnQdLOe0ebyThBl+i4z4zm919L7p2QJkOJxF1ZbmIjle0pCgfA9M15lTYrK XSmLAuFGTfc81kSeGf0b5isIgoVrPNjJqf46QPJSd0dxt4z/LQEEx8ULdkbRyW+AppqG foJw== X-Received: by 10.68.171.131 with SMTP id au3mr8924287pbc.125.1405069579629; Fri, 11 Jul 2014 02:06:19 -0700 (PDT) Received: from localhost (ppp118-209-35-177.lns20.mel4.internode.on.net. [118.209.35.177]) by mx.google.com with ESMTPSA id rm9sm7128350pab.4.2014.07.11.02.06.18 for <17125@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Jul 2014 02:06:19 -0700 (PDT) From: Alexis Date: Fri, 11 Jul 2014 19:01:48 +1000 Message-ID: <87ion4i7so.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Fri, 11 Jul 2014 11:37:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) As per this discussion on the emacs-devel list: https://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00059.html i was having similar problems, cf. this backtrace: https://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00130.html However, applying either Dmitry's fixed_2.patch or fixed_3.patch solved the problem for me; both C-x C-c and C-x 5 0 close the frame without shutting down the daemon. Alexis. From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: bug#18041: 24.3; Exiting emacsclient kills emacs --daemon Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jul 2014 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18041@debbugs.gnu.org Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.140564734513017 (code B ref 17125); Fri, 18 Jul 2014 01:36:02 +0000 Received: (at 17125) by debbugs.gnu.org; 18 Jul 2014 01:35:45 +0000 Received: from localhost ([127.0.0.1]:57711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X7x5L-0003Nr-Sx for submit@debbugs.gnu.org; Thu, 17 Jul 2014 21:35:44 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:36074) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X7x55-0003NE-7M; Thu, 17 Jul 2014 21:35:37 -0400 Received: by mail-pa0-f53.google.com with SMTP id kq14so4331814pab.26 for ; Thu, 17 Jul 2014 18:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=i5FSHB7Gy5V7+eDu1GcGrisvPrztUydQO77ZECw71BQ=; b=SHDe9fUN9heWKHjhrXEPb5uJ426/Dct75kQcylOigHHj3uq67I/C58XRDr8Lva9yOq DLLMI5Vugx2MqP5R6N3wrEl+lvtMhg8xTzbSQ1ie4chjrB1jAMM5wsLSdZn8sWeJssRf M9SX3QBEWCfyCmBDLWYhcmbU2Jq46sbZV4epLq9vA/aTQ6v5ROHkZEkr1o7W9mQXENEG XSSd9ZDxBimFy1Lj/hKa5f7urdflb31myNgn8Wkv4bd6vXDoAgTTPoe2qrLxY0oaIBsA x9FcHhHQCcz5MT4WsaVy7ZbbkPyqHFja1CFFyKotarUHL2nynBxZTyhOt/tvTRXF7R9B xjUw== X-Received: by 10.70.87.229 with SMTP id bb5mr974050pdb.125.1405647321035; Thu, 17 Jul 2014 18:35:21 -0700 (PDT) Received: from localhost (ppp118-209-35-177.lns20.mel4.internode.on.net. [118.209.35.177]) by mx.google.com with ESMTPSA id pn4sm3821967pbb.7.2014.07.17.18.35.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Jul 2014 18:35:20 -0700 (PDT) References: <53C772E2.1060406@gmail.com> From: Alexis Date: Fri, 18 Jul 2014 11:32:21 +1000 In-reply-to: <53C772E2.1060406@gmail.com> Message-ID: <87fvhza1po.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Perhaps related to bug #17125? http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17125 Alexis. -- Mel Byrne writes: > Running emacs 24.3.1 on Linux Mint 17 Cinnamon edition. I start an emacs > daemon using > > $ emacs --daemon > > and connect to it using > > $ emacsclient -c > > I open 5 shell buffers called k0 and [0123]_idl. I run bash in k0 and an > interactive IDL process in each of the ?_idl buffers. I start IDL > number-crunching processes in each of the ?_idl buffers. I then ssh -X > into the machine and run another emacsclient -c to give me access and > control to the ?_idl processes. Exiting the emacsclient using either C-x > C-c *or* C-x 5 0 kills the emacs 24.3.1 daemon. > > On my Linux Mint 13 MATE machine, I can run emacsclient against the > emacs 23 daemon and exit using either C-x C-c or C-x 5 0 without killing > the emacs daemon. > > > In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) > of 2014-03-07 on lamiak, modified by Debian > Windowing system distributor `The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17 Qiana > > Configured using: > `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' > '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' > '--localstatedir=/var/lib' '--infodir=/usr/share/info' > '--mandir=/usr/share/man' '--with-pop=yes' > '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' > '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' > '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' > 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector > --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' > 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' > 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' > > Important settings: > value of $LANG: en_IE.UTF-8 > locale-coding-system: utf-8-unix > default enable-multibyte-characters: nil > > Major mode: Shell > > Minor modes in effect: > shell-dirtrack-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 > line-number-mode: t > transient-mark-mode: t > > Recent input: > 4 C-x C-s C-x b c d > t c s h s s w i d l c d > , SPC ' s r c / g e n _ c u b e ' C-x b > C-x b g e n _ c u b e M-x s h e l > l M-x r e n a m e SPC b SPC 2 > 2 _ i d l t c s h s s w > i d l c d , SPC ' s r c / g e n ' > C-x b g e 8 C-x C-s C-x > b g e n _ c u b e M-x s h e l l > M-x r e n a m e SPC b SPC 3 _ i d l > C-x b g e n 1 2 C-x C-s > C-x b t c s h s s w i d l > c d , SPC ' s r c / g e n _ c u b e ' g e > n _ c u b e C-x b 0 C-x C-f > D e s k i n > > > C-d C-d C-d C-d C-d C-d C-d > C-d C-d C-d C-d C-d C-d C-d C-d C-d C-d C-d > C-d C-d C-x C-s C-x k M-x r e p o r t SPC > e , a m a c s SPC b i g > u g > > Recent messages: > Normalizing idlwave-system-routines in idle time...done > Loading and normalizing library catalogs in idle time...done > Finishing initialization in idle time... > Scanning all buffers... > Setting up indent for shell type sh > setting up indent stuff > Indentation variables are now local. > Indentation setup for shell type sh > Saving file /home/mel/Desktop/install.sh... > Wrote /home/mel/Desktop/install.sh > > Load-path shadows: > /usr/share/emacs/24.3/site-lisp/debian-startup hides > /usr/share/emacs/site-lisp/debian-startup > > Features: > (shadow sort gnus-util mail-extr warnings emacsbug message format-spec > rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 > mailabbrev gmm-utils mailheader sh-script smie executable vc-git idlwave > imenu idlwave-help idlw-help browse-url shell pcomplete comint > ansi-color ring color-theme cl-macs gv edmacro kmacro wid-edit cl cl-lib > sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils > reporter easymenu jka-compr time-date tooltip ediff-hook vc-hooks > lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt > fringe tabulated-list newcomment 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 macroexp 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) From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs References: In-Reply-To: Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 02:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.141221827624549 (code B ref 17125); Thu, 02 Oct 2014 02:52:02 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Oct 2014 02:51:16 +0000 Received: from localhost ([127.0.0.1]:57895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZWU7-0006Nt-Hz for submit@debbugs.gnu.org; Wed, 01 Oct 2014 22:51:15 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:47061) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZWU5-0006Ne-CC for 17125@debbugs.gnu.org; Wed, 01 Oct 2014 22:51:14 -0400 Received: by mail-pd0-f180.google.com with SMTP id fp1so1324590pdb.39 for <17125@debbugs.gnu.org>; Wed, 01 Oct 2014 19:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=ZP2MTHXYCMtOFSNWQUuqwAamxJ5Bcrwg/Od0oxPmj5I=; b=zn0C7IQkt0RRZCoD3FjrlDqbbtot5AshSXh278YTWdbgG1ckoPKJnDKjgUrqFzMXrM tIZatRqadwNwtjH7+/Lc97AB6Nr+X6xDgHaFmKMwuiZKCLTJNNzVtFHRcM3CUnXY8OQX nffp11Cyz+dExPH+h+PFm/OeB3lgvKAxYkgdZM4aee2fkPBGi8jRpZxbCIleXweeMZ/u cF1rsoypoiq82HDzRIHYXCKtt1IYWx4F4NhrXtYxbyW1mA+NT01jg7xL0/6BmkVwdWIM +q21JlcT1glgaWzBECLlAbUEGXeNHBcvXl2cwcZQsdoySm1S5dr5/1W4f3mjk9PCnAux 9h9A== X-Received: by 10.69.18.234 with SMTP id gp10mr347226pbd.149.1412218272037; Wed, 01 Oct 2014 19:51:12 -0700 (PDT) Received: from localhost (ppp118-209-184-104.lns20.mel8.internode.on.net. [118.209.184.104]) by mx.google.com with ESMTPSA id dc8sm2126524pdb.77.2014.10.01.19.51.09 for <17125@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 01 Oct 2014 19:51:10 -0700 (PDT) From: Alexis Date: Thu, 02 Oct 2014 12:46:34 +1000 Message-ID: <87tx3n2nhi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Context: Debian Wheezy x86_64. Daemon shutdown occurs regardless of whether one uses C-x 5 0 or C-x C-c to close the frame. Alexis. From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 07:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alexis Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.141223360516240 (code B ref 17125); Thu, 02 Oct 2014 07:07:02 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Oct 2014 07:06:45 +0000 Received: from localhost ([127.0.0.1]:57983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZaTM-0004Dr-FW for submit@debbugs.gnu.org; Thu, 02 Oct 2014 03:06:44 -0400 Received: from forward6l.mail.yandex.net ([84.201.143.139]:44118) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZaTJ-0004Dg-6e for 17125@debbugs.gnu.org; Thu, 02 Oct 2014 03:06:42 -0400 Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward6l.mail.yandex.net (Yandex) with ESMTP id B29CA14E120B; Thu, 2 Oct 2014 11:06:33 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 2788D17058C2; Thu, 2 Oct 2014 11:06:33 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kRTPe0Sl9X-6WZ0wMkZ; Thu, 2 Oct 2014 11:06:32 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: dbcb3e6f-ce2a-4d0e-a52d-3379ec4a337b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1412233592; bh=cTEojyRVVqDnl5hJDFg8UrH5P6dRPD1Tol+ktIhMzSE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KEc7hViIf/RoX6BxMySjXNQCNfzY9uLMEReWmPCjph+/otaAvmdIvqYW93iQsSh6h nOqoDVOgHEUGfMjfI+ZbM1rn65LswfPb4JVBEZPUyHqGcP9gNZ6ZEH8IzXvNeIzS5t MrGfy1oNqF/c1LZs6woY7wS5lhJu+YZNq7SXbrJQ= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <542CF978.4080500@yandex.ru> Date: Thu, 02 Oct 2014 11:06:32 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 References: <87tx3n2nhi.fsf@gmail.com> In-Reply-To: <87tx3n2nhi.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 10/02/2014 06:46 AM, Alexis wrote: > Daemon shutdown occurs regardless of whether one uses C-x 5 0 or C-x C-c > to close the frame. Usually this means that the server process is crashed. Can you obtain the backtrace? Recommended procedure is: 1) Compile with --with-x-toolkit=lucid --enable-checking 2) ./src/emacs -Q --daemon 3) gdb -p [pid of daemon process] 4) In gdb, install breakpoints to 'die' and 'exit', then 'c'(ontinue) 5) ./lib-src/emacsclient -nc 6) In client frame, C-x 5 0 7) See gdb output from 3). Dmitry From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Cc: Dmitry Antipov Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.14122458734070 (code B ref 17125); Thu, 02 Oct 2014 10:32:01 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Oct 2014 10:31:13 +0000 Received: from localhost ([127.0.0.1]:58080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZdfE-00013Z-RA for submit@debbugs.gnu.org; Thu, 02 Oct 2014 06:31:13 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:61081) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZdfC-00013Q-1R for 17125@debbugs.gnu.org; Thu, 02 Oct 2014 06:31:10 -0400 Received: by mail-pa0-f52.google.com with SMTP id fb1so2136030pad.39 for <17125@debbugs.gnu.org>; Thu, 02 Oct 2014 03:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=Pf4cHjmOPFoBGbgAvFUaHAOamFZtC7rnff1mnWcY8Io=; b=hWHHqHObY6i1FlQzP5IlV/hvhF9CLf9TjGKEfc9CBGqOlCQYDO1aSSUgU+mqv6BDgu DQj42MflaYylR92t3RwZs0vOH9584PS9yVlP+NB0i2YMLFp/iMakRY+Vw1mg8aok+h5G vwclJ3POg8BsS1lo1APsRO/J09k9MZ21B1RhJJXiHFARczjoYdlLmI//8g7iXuhFfYoO bxA+9ocYxTkWMXkaL3qbzo5Bv4PyHc+O8umAJwacz1flHelbPz7WUSN+bQQlYTELLzEn uuM3jkmD3Er77fAK9pebUmWhsC8GnxavsmQA6YXhwpLTHkgrKAMnMWtPb3aWaax+NMLC Nc3Q== X-Received: by 10.66.144.195 with SMTP id so3mr489884pab.156.1412245868893; Thu, 02 Oct 2014 03:31:08 -0700 (PDT) Received: from localhost (ppp118-209-184-104.lns20.mel8.internode.on.net. [118.209.184.104]) by mx.google.com with ESMTPSA id td4sm3120719pab.19.2014.10.02.03.31.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 Oct 2014 03:31:07 -0700 (PDT) References: <87tx3n2nhi.fsf@gmail.com> <542CF978.4080500@yandex.ru> From: Alexis Date: Thu, 02 Oct 2014 20:29:41 +1000 In-reply-to: <542CF978.4080500@yandex.ru> Message-ID: <87oatuix0a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Dmitry Antipov writes: > On 10/02/2014 06:46 AM, Alexis wrote: > >> Daemon shutdown occurs regardless of whether one uses C-x 5 0 or C-x C-c >> to close the frame. > > Usually this means that the server process is crashed. > Can you obtain the backtrace? Recommended procedure is: > > 1) Compile with --with-x-toolkit=lucid --enable-checking > 2) ./src/emacs -Q --daemon > 3) gdb -p [pid of daemon process] > 4) In gdb, install breakpoints to 'die' and 'exit', then 'c'(ontinue) > 5) ./lib-src/emacsclient -nc > 6) In client frame, C-x 5 0 > 7) See gdb output from 3). (gdb) break die Breakpoint 1 at 0x57ffb0: file alloc.c, line 6830. (gdb) break exit Breakpoint 2 at 0x7fa4fe101b60 (gdb) continue Continuing. [New Thread 0x7fa4f3fff700 (LWP 30109)] [New Thread 0x7fa4f37fe700 (LWP 30110)] Breakpoint 1, die (msg=msg@entry=0x664203 "VECTORP (elt)", file=file@entry=0x66b506 "font.c", line=line@entry=2602) at alloc.c:6830 6830 { (gdb) bt #0 die (msg=msg@entry=0x664203 "VECTORP (elt)", file=file@entry=0x66b506 "font.c", line=line@entry=2602) at alloc.c:6830 #1 0x00000000005b28b1 in font_clear_cache (cache=16514454, driver=driver@entry=0xc7ac80, f=) at font.c:2602 #2 0x00000000005b9332 in font_finish_cache (driver=0xc7ac80, f=0x129cc28) at font.c:2566 #3 font_update_drivers (f=f@entry=0x129cc28, new_drivers=13144946) at font.c:3475 #4 0x0000000000427e13 in delete_frame (frame=, force=13144946) at frame.c:1345 #5 0x00000000005a139b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x7fff814f3e90) at eval.c:2815 #6 0x000000000059cbdc in Fcall_interactively (function=13187842, record_flag=13144946, keys=13179645) at callint.c:836 #7 0x00000000005a1387 in Ffuncall (nargs=, args=) at eval.c:2819 #8 0x00000000005df63d in exec_byte_code (bytestr=2, vector=6731014, maxdepth=2602, args_template=4100, nargs=4, args=0xfbfd80, args@entry=0x7fff814f4168) at bytecode.c:916 #9 0x00000000005a0dc0 in funcall_lambda (fun=4, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fff814f4168) at eval.c:2979 #10 0x00000000005a111b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fff814f4160) at eval.c:2873 #11 0x00000000005a15aa in call1 (fn=, arg1=) at eval.c:2611 #12 0x000000000052bbeb in command_loop_1 () at keyboard.c:1559 #13 0x000000000059f085 in internal_condition_case (bfun=bfun@entry=0x52b770 , handlers=, hfun=hfun@entry=0x520750 ) at eval.c:1348 #14 0x000000000051db3e in command_loop_2 (ignore=ignore@entry=13144946) at keyboard.c:1177 #15 0x000000000059ef8b in internal_catch (tag=13192162, func=func@entry=0x51db20 , arg=13144946) at eval.c:1112 #16 0x0000000000520277 in command_loop () at keyboard.c:1156 #17 recursive_edit_1 () at keyboard.c:777 #18 0x00000000005205b5 in Frecursive_edit () at keyboard.c:848 #19 0x0000000000415e05 in main (argc=3, argv=) at emacs.c:1646 (gdb) Alexis. From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Oct 2014 11:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alexis Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.141224986315231 (code B ref 17125); Thu, 02 Oct 2014 11:38:02 +0000 Received: (at 17125) by debbugs.gnu.org; 2 Oct 2014 11:37:43 +0000 Received: from localhost ([127.0.0.1]:58089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZeha-0003xa-6o for submit@debbugs.gnu.org; Thu, 02 Oct 2014 07:37:42 -0400 Received: from forward8l.mail.yandex.net ([84.201.143.141]:59194) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZehW-0003xP-PH for 17125@debbugs.gnu.org; Thu, 02 Oct 2014 07:37:40 -0400 Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 4B2C51A4145E; Thu, 2 Oct 2014 15:37:37 +0400 (MSK) Received: from smtp1o.mail.yandex.net (localhost [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id AB459DE2DBB; Thu, 2 Oct 2014 15:37:36 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Aony2716yX-baUWbVHO; Thu, 2 Oct 2014 15:37:36 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: cb8833bc-f307-4f36-b15a-de2c21ea3fcb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1412249856; bh=GZ6vn9eDXygAfcCyFQh/ZGG2PWWVgmxc25jHpZAiiYY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=qEyIIHq0lljJv2HVdTBb1ooQp5LMbrs3DfZ6A99o+tiqC/yWztAYD/9WLM+l4tk6R ZYDGlw8IVfTUW8syWVb+VPvmmGEFnZD+Rghab4kcxp2ZyT7wgtBq10sw0L1Xo4kLJS KglXkCD7okY98wqnuQfFX3Fs2e7FSVwtpRlUiLb0= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <542D38FF.1090000@yandex.ru> Date: Thu, 02 Oct 2014 15:37:35 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 References: <87tx3n2nhi.fsf@gmail.com> <542CF978.4080500@yandex.ru> <87oatuix0a.fsf@gmail.com> In-Reply-To: <87oatuix0a.fsf@gmail.com> Content-Type: multipart/mixed; boundary="------------040001080500070502070405" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) This is a multi-part message in MIME format. --------------040001080500070502070405 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 10/02/2014 02:29 PM, Alexis wrote: > Breakpoint 1, die (msg=msg@entry=0x664203 "VECTORP (elt)", file=file@entry=0x66b506 "font.c", line=line@entry=2602) at alloc.c:6830 > 6830 { > (gdb) bt > #0 die (msg=msg@entry=0x664203 "VECTORP (elt)", file=file@entry=0x66b506 "font.c", line=line@entry=2602) at alloc.c:6830 > #1 0x00000000005b28b1 in font_clear_cache (cache=16514454, driver=driver@entry=0xc7ac80, f=) > at font.c:2602 > #2 0x00000000005b9332 in font_finish_cache (driver=0xc7ac80, f=0x129cc28) at font.c:2566 This is an old issue hopefully fixed in trunk (and not in emacs-24 due to an annoying oversight). Please try this. Dmitry --------------040001080500070502070405 Content-Type: text/x-diff; name="bug17125_fixed_4.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug17125_fixed_4.patch" === modified file 'src/font.c' --- src/font.c 2014-09-16 04:07:51 +0000 +++ src/font.c 2014-10-02 11:09:25 +0000 @@ -2756,22 +2756,21 @@ val = XCDR (val); else { - Lisp_Object copy; - val = driver_list->driver->list (f, scratch_font_spec); - if (NILP (val)) - val = zero_vector; - else - val = Fvconcat (1, &val); - copy = copy_font_spec (scratch_font_spec); - ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); + if (!NILP (val)) + { + Lisp_Object copy = copy_font_spec (scratch_font_spec); + + val = Fvconcat (1, &val); + ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); + XSETCDR (cache, Fcons (Fcons (copy, val), XCDR (cache))); + } } - if (ASIZE (val) > 0 + if (VECTORP (val) && ASIZE (val) > 0 && (need_filtering || ! NILP (Vface_ignored_fonts))) val = font_delete_unmatched (val, need_filtering ? spec : Qnil, size); - if (ASIZE (val) > 0) + if (VECTORP (val) && ASIZE (val) > 0) list = Fcons (val, list); } @@ -2807,18 +2806,22 @@ && (NILP (ftype) || EQ (driver_list->driver->type, ftype))) { Lisp_Object cache = font_get_cache (f, driver_list->driver); - Lisp_Object copy; ASET (work, FONT_TYPE_INDEX, driver_list->driver->type); entity = assoc_no_quit (work, XCDR (cache)); if (CONSP (entity)) - entity = XCDR (entity); + entity = AREF (XCDR (entity), 0); else { entity = driver_list->driver->match (f, work); - copy = copy_font_spec (work); - ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); - XSETCDR (cache, Fcons (Fcons (copy, entity), XCDR (cache))); + if (!NILP (entity)) + { + Lisp_Object copy = copy_font_spec (work); + Lisp_Object match = Fvector (1, &entity); + + ASET (copy, FONT_TYPE_INDEX, driver_list->driver->type); + XSETCDR (cache, Fcons (Fcons (copy, match), XCDR (cache))); + } } if (! NILP (entity)) break; --------------040001080500070502070405-- From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 01:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Cc: Dmitry Antipov Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.141229830821419 (code B ref 17125); Fri, 03 Oct 2014 01:06:02 +0000 Received: (at 17125) by debbugs.gnu.org; 3 Oct 2014 01:05:08 +0000 Received: from localhost ([127.0.0.1]:59597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZrIx-0005ZN-7P for submit@debbugs.gnu.org; Thu, 02 Oct 2014 21:05:08 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:34858) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZrIu-0005ZE-Jt for 17125@debbugs.gnu.org; Thu, 02 Oct 2014 21:05:05 -0400 Received: by mail-pa0-f50.google.com with SMTP id kx10so467557pab.9 for <17125@debbugs.gnu.org>; Thu, 02 Oct 2014 18:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=MAzUlW4QYpXilv/xkaV0Xt33TzBkindKSp5rqvaBwk8=; b=gVYsP4hV+WUaj60PcO7aPDp3/pylj2YXujaoa7U7vciesH5WFV629x0pdSCcDS9aEv jwSxgdn7oT2v/tI6Yk+zm94jmOVExbUgHDXDMAK6rLqZ8ry1EFUJQw1q3QMNSgiR3YOh 2nM5HIA5X0T57eeRto2dQOt6I+75CNBOD59wfPs6KvZgmN98fEhtmLLs7M3+XvIj+IXB 4+fjCG+Xe2uUz9/0Tf5NZBhQjMgb7CRwTPOrsKVXdXt/LdMlBh4QYA0jJR/+Uc909Lef TU6aTwA28uFhyCKRW+5L1+WUmsqh5Tsm3KAtiUwsKC0TTjVe6t3oie+dPixnNHoHEhbZ Bwmw== X-Received: by 10.66.159.8 with SMTP id wy8mr3398970pab.17.1412298303405; Thu, 02 Oct 2014 18:05:03 -0700 (PDT) Received: from localhost (ppp118-209-184-104.lns20.mel8.internode.on.net. [118.209.184.104]) by mx.google.com with ESMTPSA id gr5sm5124496pbc.33.2014.10.02.18.05.01 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 Oct 2014 18:05:02 -0700 (PDT) References: <87tx3n2nhi.fsf@gmail.com> <542CF978.4080500@yandex.ru> <87oatuix0a.fsf@gmail.com> <542D38FF.1090000@yandex.ru> From: Alexis Date: Fri, 03 Oct 2014 10:53:24 +1000 In-reply-to: <542D38FF.1090000@yandex.ru> Message-ID: <8761g2dkuf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Dmitry Antipov writes: > This is an old issue hopefully fixed in trunk (and not in emacs-24 due > to an annoying oversight). Ah okay, fair enough! Yes, i actually tried your patches upthread; when the latest pretest came out, i wanted to confirm that they'd been applied in the emacs-24 branch .... i just built trunk as of Git commit 14bc99e6, and C-x 5 0 no longer causes the daemon to shut down. :-) i take it that the fix will indeed be made available in the next release of what is to become 24.4? From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 03:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alexis Cc: 17125@debbugs.gnu.org Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.14123083709593 (code B ref 17125); Fri, 03 Oct 2014 03:53:01 +0000 Received: (at 17125) by debbugs.gnu.org; 3 Oct 2014 03:52:50 +0000 Received: from localhost ([127.0.0.1]:59635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZtvF-0002Ue-UJ for submit@debbugs.gnu.org; Thu, 02 Oct 2014 23:52:50 -0400 Received: from forward2l.mail.yandex.net ([84.201.143.145]:53041) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZtvE-0002UW-2r for 17125@debbugs.gnu.org; Thu, 02 Oct 2014 23:52:49 -0400 Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward2l.mail.yandex.net (Yandex) with ESMTP id 7BC511AC0D60; Fri, 3 Oct 2014 07:52:45 +0400 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id E0B451B445A1; Fri, 3 Oct 2014 07:52:44 +0400 (MSK) Received: from unknown (unknown [37.139.80.10]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vOhnwI0cUZ-qi00vYPh; Fri, 3 Oct 2014 07:52:44 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: b8d0616f-23dc-4b3c-afe2-f5d747d3d308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1412308364; bh=K0mZ740EqdFj5QlTbMk9VSO62k9vX4H/jQK8ktSL7fA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=YGozrBJ/b6J3wm5rRFwSzxTEyRgbSJDhHarnbQ0zE2WvAE/HC3ilfgD34uUYPyVHi P9o6qjK9jHmeBA4FmVGozuXl+NU4JpDxECL/6oJ4IQKAefpZ4WXbUlhsGrB5IDdBRA D2DGFGvbwWX6UQt1jbQkZPlXCHEbcR86clKBuSqc= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <542E1D8C.30704@yandex.ru> Date: Fri, 03 Oct 2014 07:52:44 +0400 From: Dmitry Antipov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 References: <87tx3n2nhi.fsf@gmail.com> <542CF978.4080500@yandex.ru> <87oatuix0a.fsf@gmail.com> <542D38FF.1090000@yandex.ru> <8761g2dkuf.fsf@gmail.com> In-Reply-To: <8761g2dkuf.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On 10/03/2014 04:53 AM, Alexis wrote: > i take it that the fix will indeed be made available in the next release > of what is to become 24.4? Now installed in emacs-24, so it should be. Dmitry From unknown Mon Jun 23 04:15:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17125: Issue still present in pretest 24.3.94.1: in daemon mode, closing X client frame exits entire Emacs References: In-Reply-To: Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 06:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17125 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17125@debbugs.gnu.org Cc: Dmitry Antipov Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.141231874426502 (code B ref 17125); Fri, 03 Oct 2014 06:46:02 +0000 Received: (at 17125) by debbugs.gnu.org; 3 Oct 2014 06:45:44 +0000 Received: from localhost ([127.0.0.1]:59703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZwca-0006tN-3Z for submit@debbugs.gnu.org; Fri, 03 Oct 2014 02:45:44 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:45253) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZwcU-0006t7-Kf for 17125@debbugs.gnu.org; Fri, 03 Oct 2014 02:45:39 -0400 Received: by mail-pa0-f44.google.com with SMTP id et14so1060343pad.17 for <17125@debbugs.gnu.org>; Thu, 02 Oct 2014 23:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type; bh=qiwu/B157P7tYW180wgxP/TrxP7Os9Zg4i1AnfNg144=; b=YK0jgHc6BefIgV0dbJ0XF4HNQKB5YDyfzS8mSeg536CcSE/9UqJjooTVYHIcQelo3A F8TTAQ7KZg4a462z1iyCrM+T4fEd9EqpUiUp9XXXvlAEZ9OjqZeW7GS7T/AN7oIv/jCL aJ+/Ie4e3/Tqbygo8CAI9Rjxe58+W1VDz+aEIcXwor99DzZgF67lzehe6ybsG3ifx4aX zOpZruGGAIlE3/7isHl7udbuwfRvacfwbepUMx71x8Xm8AQSOe2rV0UE49q6YSZMahDn LgaKHco2yT2xIUFO7WRd//1Bsk37fsuX93030YIvXgpEkn8T8W93mj4FVflJ+S6NFZ8G FJNQ== X-Received: by 10.66.192.232 with SMTP id hj8mr5032739pac.117.1412318737297; Thu, 02 Oct 2014 23:45:37 -0700 (PDT) Received: from localhost (ppp118-209-184-104.lns20.mel8.internode.on.net. [118.209.184.104]) by mx.google.com with ESMTPSA id f2sm3499482pdd.25.2014.10.02.23.45.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 Oct 2014 23:45:36 -0700 (PDT) From: Alexis Date: Fri, 03 Oct 2014 16:39:33 +1000 Message-ID: <87k34h1wj9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Dmitry Antipov writes: > Now installed in emacs-24, so it should be. i just compiled the emacs-24 branch as at Git commit 9f8e964e, using: --with-x-toolkit=lucid and then: --with-x-toolkit=GTK3 In both instances, neither C-x 5 0 nor C-x C-c caused the daemon to shut down. :-) Thanks! Alexis. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 03 11:34:15 2014 Received: (at control) by debbugs.gnu.org; 3 Oct 2014 15:34:15 +0000 Received: from localhost ([127.0.0.1]:60468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa4s2-000104-Sz for submit@debbugs.gnu.org; Fri, 03 Oct 2014 11:34:15 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34278) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa4s0-0000zp-CO for control@debbugs.gnu.org; Fri, 03 Oct 2014 11:34:13 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xa4rz-0006j0-RT for control@debbugs.gnu.org; Fri, 03 Oct 2014 11:34:11 -0400 Date: Fri, 03 Oct 2014 11:34:11 -0400 Message-Id: Subject: control message for bug 17125 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 17125 24.4 From debbugs-submit-bounces@debbugs.gnu.org Sun May 05 00:22:12 2019 Received: (at control) by debbugs.gnu.org; 5 May 2019 04:22:12 +0000 Received: from localhost ([127.0.0.1]:52817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hN8fE-0000lr-0I for submit@debbugs.gnu.org; Sun, 05 May 2019 00:22:12 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:34100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hN8fC-0000lX-H3; Sun, 05 May 2019 00:22:10 -0400 Received: by mail-qt1-f174.google.com with SMTP id j6so11233153qtq.1; Sat, 04 May 2019 21:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=NkKOTZq3LJ4+1mSoNoVrELihYpbedhJ+vYuP9BfEXa4=; b=C2+zrDtEZV6IiwwDqF3gyXZsZ8C/CIigShdSfTUhy3ThTRwSyuDJ4gJvYEZBKHIzOq Rfvsnmh0rMDxLpxpzEiSn0/LrZPGtp3ZFco+L7xbbHL4Wk8b3eL8oYfzhJ7wHYXDAE0k pcgctlVC3hklh5T/EalIQEnwXNJgfWCp5cQQ7ieqRoxBM6LJnqoti5uNbiTA77F77Bi7 uFSZw0GRQdKu2rkLmY8mHAgPYackPrGjYnsclbqX5ohdwMe61TtOfR/CiS77CZHhfudr Nvd/HSIbkQ5FtN9DxtXfTmfp8ay/W3sY4pQAyyNDym9JgzUHwL5bFHDBY5ztApDze0RZ udLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NkKOTZq3LJ4+1mSoNoVrELihYpbedhJ+vYuP9BfEXa4=; b=PuRe2dTFgSilmChBLA0ceWyo8XEsHSeEwGmh0MKsMd4rGfSIT5VeXPiMSEOTmird4Z bA5WOVXpeIkFkJX0azBdRjHosE6CHrsSMSeuW7mSifmtk178vrPcNUlyH47i9dMrKuZY 1lQn0+xFMTVhEc8xwPvBEoSvvwGaLi8l8TLoEn4IoR/PaHH7xZmh8VZuXAfYMjRo0KDc YHuw82S4YB7i/PWRiXiHkMM10b4aZ3rMbjM/a9MbDxWGVa9dsM6CC5/C3IQo6BkgpElb PnFdNGPmBm6DMQxBIvMZVQ15xSes5JQFzohvxPaKsh5xQCrZRHu9gg7q+mGXvfRALExD ELsw== X-Gm-Message-State: APjAAAVxJA+Ic+h+1oUgQdZ/yscYgJU2V0SO+Yt1ItXOlU5udGv79Vo0 WxElkTxI/kSkSGLgj2y3CIQgRvub X-Google-Smtp-Source: APXvYqxp/+LW3JLf6QKUnCvhpGBl77VYXWDnQ5bjj5g9GfQJ+bLJwgaFHTOjHzCHK6gmHROCkbIdhA== X-Received: by 2002:a0c:a8ef:: with SMTP id h47mr13739364qvc.55.1557030124779; Sat, 04 May 2019 21:22:04 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id o55sm5639600qtj.14.2019.05.04.21.22.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 May 2019 21:22:04 -0700 (PDT) From: Noam Postavsky To: Alexis Subject: Re: bug#18041: 24.3; Exiting emacsclient kills emacs --daemon References: <53C772E2.1060406@gmail.com> <87fvhza1po.fsf@gmail.com> Date: Sun, 05 May 2019 00:22:03 -0400 In-Reply-To: <87fvhza1po.fsf@gmail.com> (Alexis's message of "Fri, 18 Jul 2014 11:32:21 +1000") Message-ID: <87h8a9msyc.fsf@gmail.com> 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: 18041@debbugs.gnu.org, 17125@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 17125 forcemerge 17125 18041 quit Alexis writes: > Perhaps related to bug #17125? > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17125 Sounds like the same one. Since OP never followed up, I'll assume it's the case.