From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex =?UTF-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.bugs Subject: bug#48097: 28.0.50; C code not being correctly fontified in features/native-comp Date: Thu, 29 Apr 2021 11:14:44 +0100 Message-ID: <87czud75yj.fsf@zen.i-did-not-set--mail-host-address--so-tickle-me> 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="1580"; mail-complaints-to="usenet@ciao.gmane.io" To: 48097@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 29 12:15:27 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 1lc3he-0000GK-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 12:15:26 +0200 Original-Received: from localhost ([::1]:34962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lc3hd-0007HE-KO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 06:15:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc3hG-0007DG-KB for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 06:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lc3hG-0003Qx-Ag for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 06:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lc3hG-0007om-6I for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 06:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Apr 2021 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48097 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.161969129930024 (code B ref -1); Thu, 29 Apr 2021 10:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2021 10:14:59 +0000 Original-Received: from localhost ([127.0.0.1]:54883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3hC-0007oC-NO for submit@debbugs.gnu.org; Thu, 29 Apr 2021 06:14:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lc3h9-0007o3-Ft for submit@debbugs.gnu.org; Thu, 29 Apr 2021 06:14:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lc3h8-00075l-52 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 06:14:55 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:35510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lc3h3-0003JX-P0 for bug-gnu-emacs@gnu.org; Thu, 29 Apr 2021 06:14:53 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id a4so66314468wrr.2 for ; Thu, 29 Apr 2021 03:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FMBGsLoMwiNSXg7O+x/KDTSo7u1XaRgZ5gRNmVeKBjw=; b=czwrqg6EUVVnWw45DkFSt7I+V1li3U1EiVQs/JgzyknHlEOc+nCYHc12SNIXctZfuI o5KWvcbuAmwLzpttk6HOxzJN2DnUdmA+SpzGlRmeMDgq5MDxs68Bdk3RyV4ZsYxKatda KS1iijGYM1Mbq/EFYXP3IYaArDHOLu6V/ySJoESqD6MozIyxboTt5snEYn23y++R7H56 q7Fobv/0t1DONTUYt19MaREkHAPx3mE1LuhEJo21PzJnEZHxOn4KPDxFXhFim/67RlBs 7g+17/5unzZUcqd5IoAwEVEf+VEkFMY8e3mh+c6boyin9kasVyOQjL9HZPd5iFUFEZcr gJdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FMBGsLoMwiNSXg7O+x/KDTSo7u1XaRgZ5gRNmVeKBjw=; b=O3X7pcF+XLo+hOFjDZwiGLJIyPR6Cp1shTm9oMfoEByPTdPUoaFPFJKBobxUGXQcvE 5ElHSQo0wZxyLS3u1OYQV90LyhXKBXkK2ZvVp1IFEdg5kE512RhQiq0JZYLoWlxGvwfK 4jFdiFoS68rZPWD83trJas9GtJ06L7EXVhCbdVVAJ0Va9Kl82RBpFP3ppcnVd+k0OTlC Co6b0Y7C3H5uhgT31kXeJ7YRV67jYmH3LRT7xT50p7APGQrL5z6o+b5CPdwXM6H+2JZp A9MaykntVNQPynDC9jsyZMgAEJZk2FT7dLKwi3DSVT+HEJTjoB/hapzDKvP7snk86UOc yBfw== X-Gm-Message-State: AOAM530vvgoFg8Xv630rHBCU6KKFiVnZtodSTvkgaxB1/EG3ygezGKYe y+l/X/wqRKM0C/G/MZesd34/hrtT126P7w== X-Google-Smtp-Source: ABdhPJyUPWwSzdkLK7UbjPmRLElb24P4CJYsget8CxurcdzPMFtNFuM865j77tgjEV1dVgDW4bTnOA== X-Received: by 2002:a5d:4e52:: with SMTP id r18mr17922469wrt.179.1619691286274; Thu, 29 Apr 2021 03:14:46 -0700 (PDT) Original-Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g197sm10611672wme.43.2021.04.29.03.14.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 03:14:45 -0700 (PDT) Original-Received: by zen.linaroharston (Postfix, from userid 1000) id AF99B1FF87; Thu, 29 Apr 2021 11:14:44 +0100 (BST) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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:205164 Archived-At: This happens with a lot of C files but for a concrete reproducible example from my development repository: https://github.com/stsquad/qemu/blob/review/qtest-accel-check-v4/tests/qt= est/arm-cpu-features.c Running: emacs -Q tests/qtest/arm-cpu-features.c And witness the lack of fontification from half way through assert_error although resp_has_props seems to recover for the function prototype and initial variable. When I run: M-x font-lock-debug-fontify The fontification fixes itself although I get a bunch of errors in Messages: Error during redisplay: (jit-lock-function 2666) signaled (wrong-type-arg= ument number-or-marker-p nil) Error during redisplay: (jit-lock-function 3125) signaled (wrong-type-arg= ument number-or-marker-p nil) In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.16.0, Xaw3d scroll bars) of 2021-04-24 built on zen Repository revision: fa65c044f2ebe666467166075c1507a8d0e1347f Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure --with-x-toolkit=3Dlucid --prefix=3D/home/alex/src/emacs/install --with-modules --with-imagemagick --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug comp comp-cstr warnings rx cl-extra help-mode message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x vc-git diff-mode easy-mmode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar 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 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 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 131404 9363) (symbols 48 10101 1) (strings 32 29919 2259) (string-bytes 1 1072854) (vectors 16 18858) (vector-slots 8 322162 14264) (floats 8 31 33) (intervals 56 2086 0) (buffers 992 13)) --=20 Alex Benn=C3=A9e QEMU/KVM Hacker for Linaro