unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Alan Third <alan@idiocy.org>, raman <raman@google.com>,
	Emacs developers <emacs-devel@gnu.org>
Subject: Re: san_ignore_object not found at link time
Date: Sat, 1 Aug 2020 21:40:02 +0200	[thread overview]
Message-ID: <CAArVCkT3hPuHARUGdPW9iabhdn7Mn2xejoaUk-wpaBpF4bpn2Q@mail.gmail.com> (raw)
In-Reply-To: <83d04acgmj.fsf@gnu.org>

Am Sa., 1. Aug. 2020 um 21:26 Uhr schrieb Eli Zaretskii <eliz@gnu.org>:
>
> > Date: Sat, 01 Aug 2020 22:21:24 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: alan@idiocy.org, emacs-devel@gnu.org, raman@google.com
> >
> > > From: Philipp Stephani <p.stephani2@gmail.com>
> > > Date: Sat, 1 Aug 2020 21:17:05 +0200
> > > Cc: Alan Third <alan@idiocy.org>, raman <raman@google.com>,
> > >     Emacs developers <emacs-devel@gnu.org>
> > >
> > > I've now used INT_SUBTRACT_WRAPV, which should guarantee that the
> > > offset is defined and fits within an intptr_t.
> >
> > Thanks, the warning is gone now.  Though I still don't like the code
> > there, it feels wrong even if it isn't.
>
> I spoke too soon: it compiles, but that hits assertion violation while
> loading:

Yeah, that's what I feared. I've now made the assertion conditional.

It might be cleaner to rewrite that function to explicitly check for
all known tag types:

void *po;
switch (type_tag)
{
  case Lisp_Symbol:
    po = XSYMBOL (obj);
    break;
  ...
}

That way, the pointer arithmetic would be centralized in XUNTAG and XSYMBOL.



  reply	other threads:[~2020-08-01 19:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-01 14:10 san_ignore_object not found at link time T.V Raman
2020-08-01 14:37 ` Eli Zaretskii
2020-08-01 14:45   ` T.V Raman
2020-08-01 14:45   ` Eli Zaretskii
2020-08-01 15:02     ` Philipp Stephani
2020-08-01 15:38     ` Alan Third
2020-08-01 17:32       ` Philipp Stephani
2020-08-01 17:51         ` Eli Zaretskii
2020-08-01 18:02           ` Eli Zaretskii
2020-08-01 18:33             ` Philipp Stephani
2020-08-01 18:52             ` Andreas Schwab
2020-08-01 18:29           ` Philipp Stephani
2020-08-01 18:32             ` Eli Zaretskii
2020-08-01 18:35               ` Philipp Stephani
2020-08-01 19:17                 ` Philipp Stephani
2020-08-01 19:21                   ` Philipp Stephani
2020-08-01 19:21                   ` Eli Zaretskii
2020-08-01 19:26                     ` Eli Zaretskii
2020-08-01 19:40                       ` Philipp Stephani [this message]
2020-08-02 16:08                         ` Eli Zaretskii
2020-08-01 18:09         ` T.V Raman
2020-08-01 18:13         ` Alan Third
2020-08-01 16:43     ` T.V Raman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkT3hPuHARUGdPW9iabhdn7Mn2xejoaUk-wpaBpF4bpn2Q@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=alan@idiocy.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).