* Debug wedged Emacs
@ 2017-12-12 22:30 Devon Sean McCullough
2017-12-13 3:46 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Devon Sean McCullough @ 2017-12-12 22:30 UTC (permalink / raw)
To: Emacs-Devel
Emacs 26.0.90 unresponsive, 100% CPU, I would like to find the name and contents of the current buffer.
(lldb) version
lldb-310.2.37
(lldb) bt
### The backtrace seems to show a sit-for leading to an infinite fontify loop or something.
…
(lldb) expression --gdb-format x -- (long)Fcurrent_buffer()
(long) $24 = 0x000000010a499125
…
(lldb) expression --gdb-format x --show-types -- (long)Fbuffer_name((long)Fcurrent_buffer())
(long) $30 = 0x000000010a58e9b4
…
(lldb) expression --gdb-format x --show-types -- (long)VALMASK
(long) $40 = 0xfffffffffffffff8
…
(lldb) expression --gdb-format x --show-types -- (long)GCTYPEBITS
(long) $44 = 0x0000000100000003
…
(lldb) expression --gdb-format x --show-types -- (long)Fbuffer_name((long)Fcurrent_buffer()) & (long)VALMASK
(long) $45 = 0x000000010a58e9b0
…
(lldb) memory read --gdb-format xb --count 64 0x000000010A58E9B0
0x10a58e9b0: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9b8: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9c0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9c8: 0xe0 0x16 0x30 0x51 0x01 0x00 0x00 0x00
0x10a58e9d0: 0x5c 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9d8: 0x5c 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9e0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x10a58e9e8: 0x40 0xb3 0xc1 0x4f 0x01 0x00 0x00 0x00
Now what?
Peace
—Devon
P.S. This is the Emacs binary at
https://EmacsForMacOSX.com/download/emacs-builds/Emacs-pretest-26.0.90-universal.dmg
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Debug wedged Emacs
2017-12-12 22:30 Debug wedged Emacs Devon Sean McCullough
@ 2017-12-13 3:46 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2017-12-13 3:46 UTC (permalink / raw)
To: Devon Sean McCullough; +Cc: Emacs-Devel
> From: Devon Sean McCullough <Emacs-Hacker2017@jovi.net>
> Date: Tue, 12 Dec 2017 17:30:06 -0500
>
> Emacs 26.0.90 unresponsive, 100% CPU, I would like to find the name and contents of the current buffer.
>
> (lldb) version
> lldb-310.2.37
> (lldb) bt
> ### The backtrace seems to show a sit-for leading to an infinite fontify loop or something.
Please show the backtrace, it's hard to reason about the problem
without having that much.
> (lldb) expression --gdb-format x -- (long)Fcurrent_buffer()
> (long) $24 = 0x000000010a499125
> …
> (lldb) expression --gdb-format x --show-types -- (long)Fbuffer_name((long)Fcurrent_buffer())
> (long) $30 = 0x000000010a58e9b4
> …
> (lldb) expression --gdb-format x --show-types -- (long)VALMASK
> (long) $40 = 0xfffffffffffffff8
> …
> (lldb) expression --gdb-format x --show-types -- (long)GCTYPEBITS
> (long) $44 = 0x0000000100000003
> …
> (lldb) expression --gdb-format x --show-types -- (long)Fbuffer_name((long)Fcurrent_buffer()) & (long)VALMASK
> (long) $45 = 0x000000010a58e9b0
> …
> (lldb) memory read --gdb-format xb --count 64 0x000000010A58E9B0
> 0x10a58e9b0: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9b8: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9c0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9c8: 0xe0 0x16 0x30 0x51 0x01 0x00 0x00 0x00
> 0x10a58e9d0: 0x5c 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9d8: 0x5c 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9e0: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
> 0x10a58e9e8: 0x40 0xb3 0xc1 0x4f 0x01 0x00 0x00 0x00
>
> Now what?
Can lldb use the commands defined in src/.gdbinit? If so, you should
be able to display the name of the current buffer in a human-readable
form using "xbuffer", for example.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-13 3:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-12 22:30 Debug wedged Emacs Devon Sean McCullough
2017-12-13 3:46 ` Eli Zaretskii
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.