From triska@gmx.at Sun Jul 20 13:51:53 2008 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 From markus.triska@gmx.at Fri Aug 8 05:08:59 2008 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=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 581) by emacsbugs.donarmstrong.com; 8 Aug 2008 12:08:59 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m78C8tlU007540 for <581@emacsbugs.donarmstrong.com>; Fri, 8 Aug 2008 05:08:56 -0700 Received: (qmail invoked by alias); 08 Aug 2008 12:08:49 -0000 Received: from pnsgw1-client079.demo.tuwien.ac.at (EHLO pnsgw1-client079.demo.tuwien.ac.at) [128.131.200.79] by mail.gmx.net (mp039) with SMTP; 08 Aug 2008 14:08:49 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX1+j3EFQJMCjONQmiqaMx4Ays1IXsymixMle5VTROq MgydQughcdqPSs Received: by mt-computer.local (Postfix, from userid 502) id E916EA18F44; Fri, 8 Aug 2008 14:08:45 +0200 (CEST) From: Markus Triska To: 581@debbugs.gnu.org Subject: Re: bug#581: Acknowledgement (23.0.60; OSX: server crashes when quitting emacsclient) References: <20080720205134.BCB7A9D6432@mt-computer.local> Date: Fri, 08 Aug 2008 14:08:45 +0200 In-Reply-To: (Emacs bug Tracking System's message of "Sun, 20 Jul 2008 14:00:03 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 I cannot reproduce the problem after commenting out XrmDestroyDatabase: diff --git a/src/xterm.c b/src/xterm.c index a32f4e1..884f5a8 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10516,7 +10516,7 @@ x_delete_display (dpyinfo) #ifndef USE_X_TOOLKIT /* I'm told Xt does this itself. */ #ifndef AIX /* On AIX, XCloseDisplay calls this. */ - XrmDestroyDatabase (dpyinfo->xrdb); + /* XrmDestroyDatabase (dpyinfo->xrdb); */ #endif #endif #ifdef HAVE_X_I18N From cyd@stupidchicken.com Thu Aug 21 12:42:06 2008 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@debbugs.gnu.org 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. From unknown Sat Aug 16 21:12:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 19 Sep 2008 14:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator