From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#59038: loading this base64 file makes emacs -Q 28.2 peg a core infinitely Date: Sat, 05 Nov 2022 06:12:37 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25788"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59038@debbugs.gnu.org, Alan Mackenzie To: "Chris Hecker" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 05 06:13:36 2022 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 1orBUt-0006Tn-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Nov 2022 06:13:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orBUO-0002eG-5l; Sat, 05 Nov 2022 01:13:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orBUM-0002dV-GS for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2022 01:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1orBUM-0001b8-7D for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2022 01:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1orBUL-0002rJ-OS for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2022 01:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Nov 2022 05:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59038 X-GNU-PR-Package: emacs Original-Received: via spool by 59038-submit@debbugs.gnu.org id=B59038.166762517110969 (code B ref 59038); Sat, 05 Nov 2022 05:13:01 +0000 Original-Received: (at 59038) by debbugs.gnu.org; 5 Nov 2022 05:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:55301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orBUA-0002qq-TS for submit@debbugs.gnu.org; Sat, 05 Nov 2022 01:12:51 -0400 Original-Received: from mail-ej1-f41.google.com ([209.85.218.41]:38846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1orBU5-0002qP-No for 59038@debbugs.gnu.org; Sat, 05 Nov 2022 01:12:48 -0400 Original-Received: by mail-ej1-f41.google.com with SMTP id f5so18090749ejc.5 for <59038@debbugs.gnu.org>; Fri, 04 Nov 2022 22:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=44jDEGScYqZAK+WcGtAMRX34+XlLabrZG9YP/rLHiJQ=; b=lkCtgpdoS1WerOkmpYe8uhitaxMBHa54UECXr3LtBBzJ+1tU0DYlCDY9lvySCvfZHO fW2BT3sHXm6GIGGLVWjDQ8BNGcIfnmnvYgcQlQP9nbZpAkjXvT8QB+1piXwNvVFeMf5v 4eSjvph55lFTpFdvcUGeq9wnvFCQdk3FvG1CEEEOP73PmICDgSMo+9TchbpDOybGL2sv 9McqwEiIPeGLsT34xOAw/TrmXxWHTYvQRz3aRYwSiKAkZZgOn9U4YqFmia2JR3a+/hQK UrUKO6OH4GmnVodNeMFZUlVkWMZZlDGujd+rB1FDK9kqN4XikwtpnX8lzMKsuXP2cdiA G2fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=44jDEGScYqZAK+WcGtAMRX34+XlLabrZG9YP/rLHiJQ=; b=KCg6hdv5ENJcOcj/3YM44dMXoGKXnnF9rzOFETJt6/8GKT3xezfkFmq6qobV9vhgzZ YKQJthP47XYTyER2INPdaYiiwEeT1LYw/0fGQ9cYX9UXLYip8OihyrBT5wJ8UPX7+HCo jwX4CkaQ1RFbUg55xLBZWodtIsO/9WAJTfri5PSAXsKy6MOJXemDXo5VnE6Nz4duCrVA Dn2CjneAPB8PTiM61/Fro6nmhByFmTZ1w3Pe3rMTm8yzHq4uNwnIWLM4Rp0xc2tIEdeb O0JsyQraL/A95AeztuhU5K+FXtUKs/XVBjCMq22xpB4/pllCX3TRdHU3fa7TN0nZRFyr 2QUw== X-Gm-Message-State: ACrzQf2MD4KJROWRGTqe1YurngWZPxj9sNN5aFFG966+F3E9j7rfBR0t 1HgSQmADKecRl3TP0LXdESQ= X-Google-Smtp-Source: AMsMyM6+200ELjGJSLniIxoD2448tgjoOO+HgH0VwxROqHFOyGXzwTNJ0r3F4LEz4H8fNetDe2IpTg== X-Received: by 2002:a17:907:1b09:b0:7ac:db30:2cf0 with SMTP id mp9-20020a1709071b0900b007acdb302cf0mr37534602ejc.679.1667625159635; Fri, 04 Nov 2022 22:12:39 -0700 (PDT) Original-Received: from Mini.fritz.box (p4fe3a85e.dip0.t-ipconnect.de. [79.227.168.94]) by smtp.gmail.com with ESMTPSA id j21-20020aa7ca55000000b004616cce0a26sm662439edt.24.2022.11.04.22.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 22:12:39 -0700 (PDT) In-Reply-To: (Chris Hecker's message of "Sat, 05 Nov 2022 02:48:42 +0000") 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247130 Archived-At: "Chris Hecker" writes: > gunzip this file (it's a c header file base64 encoded from > googlesource.com) to Looper.h and load it with 28.2 emacs -Q and it'll > infinite loop pegging one core. Thanks for the report, Chris. This is reproducible with master fd3f51b7c3a6649ee3db12d33b056b1afdbfa7e9. It might be related to cc-mode, so I've CC'd Alan. Emacs goes into an infloop while font-locking the encoded .h file. Below are some Lisp backtraces from interrupting the loop: (unsigned char *) data = 0x0000000100280ecb "skip-syntax-backward" (unsigned char *) data = 0x000000010328e580 "c-beginning-of-current-token" (unsigned char *) data = 0x000000010328f9e0 "c-update-brace-stack" (unsigned char *) data = 0x000000010328fb40 "c-brace-stack-at" (unsigned char *) data = 0x000000010328fb60 "c-bs-at-toplevel-p" (unsigned char *) data = 0x000000010328fcd0 "c-find-decl-spots" (unsigned char *) data = 0x00000001032c96d8 "c-font-lock-declarations" (unsigned char *) data = 0x0000000104b79b52 "font-lock-fontify-keywords-region" (unsigned char *) data = 0x0000000104b7f7d5 "font-lock-default-fontify-region" (unsigned char *) data = 0x00000001032fc2f8 "c-font-lock-fontify-region" (unsigned char *) data = 0x0000000104bcf23f "font-lock-fontify-region" PVEC_COMPILED (unsigned char *) data = 0x000000010027b168 "run-hook-wrapped" (unsigned char *) data = 0x0000000104b6b2f2 "jit-lock--run-functions" (unsigned char *) data = 0x0000000104b9887d "jit-lock-fontify-now" (unsigned char *) data = 0x0000000104bb05ff "jit-lock-function" (unsigned char *) data = 0x000000010027f89f "redisplay_internal (C function)" (unsigned char *) data = 0x0000000100280f1c "parse-partial-sexp" (unsigned char *) data = 0x000000010328f640 "c-syntactic-re-search-forward" (unsigned char *) data = 0x000000010328f9e0 "c-update-brace-stack" (unsigned char *) data = 0x000000010328fb40 "c-brace-stack-at" (unsigned char *) data = 0x000000010328fb60 "c-bs-at-toplevel-p" (unsigned char *) data = 0x000000010328fcd0 "c-find-decl-spots" (unsigned char *) data = 0x00000001032c96d8 "c-font-lock-declarations" (unsigned char *) data = 0x0000000104b79b52 "font-lock-fontify-keywords-region" (unsigned char *) data = 0x0000000104b7f7d5 "font-lock-default-fontify-region" (unsigned char *) data = 0x00000001032fc2f8 "c-font-lock-fontify-region" (unsigned char *) data = 0x0000000104bcf23f "font-lock-fontify-region" PVEC_COMPILED (unsigned char *) data = 0x000000010027b168 "run-hook-wrapped" (unsigned char *) data = 0x0000000104b6b2f2 "jit-lock--run-functions" (unsigned char *) data = 0x0000000104b9887d "jit-lock-fontify-now" (unsigned char *) data = 0x0000000104bb05ff "jit-lock-function" (unsigned char *) data = 0x000000010027f89f "redisplay_internal (C function)" (unsigned char *) data = 0x00000001002783c1 "re-search-forward" (unsigned char *) data = 0x000000010328f640 "c-syntactic-re-search-forward" (unsigned char *) data = 0x000000010328f9e0 "c-update-brace-stack" (unsigned char *) data = 0x000000010328fb40 "c-brace-stack-at" (unsigned char *) data = 0x000000010328fb60 "c-bs-at-toplevel-p" (unsigned char *) data = 0x000000010328fcd0 "c-find-decl-spots" (unsigned char *) data = 0x00000001032c96d8 "c-font-lock-declarations" (unsigned char *) data = 0x0000000104b79b52 "font-lock-fontify-keywords-region" (unsigned char *) data = 0x0000000104b7f7d5 "font-lock-default-fontify-region" (unsigned char *) data = 0x00000001032fc2f8 "c-font-lock-fontify-region" (unsigned char *) data = 0x0000000104bcf23f "font-lock-fontify-region" PVEC_COMPILED (unsigned char *) data = 0x000000010027b168 "run-hook-wrapped" (unsigned char *) data = 0x0000000104b6b2f2 "jit-lock--run-functions" (unsigned char *) data = 0x0000000104b9887d "jit-lock-fontify-now" (unsigned char *) data = 0x0000000104bb05ff "jit-lock-function" (unsigned char *) data = 0x000000010027f89f "redisplay_internal (C function)"