From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#28700: 25.2; Cannot kill Eshell buffer Date: Sun, 15 Oct 2017 15:09:12 -0400 Message-ID: <87o9p8p6sn.fsf@aol.com> References: <87fuazb5hb.fsf@aol.com> <87y3orceiq.fsf@users.sourceforge.net> <874lrfatm6.fsf@aol.com> <87zi979bxb.fsf@aol.com> <87tvzeahuz.fsf@aol.com> <87o9pmae0q.fsf@aol.com> <87efqia7fv.fsf@aol.com> <87vajucw4a.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1508094624 15154 195.159.176.226 (15 Oct 2017 19:10:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2017 19:10:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 28700@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 15 21:10:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3oIb-00024H-24 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Oct 2017 21:10:09 +0200 Original-Received: from localhost ([::1]:58143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3oIh-0000Hi-TH for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Oct 2017 15:10:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3oIX-0000GD-Hn for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 15:10:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3oIU-0004M4-AY for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 15:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3oIU-0004Lr-1H for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 15:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3oIT-0000KS-RS for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2017 15:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Oct 2017 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28700 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 28700-submit@debbugs.gnu.org id=B28700.15080945651209 (code B ref 28700); Sun, 15 Oct 2017 19:10:01 +0000 Original-Received: (at 28700) by debbugs.gnu.org; 15 Oct 2017 19:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:41934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3oHp-0000JN-Sm for submit@debbugs.gnu.org; Sun, 15 Oct 2017 15:09:25 -0400 Original-Received: from omr-a016e.mx.aol.com ([204.29.186.65]:32230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3oHo-0000JA-1G for 28700@debbugs.gnu.org; Sun, 15 Oct 2017 15:09:20 -0400 Original-Received: from mtaout-mbb01.mx.aol.com (mtaout-mbb01.mx.aol.com [172.26.254.109]) by omr-a016e.mx.aol.com (Outbound Mail Relay) with ESMTP id 9C54D3800096; Sun, 15 Oct 2017 15:09:14 -0400 (EDT) Original-Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mbb01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id E938E38000088; Sun, 15 Oct 2017 15:09:13 -0400 (EDT) In-Reply-To: <87vajucw4a.fsf@users.sourceforge.net> (Noam Postavsky's message of "Wed, 04 Oct 2017 19:48:53 -0400") x-aol-global-disposition: G X-AOL-VSS-INFO: 5800.7501/122078 X-AOL-VSS-CODE: clean DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1508094554; bh=X6uiE+IATeQx7NHqEkzR1HTEJhdg6yYJRs5T9T1IPzo=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=YemJzWAOhNmxNK5PUgqDt8U5Mrex54xGD3vCoMpbj5ykZEqojUr2WKc+tA8KqfSmz woKntoc0GRN42FAam35rTtsLAVFFOLFOF27yfa6MXnl91IOXcNkBDb7PZfqqA52clp fgkAPmeeUA8pQl/7kFaX9LITFHvxAL6bP5iez+HM= x-aol-sid: 3039ac1afe6d59e3b259402f X-AOL-IP: 73.16.70.190 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:138477 Archived-At: --=-=-= Content-Type: text/plain Noam Postavsky writes: > Live System User writes: > >> It's built by Fedora (RedHat). I have debugging info but I belive >> the emacs binary might be stripped, if that matters. > > Hmm, you will need gdb, emacs debug info and probably the emacs sources > as well. > > This link explains how to get the debug info: > https://fedoraproject.org/wiki/StackTraces#What_are_debuginfo_rpms.2C_and_how_do_I_get_them.3F > > I'm not sure how to get sources under Redhat based distros. > > Also get .gdbinit from > http://git.savannah.gnu.org/cgit/emacs.git/tree/src/.gdbinit?h=heads/emacs-25.3 > >> I dont know how to reproduce this with or without 'emacs -Q' but >> it has happened to me periodically so I decided to finally >> report it >> >> I'll leave the sessuon around as long as I can. > > After you have installed the debugging symbols and gdb, attach gdb to > the running Emacs by running > > gdb -p xxxx > > Where xxxx is Emacs' pid (a number). Find that out by running 'pgrep -a > emacs'. Then at the (gdb) prompt, type > > source .gdbinit > break text_read_only > continue > > Then try to kill the buffer. Hopefully the breakpoint will be hit and > emacs becomes frozen. At the (gdb) prompt, type > > bt Here is some GDB info. Thanks. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=text_read_only-bt-error.txt Content-Description: GDB BT info (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 4, text_read_only ( propval=propval@entry=XIL(0xb010)) at ../../src/textprop.c:71 71 if (STRINGP (propval)) (gdb) bt #0 text_read_only (propval=propval@entry=XIL(0xb010)) at ../../src/textprop.c:71 #1 0x00000000005bd8da in verify_interval_modification (buf=, start=start@entry=3209, end=end@entry=3209) at ../../src/textprop.c:2192 #2 0x0000000000519353 in prepare_to_modify_buffer_1 (start=start@entry=3209, end=end@entry=3209, preserve_ptr=preserve_ptr@entry=0x0) at ../../src/insdel.c:1837 #3 0x0000000000519791 in prepare_to_modify_buffer (start=3209, end=3209, preserve_ptr=preserve_ptr@entry=0x0) at ../../src/insdel.c:1878 #4 0x00000000005199b1 in insert_1_both ( string=string@entry=0x7ffd5642bca0 "\n\037\344\004", nchars=nchars@entry=1, nbytes=nbytes@entry=1, inherit=inherit@entry=false, prepare=prepare@entry=true, before_markers=before_markers@entry=false) at ../../src/insdel.c:801 #5 0x0000000000519ff1 in insert_1_both (before_markers=false, prepare=true, inherit=false, nbytes=1, nchars=1, string=0x7ffd5642bca0 "\n\037\344\004") at ../../src/insdel.c:585 #6 insert (string=0x7ffd5642bca0 "\n\037\344\004", nbytes=1) at ../../src/insdel.c:582 #7 0x00000000005582fc in general_insert_function ( insert_func=0x51a000 , insert_from_string_func=0x51a2f0 , inherit=inherit@entry=false, nargs=2, args=args@entry=0x7ffd5642bd40) ---Type to continue, or q to quit--- ../src/editfns.c:2492 #8 0x00000000005583cf in Finsert (nargs=, args=args@entry=0x7ffd5642bd40) at ../../src/editfns.c:2532 #9 0x000000000059fed4 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x45800b4) at ../../src/bytecode.c:1517 #10 0x0000000000566416 in funcall_lambda (fun=XIL(0x7ffd5642c090), nargs=nargs@entry=0, arg_vector=0x45800b4, arg_vector@entry=0x7ffd5642bf38) at ../../src/eval.c:2863 #11 0x00000000005666db in Ffuncall (nargs=1, args=0x7ffd5642bf30) at ../../src/eval.c:2760 #12 0x0000000000566939 in funcall_nil (nargs=, args=) at ../../src/eval.c:2338 #13 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642bf30, funcall=0x566930 ) at ../../src/eval.c:2515 #14 0x0000000000564c33 in run_hook_with_args (funcall=, args=, nargs=) at ../../src/eval.c:2361 #15 Frun_hook_with_args (args=0x7ffd5642bf30, nargs=1) at ../../src/eval.c:2380 #16 run_hook (hook=) at ../../src/eval.c:2528 #17 Frun_hooks (nargs=1, args=0x7ffd5642c020) at ../../src/eval.c:2362 #18 0x00000000005667e9 in Ffuncall (nargs=2, args=args@entry=0x7ffd5642c018) at ../../src/eval.c:2679 ---Type to continue, or q to quit--- #19 0x000000000059f173 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x343c164) at ../../src/bytecode.c:880 #20 0x0000000000566416 in funcall_lambda (fun=XIL(0x7ffd5642c6f0), nargs=nargs@entry=0, arg_vector=0x343c164, arg_vector@entry=0x7ffd5642c200) at ../../src/eval.c:2863 #21 0x00000000005666db in Ffuncall (nargs=1, args=0x7ffd5642c1f8) at ../../src/eval.c:2760 #22 0x0000000000566939 in funcall_nil (nargs=, args=) at ../../src/eval.c:2338 #23 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642c1f8, funcall=0x566930 ) at ../../src/eval.c:2515 #24 0x0000000000565259 in run_hook_with_args (funcall=, args=, nargs=) at ../../src/eval.c:2465 #25 Frun_hook_with_args (args=0x7ffd5642c1f8, nargs=1) at ../../src/eval.c:2380 #26 run_hook (hook=, hook@entry=XIL(0x7530)) at ../../src/eval.c:2528 #27 0x0000000000511aa1 in Fkill_buffer (buffer_or_name=) at ../../src/buffer.c:1680 #28 0x00000000005668e0 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7ffd5642c3f8) at ../../src/eval.c:2699 #29 0x00000000005622da in Ffuncall_interactively (nargs=2, args=0x7ffd5642c3f8) ---Type to continue, or q to quit--- at ../../src/callint.c:252 #30 0x00000000005667e9 in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7ffd5642c3f0) at ../../src/eval.c:2679 #31 0x0000000000562cb6 in Fcall_interactively (function=, record_flag=, keys=) at ../../src/callint.c:843 #32 0x00000000005668c6 in Ffuncall (nargs=4, args=args@entry=0x7ffd5642c658) at ../../src/eval.c:2706 #33 0x000000000059f173 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x9394d4 ) at ../../src/bytecode.c:880 #34 0x0000000000566416 in funcall_lambda (fun=XIL(0), nargs=nargs@entry=1, arg_vector=0x9394d4 , arg_vector@entry=0x7ffd5642c808) at ../../src/eval.c:2863 #35 0x00000000005666db in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7ffd5642c800) at ../../src/eval.c:2760 #36 0x00000000005669da in call1 (fn=fn@entry=XIL(0x3a50), arg1=) at ../../src/eval.c:2558 #37 0x0000000000500461 in command_loop_1 () at ../../src/keyboard.c:1484 #38 0x0000000000565002 in internal_condition_case ( bfun=bfun@entry=0x500040 , handlers=handlers@entry=XIL(0x4b00), hfun=hfun@entry=0x4f68c0 ) ---Type to continue, or q to quit--- at ../../src/eval.c:1315 #39 0x00000000004f1cf4 in command_loop_2 (ignore=ignore@entry=XIL(0)) at ../../src/keyboard.c:1112 #40 0x0000000000564fa3 in internal_catch (tag=tag@entry=XIL(0xb580), func=func@entry=0x4f1cd0 , arg=arg@entry=XIL(0)) at ../../src/eval.c:1080 #41 0x00000000004f1cb0 in command_loop () at ../../src/keyboard.c:1091 #42 0x00000000004f64b7 in recursive_edit_1 () at ../../src/keyboard.c:697 #43 0x00000000004f6808 in Frecursive_edit () at ../../src/keyboard.c:768 #44 0x000000000041a032 in main (argc=1, argv=0x7ffd5642cc08) at ../../src/emacs.c:1629 Lisp Backtrace: "eshell-write-history" (0x5642bf38) "run-hooks" (0x5642c020) "eshell-kill-buffer-function" (0x5642c200) "kill-buffer" (0x5642c400) "funcall-interactively" (0x5642c3f8) "call-interactively" (0x5642c660) "command-execute" (0x5642c808) (gdb) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=text_read_only-bt-error.txt Content-Description: GDB src info (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 4, text_read_only ( propval=propval@entry=XIL(0xb010)) at ../../src/textprop.c:71 71 if (STRINGP (propval)) (gdb) bt #0 text_read_only (propval=propval@entry=XIL(0xb010)) at ../../src/textprop.c:71 #1 0x00000000005bd8da in verify_interval_modification (buf=, start=start@entry=3209, end=end@entry=3209) at ../../src/textprop.c:2192 #2 0x0000000000519353 in prepare_to_modify_buffer_1 (start=start@entry=3209, end=end@entry=3209, preserve_ptr=preserve_ptr@entry=0x0) at ../../src/insdel.c:1837 #3 0x0000000000519791 in prepare_to_modify_buffer (start=3209, end=3209, preserve_ptr=preserve_ptr@entry=0x0) at ../../src/insdel.c:1878 #4 0x00000000005199b1 in insert_1_both ( string=string@entry=0x7ffd5642bca0 "\n\037\344\004", nchars=nchars@entry=1, nbytes=nbytes@entry=1, inherit=inherit@entry=false, prepare=prepare@entry=true, before_markers=before_markers@entry=false) at ../../src/insdel.c:801 #5 0x0000000000519ff1 in insert_1_both (before_markers=false, prepare=true, inherit=false, nbytes=1, nchars=1, string=0x7ffd5642bca0 "\n\037\344\004") at ../../src/insdel.c:585 #6 insert (string=0x7ffd5642bca0 "\n\037\344\004", nbytes=1) at ../../src/insdel.c:582 #7 0x00000000005582fc in general_insert_function ( insert_func=0x51a000 , insert_from_string_func=0x51a2f0 , inherit=inherit@entry=false, nargs=2, args=args@entry=0x7ffd5642bd40) ---Type to continue, or q to quit--- ../src/editfns.c:2492 #8 0x00000000005583cf in Finsert (nargs=, args=args@entry=0x7ffd5642bd40) at ../../src/editfns.c:2532 #9 0x000000000059fed4 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x45800b4) at ../../src/bytecode.c:1517 #10 0x0000000000566416 in funcall_lambda (fun=XIL(0x7ffd5642c090), nargs=nargs@entry=0, arg_vector=0x45800b4, arg_vector@entry=0x7ffd5642bf38) at ../../src/eval.c:2863 #11 0x00000000005666db in Ffuncall (nargs=1, args=0x7ffd5642bf30) at ../../src/eval.c:2760 #12 0x0000000000566939 in funcall_nil (nargs=, args=) at ../../src/eval.c:2338 #13 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642bf30, funcall=0x566930 ) at ../../src/eval.c:2515 #14 0x0000000000564c33 in run_hook_with_args (funcall=, args=, nargs=) at ../../src/eval.c:2361 #15 Frun_hook_with_args (args=0x7ffd5642bf30, nargs=1) at ../../src/eval.c:2380 #16 run_hook (hook=) at ../../src/eval.c:2528 #17 Frun_hooks (nargs=1, args=0x7ffd5642c020) at ../../src/eval.c:2362 #18 0x00000000005667e9 in Ffuncall (nargs=2, args=args@entry=0x7ffd5642c018) at ../../src/eval.c:2679 ---Type to continue, or q to quit--- #19 0x000000000059f173 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x343c164) at ../../src/bytecode.c:880 #20 0x0000000000566416 in funcall_lambda (fun=XIL(0x7ffd5642c6f0), nargs=nargs@entry=0, arg_vector=0x343c164, arg_vector@entry=0x7ffd5642c200) at ../../src/eval.c:2863 #21 0x00000000005666db in Ffuncall (nargs=1, args=0x7ffd5642c1f8) at ../../src/eval.c:2760 #22 0x0000000000566939 in funcall_nil (nargs=, args=) at ../../src/eval.c:2338 #23 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642c1f8, funcall=0x566930 ) at ../../src/eval.c:2515 #24 0x0000000000565259 in run_hook_with_args (funcall=, args=, nargs=) at ../../src/eval.c:2465 #25 Frun_hook_with_args (args=0x7ffd5642c1f8, nargs=1) at ../../src/eval.c:2380 #26 run_hook (hook=, hook@entry=XIL(0x7530)) at ../../src/eval.c:2528 #27 0x0000000000511aa1 in Fkill_buffer (buffer_or_name=) at ../../src/buffer.c:1680 #28 0x00000000005668e0 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7ffd5642c3f8) at ../../src/eval.c:2699 #29 0x00000000005622da in Ffuncall_interactively (nargs=2, args=0x7ffd5642c3f8) ---Type to continue, or q to quit--- at ../../src/callint.c:252 #30 0x00000000005667e9 in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7ffd5642c3f0) at ../../src/eval.c:2679 #31 0x0000000000562cb6 in Fcall_interactively (function=, record_flag=, keys=) at ../../src/callint.c:843 #32 0x00000000005668c6 in Ffuncall (nargs=4, args=args@entry=0x7ffd5642c658) at ../../src/eval.c:2706 #33 0x000000000059f173 in exec_byte_code (bytestr=, vector=, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x9394d4 ) at ../../src/bytecode.c:880 #34 0x0000000000566416 in funcall_lambda (fun=XIL(0), nargs=nargs@entry=1, arg_vector=0x9394d4 , arg_vector@entry=0x7ffd5642c808) at ../../src/eval.c:2863 #35 0x00000000005666db in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7ffd5642c800) at ../../src/eval.c:2760 #36 0x00000000005669da in call1 (fn=fn@entry=XIL(0x3a50), arg1=) at ../../src/eval.c:2558 #37 0x0000000000500461 in command_loop_1 () at ../../src/keyboard.c:1484 #38 0x0000000000565002 in internal_condition_case ( bfun=bfun@entry=0x500040 , handlers=handlers@entry=XIL(0x4b00), hfun=hfun@entry=0x4f68c0 ) ---Type to continue, or q to quit--- at ../../src/eval.c:1315 #39 0x00000000004f1cf4 in command_loop_2 (ignore=ignore@entry=XIL(0)) at ../../src/keyboard.c:1112 #40 0x0000000000564fa3 in internal_catch (tag=tag@entry=XIL(0xb580), func=func@entry=0x4f1cd0 , arg=arg@entry=XIL(0)) at ../../src/eval.c:1080 #41 0x00000000004f1cb0 in command_loop () at ../../src/keyboard.c:1091 #42 0x00000000004f64b7 in recursive_edit_1 () at ../../src/keyboard.c:697 #43 0x00000000004f6808 in Frecursive_edit () at ../../src/keyboard.c:768 #44 0x000000000041a032 in main (argc=1, argv=0x7ffd5642cc08) at ../../src/emacs.c:1629 Lisp Backtrace: "eshell-write-history" (0x5642bf38) "run-hooks" (0x5642c020) "eshell-kill-buffer-function" (0x5642c200) "kill-buffer" (0x5642c400) "funcall-interactively" (0x5642c3f8) "call-interactively" (0x5642c660) "command-execute" (0x5642c808) (gdb) --=-=-=--