From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49261: Segfault during loadup Date: Mon, 12 Jul 2021 18:54:23 +0300 Message-ID: <83o8b7a5ow.fsf@gnu.org> References: <87o8bn7bie.fsf@gnus.org> <87zgv6vuon.fsf@gmx.de> <837di9lwbm.fsf@gnu.org> <87a6n5vuu4.fsf@gnus.org> <8735sqnmei.fsf@gnus.org> <87zguyf4ht.fsf@gmx.de> <87pmvum54p.fsf@gnus.org> <87v95mf2lj.fsf@gmx.de> <87pmvt3ob1.fsf@gnus.org> <83r1g9evoy.fsf@gnu.org> <83pmvtevgg.fsf@gnu.org> <87czrt3mj4.fsf@gnus.org> <878s2h3m1d.fsf@gnus.org> <874kd53lnl.fsf@gnus.org> <87zgux26ab.fsf@gnus.org> <87pmvt25uq.fsf@gnus.org> <87lf6h2294.fsf@gnus.org> <87h7h51x9y.fsf_-_@gnus.org> <83bl79b17n.fsf@gnu.org> <835yxgc1pm.fsf@gnu.org> <83wnpvag6z.fsf@gnu.org> <5608bf0a-7211-73a9-690f-c869a1cb3c9d@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15793"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 49261@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 12 17:55:40 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m2yHU-0003vp-Ba for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Jul 2021 17:55:40 +0200 Original-Received: from localhost ([::1]:40512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2yHT-00047R-5r for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Jul 2021 11:55:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2yGu-00046j-7U for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 11:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m2yGs-0003TT-I8 for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 11:55:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m2yGs-0000c4-Gb for bug-gnu-emacs@gnu.org; Mon, 12 Jul 2021 11:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Jul 2021 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49261 X-GNU-PR-Package: emacs Original-Received: via spool by 49261-submit@debbugs.gnu.org id=B49261.16261052832328 (code B ref 49261); Mon, 12 Jul 2021 15:55:02 +0000 Original-Received: (at 49261) by debbugs.gnu.org; 12 Jul 2021 15:54:43 +0000 Original-Received: from localhost ([127.0.0.1]:38715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2yGZ-0000bU-HL for submit@debbugs.gnu.org; Mon, 12 Jul 2021 11:54:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m2yGX-0000bH-F3 for 49261@debbugs.gnu.org; Mon, 12 Jul 2021 11:54:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56676) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2yGR-00039F-Ck; Mon, 12 Jul 2021 11:54:35 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3621 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2yGN-00035n-GS; Mon, 12 Jul 2021 11:54:35 -0400 In-Reply-To: <5608bf0a-7211-73a9-690f-c869a1cb3c9d@cs.ucla.edu> (message from Paul Eggert on Mon, 12 Jul 2021 07:50:41 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209829 Archived-At: > Cc: larsi@gnus.org, 49261@debbugs.gnu.org > From: Paul Eggert > Date: Mon, 12 Jul 2021 07:50:41 -0700 > > On 7/12/21 5:07 AM, Eli Zaretskii wrote: > > >> Yes that GCC warning was bogus, and your pacification of GCC is valid > > > > Hmm... is it really a bogus warning? VALMASK is a 64-bit value, and > > uintptr_t is 32-bit wide. > > It's bogus in the sense that 'uintptr_t mask = VALMASK;' has > well-defined behavior in C; there is no undefined behavior there, since > VALMASK is an integer and uintptr_t is unsigned. And truncation is what > is wanted here, so the warning is bogus. Then what is the -Woverflow option for? Can you show an example of code which -Woverflow would flag that doesn't produce a bogus warning?