all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Daniel Colascione <dancol@dancol.org>
Cc: emacs-devel@gnu.org
Subject: Re: Help with pdumper
Date: Sat, 29 Jun 2024 23:59:43 -0400	[thread overview]
Message-ID: <jwv8qynrt22.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <D0891E2D-620F-48C0-8D24-61EF30FD94B6@dancol.org> (Daniel Colascione's message of "Sat, 29 Jun 2024 16:01:25 -0400")

>> I'm playing with replacing the linked-list of markers with an ordered
>> array of markers.  I'm now stuck (as is sadly often the case in such
>> endeavors) with a pdumper problem.
> Have you tried running under rr and using watchpoints (which fire even when
> running reversed) to figure out where the bad value is coming from?

I don't know which value is wrong, to be honest, and even less where
it's stored, making it difficult to trace its origin.

>> Any idea what I'm doing wrong in my code and/or why
>> `dump_find_relocation` might return a "relocation type" of
>> RELOC_NATIVE_SUBR for this marker?
>> Or any other thing I could try to track down the origin of the problem?
> Supposing we have the wrong relocation type in the dump itself, you can find
> the offset relative to dump start of the has value

The offset of what?  What has[h?] value?

Any comment about the diff I sent, like something that looked suspicious?
Or does it look sane and the problem is probably elsewhere (like some
memory corruption that just happens to mess up the dump)?


        Stefan "quite lost"




  reply	other threads:[~2024-06-30  3:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-29 19:28 Help with pdumper Stefan Monnier
2024-06-29 20:01 ` Daniel Colascione
2024-06-30  3:59   ` Stefan Monnier [this message]
2024-06-30  5:16 ` Gerd Möllmann
2024-07-03 20:12   ` Stefan Monnier
2024-07-04  3:46     ` Gerd Möllmann
2024-06-30  9:47 ` Helmut Eller

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=jwv8qynrt22.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dancol@dancol.org \
    --cc=emacs-devel@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.