From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: peder@klingenberg.no (Peder O. Klingenberg) Newsgroups: gmane.emacs.bugs Subject: bug#17125: Acknowledgement (24.4.50; daemon mode: closing X client frame exits entire emacs) Date: Tue, 01 Apr 2014 13:35:24 +0200 Organization: Persons in a Position to Know, inc. Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1396352193 14567 80.91.229.3 (1 Apr 2014 11:36:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2014 11:36:33 +0000 (UTC) To: 17125@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 13:36:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WUwzQ-0006Ry-GG for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 13:36:24 +0200 Original-Received: from localhost ([::1]:59695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUwzP-0006L3-Rv for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 07:36:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUwzE-0006Ks-Qr for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 07:36:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUwz4-0000xA-St for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 07:36:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUwz4-0000x6-Nw for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WUwz4-0001PK-Ch for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2014 07:36:02 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 17125-submit@debbugs.gnu.org id=B17125.13963521455380 (code B ref 17125); Tue, 01 Apr 2014 11:36:02 +0000 Original-Received: (at 17125) by debbugs.gnu.org; 1 Apr 2014 11:35:45 +0000 Original-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 Original-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 Original-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 Original-Received: from pok by luna with local (Exim 4.71) (envelope-from ) id 1WUwyS-0003RN-Bs; 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") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) X-MailScanner-ID: 1WUwyS-0008Ea-ER MailScanner-NULL-Check: 1396956924.71809@qs1ks0JY9Wy6dG7SkYe5gA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87588 Archived-At: 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.