all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to debug/gdb emacs/runemacs in windows?
@ 2019-05-23  8:15 Shuguang Sun
  2019-05-23 14:13 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Shuguang Sun @ 2019-05-23  8:15 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-27  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-23  8:15 How to debug/gdb emacs/runemacs in windows? Shuguang Sun
2019-05-23 14:13 ` Eli Zaretskii
2019-05-24  1:26   ` Shuguang Sun
2019-05-24  4:43     ` Shuguang Sun
2019-05-27  9:37   ` Shuguang Sun

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.