help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to debug/gdb emacs/runemacs in windows?


From: Shuguang Sun
Subject: How to debug/gdb emacs/runemacs in windows?
Date: Thu, 23 May 2019 16:15:56 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt)

Hi all,

My emacs (pdumper) crashes for some commands, and I'd like to do some
debug/gdb to find more information.

First, I run gdb in msys2/mingw64:
--8<---------------cut here---------------start------------->8---
# gdb emacs
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from emacs...
(gdb) run --dump-file "c:/Users/username/HOME/.emacs.d/var/dumps/semacs.pdmp" 
--force-dump
Starting program: C:\Users\username\emacs\bin\emacs.exe --dump-file 
"c:/Users/username/HOME/.emacs.d/var/dumps/semacs.pdmp" --force-dump
[New Thread 231988.0x38e2c]
[New Thread 231988.0x3ea30]
[New Thread 231988.0x3d88c]
[Thread 231988.0x38e2c exited with code 0]
[Thread 231988.0x3ea30 exited with code 0]
[Thread 231988.0x3d88c exited with code 0]
[New Thread 231988.0x3b6c4]
[New Thread 231988.0x35dd0]
[New Thread 231988.0x3bb88]
[Thread 231988.0x3bb88 exited with code 1]
[New Thread 231988.0x22c0]
[Thread 231988.0x22c0 exited with code 1]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
--8<---------------cut here---------------end--------------->8---

The error above is because I call `recentf-edit-list` in the pdumper
emacs which make it crash. Then

--8<---------------cut here---------------start------------->8---
(gdb) thread 1
[Switching to thread 1 (Thread 231988.0x3954c)]
#0  0x0000000000000000 in ?? ()
(gdb) backtrace
#0  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
--8<---------------cut here---------------end--------------->8---

How could I find more information?



-- 
Best Regards
Shuguang Sun




reply via email to

[Prev in Thread] Current Thread [Next in Thread]