[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debug wedged Emacs
From: |
Eli Zaretskii |
Subject: |
Re: Debug wedged Emacs |
Date: |
Wed, 13 Dec 2017 05:46:12 +0200 |
> From: Devon Sean McCullough <address@hidden>
> 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.
- Debug wedged Emacs, Devon Sean McCullough, 2017/12/12
- Re: Debug wedged Emacs,
Eli Zaretskii <=