From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Killing a frame sometimes kills emacs Date: Thu, 01 Sep 2011 12:09:30 +0200 Message-ID: <871uw04lr9.fsf@thinkpad.tsdh.de> References: <87d3flnxoo.fsf@thinkpad.tsdh.de> <83fwkhdld0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314871917 13408 80.91.229.12 (1 Sep 2011 10:11:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2011 10:11:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 12:11:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qz4FU-0007Hu-93 for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 12:11:52 +0200 Original-Received: from localhost ([::1]:32836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz4FJ-0006PQ-J5 for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 06:11:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz4FC-0005h1-6g for emacs-devel@gnu.org; Thu, 01 Sep 2011 06:11:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz4DL-0002WV-C7 for emacs-devel@gnu.org; Thu, 01 Sep 2011 06:09:40 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:53959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz4DJ-0002V3-7t; Thu, 01 Sep 2011 06:09:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 86F77D22FB; Thu, 1 Sep 2011 12:09:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zMVLUZkiPXyJ; Thu, 1 Sep 2011 12:09:34 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id DE42ED2302; Thu, 1 Sep 2011 12:09:31 +0200 (CEST) In-Reply-To: <83fwkhdld0.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Sep 2011 05:53:15 +0300") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.26.64.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143680 Archived-At: Eli Zaretskii writes: Hi Eli, >> From: Tassilo Horn >> Date: Wed, 31 Aug 2011 22:16:55 +0200 >> >> Do you have any suggestions on how to debug this issue? > > Run Emacs under a debugger, put a breakpoint on Fkill_emacs, and when > this happens again, tell use who called it by showing the backtrace. It turned out to be a crash, not something calling Fkill_emacs. Here's the backtrace: --8<---------------cut here---------------start------------->8--- Breakpoint 1 at 0x4f23dd: file emacs.c, line 1985. Starting program: /usr/bin/emacs-24 [Thread debugging using libthread_db enabled] [New Thread 0x7fffe6e80700 (LWP 31725)] [New Thread 0x7fffe667f700 (LWP 31726)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6 #0 0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6 No symbol table info available. #1 0x00007ffff759c93a in ?? () from /usr/lib64/libgdk-3.so.0 No symbol table info available. #2 0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0 No symbol table info available. #3 0x00007ffff7599f0e in ?? () from /usr/lib64/libgdk-3.so.0 No symbol table info available. #4 0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0 No symbol table info available. #5 0x00007ffff758c5d6 in ?? () from /usr/lib64/libgdk-3.so.0 No symbol table info available. #6 0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0 No symbol table info available. #7 0x00000000004e157c in xg_display_close (dpy=0x6ca0020) at gtkutil.c:182 gdpy = 0xd682e0 #8 0x00000000004afc49 in x_delete_terminal (terminal=) at xterm.c:10607 dpyinfo = 0x698d3e0 #9 0x00000000004a40f2 in Fdelete_terminal (terminal=107998581, force=) at terminal.c:345 t = 0x66fed70 #10 0x00000000004235cc in delete_frame (frame=99991829, force=) at frame.c:1379 tmp = terminal = f = 0x5f5c110 sf = 0x121b7e0 kb = 0x0 minibuffer_selected = 0 tooltip_frame = 0 #11 0x000000000042382a in Fdelete_frame (frame=, force=) at frame.c:1516 No locals. #12 0x000000000055d81f in Ffuncall (nargs=3, args=0x7fffffffc9f0) at eval.c:2993 fun = original_fun = funcar = numargs = lisp_numargs = val = backtrace = {next = 0x7fffffffcb70, function = 0x7fffffffc9f0, args = 0x7fffffffc9f8, nargs = 2, debug_on_exit = 0} internal_args = 0x7fffffffc9f8 i = #13 0x000000000058fafe in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=11782610, nargs=, args=) at bytecode.c:785 count = 5 op = vectorp = 0x932cd0 stack = {pc = 0xa52aa6 "\202I", byte_string = 9645217, byte_string_start = 0xa52a62 "\b\211\030:\203\r", constants = 9645253, next = 0x0} top = 0x7fffffffc9f0 result = #14 0x000000000055d53b in funcall_lambda (fun=9645157, nargs=1, arg_vector=0x7fffffffcc38) at eval.c:3221 val = syms_left = next = lexenv = 11782610 i = optional = rest = #15 0x000000000055d927 in Ffuncall (nargs=2, args=0x7fffffffcc30) at eval.c:3039 fun = original_fun = 12164530 funcar = numargs = lisp_numargs = val = backtrace = {next = 0x7fffffffce20, function = 0x7fffffffcc30, args = 0x7fffffffcc38, nargs = 1, debug_on_exit = 0} internal_args = i = #16 0x000000000055ae47 in Fcall_interactively (function=12164530, record_flag=11782610, keys=1) at callint.c:857 val = args = 0x7fffffffcc30 visargs = 0x7fffffffcc10 specs = filter_specs = teml = up_event = 11782610 enable = 113302176 next_event = prefix_arg = 11782610 string = tem = varies = 0x7fffffffcbf0 "" i = nargs = foo = prompt1 = '\000' tem1 = arg_from_tty = key_count = 1 record_then_fail = 0 save_this_command = 11782610 save_last_command = 12672082 save_this_original_command = 11782610 save_real_this_command = 11782610 #17 0x000000000055d837 in Ffuncall (nargs=4, args=0x7fffffffce90) at eval.c:2997 fun = original_fun = funcar = numargs = lisp_numargs = val = backtrace = {next = 0x0, function = 0x7fffffffce90, args = 0x7fffffffce98, nargs = 3, debug_on_exit = 0} internal_args = 0x7fffffffce98 i = #18 0x000000000055db17 in call3 (fn=, arg1=, arg2=, arg3=) at eval.c:2790 ret_ungc_val = 14066416 args = {11988402, 12164530, 11782610, 113302181} #19 0x00000000004f4349 in Fcommand_execute (cmd=12164530, record_flag=11782610, keys=113302181, special=) at keyboard.c:10271 final = tem = prefixarg = 11782610 #20 0x00000000004ff15f in read_char (commandflag=1, nmaps=6, maps=0x7fffffffd2a0, prev_event=11782610, used_mouse_menu=0x7fffffffd41c, end_time=0x0) at keyboard.c:2885 prev_buffer = 0x5b2eed0 c = 111001606 local_getcjmp = {{__jmpbuf = {28823509, 4398587453124662626, 11782610, 11782610, 111002422, 15938864, -4398585942129486494, 4398585288136217954}, __mask_was_saved = 0, __saved_mask = { __val = {18446744073709551615, 4294967297, 66, 0, 0, 0, 0, 0, 0, 0, 0, 95612629, 5932106, 0, 0, 95612624}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = { 0 }}}} key_already_recorded = 0 tem = 12164530 save = previous_echo_area_message = 11782610 also_record = 11782610 reread = 0 polling_stopped_here = 0 orig_kboard = 0xf33530 #21 0x0000000000500202 in read_key_sequence (keybuf=0x7fffffffd510, bufsize=30, prompt=11782610, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9280 interrupted_kboard = 0xf33530 interrupted_frame = 0x121b7e0 key = used_mouse_menu = 0 echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 local_first_binding = 0 from_string = 11782610 count = 2 t = 0 echo_start = 0 keys_start = 0 nmaps = nmaps_allocated = 6 defs = 0x7fffffffd260 submaps = 0x7fffffffd2a0 orig_local_map = 38705910 orig_keymap = 11782610 localized_local_map = 0 first_binding = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 17464630, map = 17464630, start = 0, end = 0} keytran = {parent = 11762086, map = 11762086, start = 0, end = 0} indec = {parent = 17464614, map = 17464614, start = 0, end = 0} shift_translated = 0 delayed_switch_frame = 11782610 original_uppercase = 0 original_uppercase_position = -1 dummyflag = 0 starting_buffer = 0x5b2eed0 fake_prefixed_keys = 11782610 #22 0x0000000000501e6a in command_loop_1 () at keyboard.c:1445 cmd = keybuf = {96, 76, 0, 11782610, 11782658, 11782610, 11834802, 66165345, 140737488344496, 5738643, 7237112172834486626, -155, 140737488344496, 5738306, 11782610, 92448534, 92448534, 11782610, 0, -1, 140737488344544, 5206430, 11782610, 11782610, 92448534, 5206735, 0, 12347184, 11782610, 0} i = prev_modiff = 3409 prev_buffer = 0x5b2eed0 #23 0x000000000055bddc in internal_condition_case ( bfun=0x501b7d , handlers=11834802, hfun=0x4f71bf ) at eval.c:1491 val = c = {tag = 11782610, val = 11782610, next = 0x7fffffffd7d0, gcpro = 0x0, jmp = {{__jmpbuf = {12347184, 4398587353752950114, 12347184, 11782610, 0, -1, -4398585942355978910, 4398585508186576226}, __mask_was_saved = 0, __saved_mask = { __val = {0, 0, 18446744073709551615, 0, 140737351956354, 1, 0, 0, 140737257920136, 0, 12347184, 12347216, 12347184, 11782610, 140737351980821, 0}}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0} h = {handler = 11834802, var = 11782610, chosen_clause = 11782658, tag = 0x7fffffffd690, next = 0x0} #24 0x00000000004f6951 in command_loop_2 (ignore=) at keyboard.c:1156 val = 14066416 #25 0x000000000055bcb5 in internal_catch (tag= Cannot access memory at address 0xffffffffffffffe0 ) at eval.c:1248 c = {tag = 11830594, val = 11782610, next = 0x0, gcpro = 0x0, jmp = {{ __jmpbuf = {12347184, 4398587353752950114, 12347184, 11782610, 0, -1, -4398585942406310558, 4398585508193260898}, __mask_was_saved = 0, __saved_mask = {__val = {11782610, 11810656, 0, 1, 5559583, 140737261559512, 0, 0, 12075264, 12075266, 11782610, 11782610, 0, 18446744073709551615, 5632154, 140737488345352}}}}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0} #26 0x00000000004f6ce7 in command_loop () at keyboard.c:1135 No locals. #27 recursive_edit_1 () at keyboard.c:756 val = 12347184 #28 0x00000000004f7017 in Frecursive_edit () at keyboard.c:820 buffer = 11782610 #29 0x00000000004f3cb5 in main (argc=, argv=0x7fffffffdd28) at emacs.c:1698 dummy = 140737353841976 stack_bottom_variable = 0 '\000' skip_args = 0 rlim = {rlim_cur = 8720000, rlim_max = 18446744073709551615} no_loadup = 0 junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x100000000
Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00007ffff2466737 in kill () from /lib64/libc.so.6 A debugging session is active. Inferior 1 [process 31722] will be killed. Quit anyway? (y or n) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo