From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: san_ignore_object not found at link time
Date: Sat, 1 Aug 2020 21:17:05 +0200
Message-ID:
References: <20200801141014.51E78C21C82@raman-glaptop.localdomain>
<83wo2ictyz.fsf@gnu.org> <83tuxmctmo.fsf@gnu.org>
<20200801153823.GA55369@breton.holly.idiocy.org>
<83k0yicl01.fsf@gnu.org>
<83h7tmcj45.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="38125"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Alan Third , Emacs developers ,
raman
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 01 21:18:07 2020
Return-path:
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1k1x1D-0009pe-2X
for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Aug 2020 21:18:07 +0200
Original-Received: from localhost ([::1]:52204 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1k1x1C-0008SP-5A
for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Aug 2020 15:18:06 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49780)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1k1x0R-00082b-F3
for emacs-devel@gnu.org; Sat, 01 Aug 2020 15:17:19 -0400
Original-Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:32968)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1k1x0P-00054g-Uu; Sat, 01 Aug 2020 15:17:19 -0400
Original-Received: by mail-ot1-x343.google.com with SMTP id t7so11322441otp.0;
Sat, 01 Aug 2020 12:17:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=/9oI8nWp3kBM2csCd7R3MQQpdOqqIzO+3oa7KM6h5HY=;
b=NFbRvn01vSDY/xCyio7JEVQA4YrRofd8zZTivac5UCMsCPm+m2UI3gP3LHICY0jUZc
8Urb3VLjmDaIRcMHXPV88kf0gnhrBaKQ85/QLtoCqXvCknqbT/VI7ha24HAIZcVj99oT
E6YF6VfwHstoVYMvWfAJe2nxuH12unwA38CYyw2EId6wBk9VC327rwU8wUSeLcwWuT0D
iYKxEcRZW3xnsH2Dh+4g+hne07NC358DZC5Hb3NGOxTjN9aKKhfUaGOet0bRW4gwFAYi
1MRkrTDPUU6fluP84nILQcSn0W9BRw4eISvr2rTK/mQrHrxwLwnNFaKAyRqwd15WinZC
aYtA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=/9oI8nWp3kBM2csCd7R3MQQpdOqqIzO+3oa7KM6h5HY=;
b=WcZdWjM+s5gadW65LP3krHcBdt+o3F8L4Gb7AsLjiyR1QD5Z0SSVEnoBzyy5BCKRUr
k+Ahm2QxqDZHwGv7zw4WGgYFMgetgOOHJaAMzKm66TXboZ0yaFcI3FgMhGL/F6pPO/dh
kBxwFUJr/So79ZS9HCMCa1kX6FmCckKRuYEGc0lYPh3w9x+ITAEiDLVdcIkIKBVcW8vg
1F/XOzBie8osCWOLOWSPEmBLTYK+1YD0vLL3jx6FvMKZKs/d2LPS6ejSIkymgRf9o866
TamfQcfnGn4a27YqvaGXYWrb04TLnAHku5a95uvRwWGK2L2L7LGMhAKAgYvlx/cji765
mtOw==
X-Gm-Message-State: AOAM533Xgn1Jsgqk+Kdiu8Ehkt0dg9zdY5+xD2o7YlzrDjz6oxFSldOL
0GICnYhvs8hinS8wWIdbUBe4LXWKSvjvvklM/Uld2w==
X-Google-Smtp-Source: ABdhPJwUjZ1SaL6n2Zp7TugkL02r4eFsFwTV9IzZ5AbpvkkGinx+B/nsfjFlE0+p/CqCfPj3YBuUAaNwC9ZGg5RkCJ8=
X-Received: by 2002:a05:6830:4032:: with SMTP id
i18mr7296996ots.174.1596309435970;
Sat, 01 Aug 2020 12:17:15 -0700 (PDT)
In-Reply-To:
Received-SPF: pass client-ip=2607:f8b0:4864:20::343;
envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x343.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:253393
Archived-At:
Am Sa., 1. Aug. 2020 um 20:35 Uhr schrieb Philipp Stephani
:
>
> Am Sa., 1. Aug. 2020 um 20:32 Uhr schrieb Eli Zaretskii :
> >
> > > From: Philipp Stephani
> > > Date: Sat, 1 Aug 2020 20:29:29 +0200
> > > Cc: Alan Third , raman ,
> > > Emacs developers
> > >
> > > > alloc.c: In function 'mark_maybe_object':
> > > > alloc.c:4641:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> > > > 4641 | void *po = (char *) ((intptr_t) (char *) XLP (obj)
> > > > | ^
> > > >
> > > > This is a 32-bit build --with-wide-int, in case it matters, where
> > > > EMACS_INT is a 64-bit data type.
> > >
> > > This is due to the unrelated commit a2323c7ccb. (I just happened to
> > > push both commits at the same time.)
> > > It looks like LISP_WORD_TAG in a wide int build is a 64-bit number, so
> > > that the entire expression gets widened to a 64-bit number. However,
> > > since it's cast back to a pointer, the value has to fit in 32 bits.
> >
> > The pointer is there, you just cannot safely extract it by casting to
> > a narrower data type. You need to explicitly mask the MSBs by
> > shifting or some other bit fiddling.
>
> IIUC casting between unsigned integer types is guaranteed to have the
> same effect.
I've now used INT_SUBTRACT_WRAPV, which should guarantee that the
offset is defined and fits within an intptr_t.