all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to debug/gdb emacs/runemacs in windows?
Date: Thu, 23 May 2019 17:13:48 +0300	[thread overview]
Message-ID: <834l5l6yxv.fsf@gnu.org> (raw)
In-Reply-To: <vk5y7eahy4ar.fsf@qq.com> (message from Shuguang Sun on Thu, 23 May 2019 16:15:56 +0800)

> From: Shuguang Sun <shuguang79@qq.com>
> Date: Thu, 23 May 2019 16:15:56 +0800
> 
> (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

What is the --force-dump option?  I don't think we have it in Emacs.

> 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?

Looks like your stack is smashed.  Could it be you have infinite
recursion?

One thing to try is to load the src/.gdbinit file from the Emacs
distribution before you issue the "run" command, it might help you by
stopping Emacs earlier, before it does something that destroys the
stack.  If that doesn't work, put a breakpoint inside some function
that recentf-edit-list calls, like Fformat perhaps, invoke
recentf-edit-list, then step through the code until you see where it
crashes.

(The above is based on incomplete information, because you didn't
explain how recentf-edit-list is called, and what exactly is in your
private pdumper file.)



  reply	other threads:[~2019-05-23 14:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23  8:15 How to debug/gdb emacs/runemacs in windows? Shuguang Sun
2019-05-23 14:13 ` Eli Zaretskii [this message]
2019-05-24  1:26   ` Shuguang Sun
2019-05-24  4:43     ` Shuguang Sun
2019-05-27  9:37   ` Shuguang Sun

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=834l5l6yxv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.