From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51076: 28.0.60; Null dereference warning with nox build in make_lispy_position Date: Thu, 07 Oct 2021 12:35:24 +0100 Message-ID: <87wnmp2hkz.fsf@tcd.ie> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11522"; mail-complaints-to="usenet@ciao.gmane.io" To: 51076@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 07 13:36:30 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 1mYRhL-0002i8-Rw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 13:36:28 +0200 Original-Received: from localhost ([::1]:51916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYRhK-0003au-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 07:36:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYRgx-0003Z7-11 for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 07:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYRgw-0007YL-Lo for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYRgw-0007Qz-8r for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Oct 2021 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51076 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163360653728540 (code B ref -1); Thu, 07 Oct 2021 11:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Oct 2021 11:35:37 +0000 Original-Received: from localhost ([127.0.0.1]:46210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYRgX-0007QG-Ae for submit@debbugs.gnu.org; Thu, 07 Oct 2021 07:35:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYRgU-0007Q7-DB for submit@debbugs.gnu.org; Thu, 07 Oct 2021 07:35:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYRgU-0003MW-5g for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 07:35:34 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:46816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYRgQ-00075c-JD for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 07:35:33 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id k7so17969678wrd.13 for ; Thu, 07 Oct 2021 04:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NydJ+6di8XLz9tQsSbaLY/lAzgMNQUSYXTwq7x5gABw=; b=PA5v/TDsbXrS00lwMUg/a8QYQcV+cgj/34gib/YGoAnvrngBE6GGAFeudrJAoKHBfU vrOL+mrd6qhW7y5U7keA8jhi2yjwMbWgtg3rVJis0f8cTjD+FxYFO2y4IilLnnT0IBNW voKns3cVuSJDRaZapEJ2634aSkHLx1ZZlMN12D/IicxUhpzyn6gVszsbMCfTVxI+rfel EYA84JMKztnlDCRvl9bv6c/7zOzaPdnDgipq2ZbIJmfDHu3ynAjrLgdbN0yPVwsY5w2F Yl3EHNHUW7gBbLUB/oIRK5FqVU4TluwoXe2ZwQy0Ea/jJaJiyvTbTw2Cgv0J7wr/xGH7 ircw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NydJ+6di8XLz9tQsSbaLY/lAzgMNQUSYXTwq7x5gABw=; b=SjTsp6aiIpR8dIjnYk/KKxWc3VAmU9rXaoiVxmIBCte1bfQY7rfmWwNyGWTkSPNuEX Ntn0z6TRcar1YmosBATkz/lWtTp93y81LKrXj+r3kcti387q+zTDNJdU38QIMbLfp3si RhZ6uVmyam7v3IUnsLBULlmsAsvjQO/fTHELsskrwkr0YUWRPmISOdD/3Kg6ayHwDEWf PcdYgw1D0LzQDgRrmvPeKWZl5+nA1bGSPdLPrRAObuLl3DXB6ITXRBD1oZQ3XnJRza/e ESKKTkfwoCarGF0Vi9LK++3/vkGCKLjfNMAsOypZEjYn2nYlxaDqk6dAYd/q9qKj/oUr +11Q== X-Gm-Message-State: AOAM533/5E6f5L+6rjsoMdhZ9/cirKlb2YRHJ6ZQzoUzMBznS+WT69h/ 33MiKVWzvTeIyt1E0LZYvIVaMkgH2ey9mw== X-Google-Smtp-Source: ABdhPJwyZmkjHrq5p5MIS4KpAW+Jf8EFuhhR3tY5cykUjfqj22f1jsxb3Pr2cGfHDhjVjZt/I+fLNg== X-Received: by 2002:a05:600c:1552:: with SMTP id f18mr15403214wmg.184.1633606526085; Thu, 07 Oct 2021 04:35:26 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id u3sm7711690wmc.16.2021.10.07.04.35.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 04:35:25 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=contovob@tcd.ie; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: 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:216643 Archived-At: Severity: minor I'm currently seeing the following warning with GCC 10.3.0 and --without-x: In file included from keyboard.c:29: keyboard.c: In function =E2=80=98make_lispy_position=E2=80=99: frame.h:949:35: warning: null pointer dereference [-Wnull-dereference] 949 | #define FRAME_TAB_BAR_LINES(f) (f)->tab_bar_lines | ~~~^~~~~~~~~~~~~~~ keyboard.c:5134:10: note: in expansion of macro =E2=80=98FRAME_TAB_BAR_LINE= S=E2=80=99 5134 | && FRAME_TAB_BAR_LINES (f) > 0 | ^~~~~~~~~~~~~~~~~~~ AFAICT the preceding condition '!FRAME_WINDOW_P (f)' will always be true in a nox build, but it's not clear to me what the logic of make_lispy_position should do in such a case. Thanks, --=20 Basil In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu) of 2021-10-07 built on tia Repository revision: b7a10b44acf94458ed5f590be76749cec3e1b8dc Repository branch: emacs-28 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure 'CC=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --program-suffix=3D-28-nox --enable-checking=3Dstructs --with-file-notification=3Dyes --with-x-toolkit=3Dno --without-x' Configured features: ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND THREADS XIM ZLIB Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail tool-bar rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv bytecomp byte-compile cconv regexp-opt iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 55431 6608) (symbols 48 6643 1) (strings 32 18253 1556) (string-bytes 1 603597) (vectors 16 10645) (vector-slots 8 126102 7553) (floats 8 24 35) (intervals 56 193 0) (buffers 992 10))