all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Live System User <nyc4bos@aol.com>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: 28700@debbugs.gnu.org
Subject: bug#28700: 25.2; Cannot kill Eshell buffer
Date: Sun, 15 Oct 2017 15:09:12 -0400	[thread overview]
Message-ID: <87o9p8p6sn.fsf@aol.com> (raw)
In-Reply-To: <87vajucw4a.fsf@users.sourceforge.net> (Noam Postavsky's message of "Wed, 04 Oct 2017 19:48:53 -0400")

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

Noam Postavsky <npostavs@users.sourceforge.net> writes:

> Live System User <nyc4bos@aol.com> 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.


[-- Attachment #2: GDB BT info --]
[-- Type: text/plain, Size: 6736 bytes --]

(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=<optimized out>, 
    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>, 
    insert_from_string_func=0x51a2f0 <insert_from_string>, 
    inherit=inherit@entry=false, nargs=2, args=args@entry=0x7ffd5642bd40)
---Type <return> to continue, or q <return> to quit---
   ../src/editfns.c:2492
#8  0x00000000005583cf in Finsert (nargs=<optimized out>, 
    args=args@entry=0x7ffd5642bd40) at ../../src/editfns.c:2532
#9  0x000000000059fed4 in exec_byte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=0, args=<optimized out>, 
    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=<optimized out>, 
    args=<optimized out>) at ../../src/eval.c:2338
#13 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642bf30, 
    funcall=0x566930 <funcall_nil>) at ../../src/eval.c:2515
#14 0x0000000000564c33 in run_hook_with_args (funcall=<optimized out>, 
    args=<optimized out>, nargs=<optimized out>) at ../../src/eval.c:2361
#15 Frun_hook_with_args (args=0x7ffd5642bf30, nargs=1) at ../../src/eval.c:2380
#16 run_hook (hook=<optimized out>) 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 <return> to continue, or q <return> to quit---
#19 0x000000000059f173 in exec_byte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=0, args=<optimized out>, 
    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=<optimized out>, 
    args=<optimized out>) at ../../src/eval.c:2338
#23 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642c1f8, 
    funcall=0x566930 <funcall_nil>) at ../../src/eval.c:2515
#24 0x0000000000565259 in run_hook_with_args (funcall=<optimized out>, 
    args=<optimized out>, nargs=<optimized out>) at ../../src/eval.c:2465
#25 Frun_hook_with_args (args=0x7ffd5642c1f8, nargs=1) at ../../src/eval.c:2380
#26 run_hook (hook=<optimized out>, hook@entry=XIL(0x7530))
    at ../../src/eval.c:2528
#27 0x0000000000511aa1 in Fkill_buffer (buffer_or_name=<optimized out>)
    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 <return> to continue, or q <return> 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=<optimized out>, 
    record_flag=<optimized out>, keys=<optimized out>)
    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=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=1, args=<optimized out>, 
    args@entry=0x9394d4 <pure+895540>) at ../../src/bytecode.c:880
#34 0x0000000000566416 in funcall_lambda (fun=XIL(0), nargs=nargs@entry=1, 
    arg_vector=0x9394d4 <pure+895540>, 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=<optimized out>)
    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 <command_loop_1>, 
    handlers=handlers@entry=XIL(0x4b00), hfun=hfun@entry=0x4f68c0 <cmd_error>)
---Type <return> to continue, or q <return> 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 <command_loop_2>, 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) 


[-- Attachment #3: GDB src info --]
[-- Type: text/plain, Size: 6736 bytes --]

(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=<optimized out>, 
    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>, 
    insert_from_string_func=0x51a2f0 <insert_from_string>, 
    inherit=inherit@entry=false, nargs=2, args=args@entry=0x7ffd5642bd40)
---Type <return> to continue, or q <return> to quit---
   ../src/editfns.c:2492
#8  0x00000000005583cf in Finsert (nargs=<optimized out>, 
    args=args@entry=0x7ffd5642bd40) at ../../src/editfns.c:2532
#9  0x000000000059fed4 in exec_byte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=0, args=<optimized out>, 
    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=<optimized out>, 
    args=<optimized out>) at ../../src/eval.c:2338
#13 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642bf30, 
    funcall=0x566930 <funcall_nil>) at ../../src/eval.c:2515
#14 0x0000000000564c33 in run_hook_with_args (funcall=<optimized out>, 
    args=<optimized out>, nargs=<optimized out>) at ../../src/eval.c:2361
#15 Frun_hook_with_args (args=0x7ffd5642bf30, nargs=1) at ../../src/eval.c:2380
#16 run_hook (hook=<optimized out>) 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 <return> to continue, or q <return> to quit---
#19 0x000000000059f173 in exec_byte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=0, args=<optimized out>, 
    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=<optimized out>, 
    args=<optimized out>) at ../../src/eval.c:2338
#23 0x0000000000564a55 in run_hook_with_args (nargs=1, args=0x7ffd5642c1f8, 
    funcall=0x566930 <funcall_nil>) at ../../src/eval.c:2515
#24 0x0000000000565259 in run_hook_with_args (funcall=<optimized out>, 
    args=<optimized out>, nargs=<optimized out>) at ../../src/eval.c:2465
#25 Frun_hook_with_args (args=0x7ffd5642c1f8, nargs=1) at ../../src/eval.c:2380
#26 run_hook (hook=<optimized out>, hook@entry=XIL(0x7530))
    at ../../src/eval.c:2528
#27 0x0000000000511aa1 in Fkill_buffer (buffer_or_name=<optimized out>)
    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 <return> to continue, or q <return> 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=<optimized out>, 
    record_flag=<optimized out>, keys=<optimized out>)
    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=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, 
    args_template=<optimized out>, nargs=nargs@entry=1, args=<optimized out>, 
    args@entry=0x9394d4 <pure+895540>) at ../../src/bytecode.c:880
#34 0x0000000000566416 in funcall_lambda (fun=XIL(0), nargs=nargs@entry=1, 
    arg_vector=0x9394d4 <pure+895540>, 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=<optimized out>)
    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 <command_loop_1>, 
    handlers=handlers@entry=XIL(0x4b00), hfun=hfun@entry=0x4f68c0 <cmd_error>)
---Type <return> to continue, or q <return> 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 <command_loop_2>, 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) 


  reply	other threads:[~2017-10-15 19:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04  9:57 bug#28700: 25.2; Cannot kill Eshell buffer Live System User
2017-10-04 11:56 ` Noam Postavsky
2017-10-04 14:13   ` Live System User
2017-10-04 14:19     ` Noam Postavsky
2017-10-04 15:21       ` Live System User
2017-10-04 16:42         ` Noam Postavsky
2017-10-04 18:27           ` Live System User
2017-10-04 18:32             ` Noam Postavsky
2017-10-04 19:50               ` Live System User
2017-10-04 19:56                 ` Noam Postavsky
2017-10-04 22:12                   ` Live System User
2017-10-04 23:48                     ` Noam Postavsky
2017-10-15 19:09                       ` Live System User [this message]
2017-10-15 19:48                         ` Noam Postavsky
2017-10-15 22:02                           ` Live System User
2017-10-16  2:20                             ` Noam Postavsky
2017-10-21 19:51                               ` Noam Postavsky
2017-10-15 19:29                       ` Live System User
2017-10-05  8:09 ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9p8p6sn.fsf@aol.com \
    --to=nyc4bos@aol.com \
    --cc=28700@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.