From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#581: marked as done (23.0.60; OSX: server crashes when quitting emacsclient) Date: Thu, 21 Aug 2008 12:50:03 -0700 Message-ID: References: <87k5eataqu.fsf@cyd.mit.edu> <20080720205134.BCB7A9D6432@mt-computer.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1219348203-25210-0" X-Trace: ger.gmane.org 1219349270 18782 80.91.229.12 (21 Aug 2008 20:07:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 20:07:50 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 22:08:43 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWGSR-0007mY-9k for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 22:08:35 +0200 Original-Received: from localhost ([127.0.0.1]:43068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWGRT-0003IQ-FF for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 16:07:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWGRP-0003Dp-8i for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 16:07:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWGRO-00039x-0N for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 16:07:30 -0400 Original-Received: from [199.232.76.173] (port=45754 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWGRN-00039T-QT for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 16:07:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58611) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWGRN-0005TX-1o for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 16:07:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7LK7R3d031881; Thu, 21 Aug 2008 13:07:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7LJo3hb025274; Thu, 21 Aug 2008 12:50:03 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 581 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19614 Archived-At: This is a multi-part message in MIME format... ------------=_1219348203-25210-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 21 Aug 2008 15:43:21 -0400 with message-id <87k5eataqu.fsf@cyd.mit.edu> and subject line Re: [PATCH] XCloseDisplay already calls XrmDestroyDatabase has caused the Emacs bug report #581, regarding 23.0.60; OSX: server crashes when quitting emacsclient to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 581: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D581 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1219348203-25210-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.5 required=4.0 tests=AWL,BAYES_00,FOURLA, FVGT_m_MULTI_ODD,IMPRONONCABLE_1,IMPRONONCABLE_2,MONEY,MURPHY_WRONG_WORD2, PHONENUMBER,RCVD_IN_DNSWL_MED,STOCKLIKE autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Jul 2008 20:51:53 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6KKpmNs015033 for ; Sun, 20 Jul 2008 13:51:49 -0700 Received: from mail.gnu.org ([199.232.76.166]:57623 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KKfs3-0003Sb-8U for emacs-pretest-bug@gnu.org; Sun, 20 Jul 2008 16:51:07 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KKfsZ-0001PQ-60 for emacs-pretest-bug@gnu.org; Sun, 20 Jul 2008 16:51:47 -0400 Received: from mail.gmx.net ([213.165.64.20]:45067) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KKfsY-0001Ou-G1 for emacs-pretest-bug@gnu.org; Sun, 20 Jul 2008 16:51:39 -0400 Received: (qmail invoked by alias); 20 Jul 2008 20:51:36 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp067) with SMTP; 20 Jul 2008 22:51:36 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX198BeRnF698VWbv/daV/XpMy8yHVwJMfqkYSR26UA X8s9n5GmjB29xT Received: by mt-computer.local (Postfix, from userid 502) id BCB7A9D6432; Sun, 20 Jul 2008 22:51:34 +0200 (CEST) From: Markus Triska To: emacs-pretest-bug@gnu.org Subject: 23.0.60; OSX: server crashes when quitting emacsclient Message-Id: <20080720205134.BCB7A9D6432@mt-computer.local> Date: Sun, 20 Jul 2008 22:51:34 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. When I do: $ emacs -Q -nw -f server-start and in another terminal: $ emacsclient -c and then quit the client with C-x C-c, the server crashes with the following backtrace. When I omit "-nw" for the server, it works. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0fd07d39 0x018167ad in DestroyNTable () (gdb) bt #0 0x018167ad in DestroyNTable () #1 0x01816873 in XrmDestroyDatabase () #2 0x00095fb0 in x_delete_display (dpyinfo=0x214c040) at xterm.c:10523 #3 0x00096107 in x_delete_terminal (terminal=0x214c1f0) at xterm.c:10654 #4 0x00080081 in Fdelete_terminal (terminal=34914804, force=58721337) at terminal.c:336 #5 0x00011ee8 in Fdelete_frame (frame=34971156, force=58721337) at frame.c:1529 #6 0x0014544c in Ffuncall (nargs=2, args=0xbfffee80) at eval.c:3052 #7 0x0017e99b in Fbyte_code (bytestr=77604907, vector=34753444, maxdepth=6) at bytecode.c:678 #8 0x00144d2f in funcall_lambda (fun=34753700, nargs=1, arg_vector=0xbffff014) at eval.c:3229 #9 0x00145212 in Ffuncall (nargs=2, args=0xbffff010) at eval.c:3099 #10 0x0017e99b in Fbyte_code (bytestr=66970363, vector=34764708, maxdepth=3) at bytecode.c:678 #11 0x00144d2f in funcall_lambda (fun=34764852, nargs=2, arg_vector=0xbffff194) at eval.c:3229 #12 0x00145212 in Ffuncall (nargs=3, args=0xbffff190) at eval.c:3099 #13 0x0017e99b in Fbyte_code (bytestr=2019283, vector=2019300, maxdepth=4) at bytecode.c:678 #14 0x00144d2f in funcall_lambda (fun=2019236, nargs=1, arg_vector=0xbffff364) at eval.c:3229 #15 0x00145212 in Ffuncall (nargs=2, args=0xbffff360) at eval.c:3099 #16 0x001418f2 in Fcall_interactively (function=67043129, record_flag=58721289, keys=51388540) at callint.c:857 #17 0x00145425 in Ffuncall (nargs=4, args=0xbffff560) at eval.c:3048 #18 0x001455c1 in call3 (fn=58833441, arg1=67043129, arg2=58721289, arg3=58721289) at eval.c:2872 #19 0x000e446d in command_loop_1 () at keyboard.c:1912 #20 0x001435a4 in internal_condition_case (bfun=0xe400e , handlers=58760953, hfun=0xdce69 ) at eval.c:1511 #21 0x000d6050 in command_loop_2 () at keyboard.c:1369 #22 0x001431f6 in internal_catch (tag=58757025, func=0xd600c , arg=58721289) at eval.c:1247 #23 0x000d5df2 in command_loop () at keyboard.c:1348 #24 0x000d5eab in recursive_edit_1 () at keyboard.c:957 #25 0x000d5ff3 in Frecursive_edit () at keyboard.c:1019 #26 0x000d5031 in main (argc=5, argv=0xbffff9d8) at emacs.c:1796 Lisp Backtrace: "delete-frame" (0xbfffee84) "server-delete-client" (0xbffff014) "server-save-buffers-kill-terminal" (0xbffff194) "save-buffers-kill-terminal" (0xbffff364) "call-interactively" (0xbffff564) (gdb) bt full #0 0x01816746 in DestroyLTable () No symbol table info available. #1 0x0181686c in XrmDestroyDatabase () No symbol table info available. #2 0x00095fb0 in x_delete_display (dpyinfo=0x21447c0) at xterm.c:10523 t = (struct terminal *) 0x329d50 dpyinfo = (struct x_display_info *) 0x21447c0 #3 0x00096107 in x_delete_terminal (terminal=0x2144970) at xterm.c:10654 dpyinfo = (struct x_display_info *) 0x21447c0 terminal = (struct terminal *) 0x83 #4 0x00080081 in Fdelete_terminal (terminal=34883956, force=58721337) at terminal.c:336 t = (struct terminal *) 0x2144970 terminal = 34883956 #5 0x00011ee8 in Fdelete_frame (frame=34944756, force=58721337) at frame.c:1529 tmp = -1099628544 f = (struct frame *) 0x21536f0 sf = (struct frame *) 0x3800439 kb = (struct kboard *) 0x100 #6 0x0014544c in Ffuncall (nargs=2, args=0xbfffe5c0) at eval.c:3052 fun = -1073748672 original_fun = 1803152 funcar = -1099628544 numargs = 1 val = 3306160 backtrace = { next = 0xbfffe70c, function = 0xbfffe5c0, args = 0xbfffe5c4, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0xbfffe540 i = -1099628544 args = (Lisp_Object *) 0x1b8390 #7 0x0017e99b in Fbyte_code (bytestr=77637499, vector=34678884, maxdepth=6) at bytecode.c:678 op = 131 vectorp = (Lisp_Object *) 0x2112868 stack = { pc = 0x58f3344 "\210\016$A\211\026$\204o", top = 0xbfffe5c4, bottom = 0xbfffe5c0, byte_string = 77637499, byte_string_start = 0x58f32b4 "\306\307\b\205\a", constants = 34678884, next = 0xbfffe7c4 } result = 3306160 bytestr = -1099628544 #8 0x00144d2f in funcall_lambda (fun=34627908, nargs=1, arg_vector=0xbfffe754) at eval.c:3229 val = 131 syms_left = 34627904 next = 34627904 i = 1 optional = 1 rest = 0 #9 0x00145212 in Ffuncall (nargs=2, args=0xbfffe750) at eval.c:3099 fun = 34627908 original_fun = 93438921 funcar = -1099628544 numargs = 1 val = 3306160 backtrace = { next = 0xbfffe88c, function = 0xbfffe750, args = 0xbfffe754, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x2106144 i = -1099628544 args = (Lisp_Object *) 0x591c3c9 #10 0x0017e99b in Fbyte_code (bytestr=75536379, vector=34704900, maxdepth=3) at bytecode.c:678 op = 131 vectorp = (Lisp_Object *) 0x2118e08 stack = { pc = 0x5906043 ")\207", top = 0xbfffe754, bottom = 0xbfffe750, byte_string = 75536379, byte_string_start = 0x5906028 "\303\b!\205\034", constants = 34704900, next = 0xbfffe944 } result = 3306160 bytestr = -1099628544 #11 0x00144d2f in funcall_lambda (fun=34705044, nargs=2, arg_vector=0xbfffe8d4) at eval.c:3229 val = 131 syms_left = 34705040 next = 34705040 i = 2 optional = 1 rest = 0 #12 0x00145212 in Ffuncall (nargs=3, args=0xbfffe8d0) at eval.c:3099 fun = 34705044 original_fun = 67043153 funcar = -1099628544 numargs = 2 val = 3306160 backtrace = { next = 0xbfffea0c, function = 0xbfffe8d0, args = 0xbfffe8d4, nargs = 2, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x2118e94 i = -1099628544 args = (Lisp_Object *) 0x3feff51 #13 0x0017e99b in Fbyte_code (bytestr=2019283, vector=2019300, maxdepth=4) at bytecode.c:678 op = 131 vectorp = (Lisp_Object *) 0x1ecfe8 stack = { pc = 0x2cc418 "*\207", top = 0xbfffe8d8, bottom = 0xbfffe8d0, byte_string = 2019283, byte_string_start = 0x2cc402 "\303\304 \305\"\304 \030\211\031\204\022", constants = 2019300, next = 0x0 } result = 3306160 bytestr = -1099628544 #14 0x00144d2f in funcall_lambda (fun=2019236, nargs=1, arg_vector=0xbfffeaa4) at eval.c:3229 val = 131 syms_left = 2019232 next = 2019232 i = 1 optional = 1 rest = 0 #15 0x00145212 in Ffuncall (nargs=2, args=0xbfffeaa0) at eval.c:3099 fun = 2019236 original_fun = 67043129 funcar = -1099628544 numargs = 1 val = 3306160 backtrace = { next = 0xbfffec4c, function = 0xbfffeaa0, args = 0xbfffeaa4, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x1ecfa4 i = -1099628544 args = (Lisp_Object *) 0x3feff39 #16 0x001418f2 in Fcall_interactively (function=67043129, record_flag=58721289, keys=51388540) at callint.c:857 val = 131 specs = 58750537 filter_specs = 2019339 teml = 77516529 up_event = 58721289 enable = 58721289 next_event = 2 prefix_arg = 58721289 string = (unsigned char *) 0x2
tem = (unsigned char *) 0xbe750000
i = 3306160 j = 1 foo = 2 prompt1 = '\0' arg_from_tty = 0 key_count = 2 record_then_fail = 0 save_this_command = 67043129 save_last_command = 77516529 save_this_original_command = 67043129 save_real_this_command = 67043129 #17 0x00145425 in Ffuncall (nargs=4, args=0xbfffeca0) at eval.c:3048 fun = -1073746780 original_fun = 58833441 funcar = -1099628544 numargs = 3 val = 3306160 backtrace = { next = 0x0, function = 0xbfffeca0, args = 0xbfffeca4, nargs = 3, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0xbfffeca4 i = -1099628544 args = (Lisp_Object *) 0x381ba21 #18 0x001455c1 in call3 (fn=58833441, arg1=67043129, arg2=58721289, arg3=58721289) at eval.c:2872 ret_ungc_val = 131 #19 0x000e446d in command_loop_1 () at keyboard.c:1912 cmd = 2 lose = 2 nonundocount = 0 keybuf = {192, 24, -1073746360, 2922218, 0, -1073746832, 2050659, 3298672, 58721289, 51396124, 0, 0, 0, 1330293, 2050600, 2050604, -1073746568, 1330494, 16, 58721289, 7, 0, 1, 0, -1073746596, -1073746784, 0, 0, 58721289, 67054001} i = 2 prev_modiff = 15 prev_buffer = (struct buffer *) 0x3101678 already_adjusted = 0 #20 0x001435a4 in internal_condition_case (bfun=0xe400e , handlers=58760953, hfun=0xdce69 ) at eval.c:1511 val = -1099628544 c = { tag = 58721289, val = 58721289, next = 0xbfffee9c, gcpro = 0x0, jmp = {2032511, 1325783, 8096, 1324211, 58721289, 58721289, 3311984, 3298672, -1073746376, -1073746560, 31, 658, 1324360, 1507351, 3276831, 3276831, -1073807360, -1073807305}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } h = { handler = 58760953, var = 58721289, chosen_clause = 0, tag = 0xbfffed98, next = 0x0 } #21 0x000d6050 in command_loop_2 () at keyboard.c:1369 val = 131 #22 0x001431f6 in internal_catch (tag=58757025, func=0xd600c , arg=58721289) at eval.c:1247 c = { tag = 58757025, val = 58721289, next = 0x0, gcpro = 0x0, jmp = {895, 0, 8096, 1323354, 5, 0, 3320944, 3298672, -1073746152, -1073746304, 58851359, 658, 1323497, 58851351, 58851359, 58720287, 51380224, 55}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } tag = 131 #23 0x000d5df2 in command_loop () at keyboard.c:1348 val = 131 #24 0x000d5eab in recursive_edit_1 () at keyboard.c:957 val = 0 #25 0x000d5ff3 in Frecursive_edit () at keyboard.c:1019 buffer = 58721289 #26 0x000d5031 in main (argc=5, argv=0xbffff11c) at emacs.c:1796 dummy = -1881117246 stack_bottom_variable = 0 '\0' do_initial_setlocale = 1 skip_args = 1 rlim = { rlim_cur = 8388608, rlim_max = 67108864 } no_loadup = 0 junk = 0x0 Lisp Backtrace: "delete-frame" (0xbfffe5c4) "server-delete-client" (0xbfffe754) "server-save-buffers-kill-terminal" (0xbfffe8d4) "save-buffers-kill-terminal" (0xbfffeaa4) "call-interactively" (0xbfffeca4) In GNU Emacs 23.0.60.13 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-07-20 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t ------------=_1219348203-25210-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 581-done) by emacsbugs.donarmstrong.com; 21 Aug 2008 19:42:06 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7LJg3dA023388 for <581-done@emacsbugs.donarmstrong.com>; Thu, 21 Aug 2008 12:42:04 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 87E0657E2B5; Thu, 21 Aug 2008 15:43:21 -0400 (EDT) To: =?utf-8?Q?=C4=B0smail_D=C3=B6nmez?= Cc: emacs-devel@gnu.org, 581-done@emacsbugs.donarmstrong.com Subject: Re: [PATCH] XCloseDisplay already calls XrmDestroyDatabase References: <19e566510808190319r454900a7sc3b5a4e9d6d68f95@mail.gmail.com> <19e566510808200117y21e78086la6240ad72b676cd7@mail.gmail.com> <19e566510808211140n56bec8e7l7ac7d6ae156e29eb@mail.gmail.com> From: Chong Yidong Date: Thu, 21 Aug 2008 15:43:21 -0400 In-Reply-To: <19e566510808211140n56bec8e7l7ac7d6ae156e29eb@mail.gmail.com> (=?utf-8?Q?=22=C4=B0smail_D=C3=B6nmez=22's?= message of "Thu\, 21 Aug 2008 21\:40\:34 +0300") Message-ID: <87k5eataqu.fsf@cyd.mit.edu> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "=C4=B0smail D=C3=B6nmez" writes: >>> So looks like there is no need to manually call XrmDestroyDatabase() >>> anymore, attached patch removes it. >> >> Actually correct solution is to disable XrmDestroyDatabase() call for >> GTK+ as done for Xt. See attached patch. > > Any comments on this? It fixes a frequent crash for me. I've checked in the patch. Thanks. ------------=_1219348203-25210-0--