From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 23 21:46:46 2019 Received: (at submit) by debbugs.gnu.org; 24 Jan 2019 02:46:46 +0000 Received: from localhost ([127.0.0.1]:43192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmV2T-0004FB-BA for submit@debbugs.gnu.org; Wed, 23 Jan 2019 21:46:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmLKB-0004a1-Nw for submit@debbugs.gnu.org; Wed, 23 Jan 2019 11:24:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:47632) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmLK5-0004cZ-11 for submit@debbugs.gnu.org; Wed, 23 Jan 2019 11:24:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmLK3-0000ZV-TT for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:24:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmLK2-0004aG-S4 for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:24:15 -0500 Received: from smtp106.iad3a.emailsrvr.com ([173.203.187.106]:42824) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmLK2-0004Y3-Jh for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2019 11:24:14 -0500 Received: from smtp6.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp6.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 2F22D59ED for ; Wed, 23 Jan 2019 11:24:11 -0500 (EST) X-Auth-ID: no-reply@precisiondatacenters.com Received: by smtp6.relay.iad3a.emailsrvr.com (Authenticated sender: no-reply-AT-precisiondatacenters.com) with ESMTPSA id F136359E8 for ; Wed, 23 Jan 2019 11:24:09 -0500 (EST) X-Sender-Id: no-reply@precisiondatacenters.com Received: from customer.precisiondatacenters.com ([UNAVAILABLE]. [170.75.240.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:465 (trex/5.7.12); Wed, 23 Jan 2019 11:24:11 -0500 Received: by customer.precisiondatacenters.com (sSMTP sendmail emulation); Wed, 23 Jan 2019 10:24:09 -0600 From: Michael Menefee To: bug-gnu-emacs@gnu.org Subject: 26.1; locking up Date: Wed, 23 Jan 2019 10:24:09 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 173.203.187.106 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Editing a C header file, I type '#define AVL_iter(' and it locks up consistently and has to be killed from another terminal, with CPU at 100%. In GNU Emacs 26.1 (build 1, amd64-portbld-freebsd11.2) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. avl.h has auto save data; consider M-x recover-this-file Makin [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mpmenefee[at]gmail.com) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Jan 2019 21:46:44 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Editing a C header file, I type '#define AVL_iter(' and it locks up consistently and has to be killed from another terminal, with CPU at 100%. In GNU Emacs 26.1 (build 1, amd64-portbld-freebsd11.2) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. avl.h has auto save data; consider M-x recover-this-file Making completion list... Configured using: 'configure --disable-build-details --localstatedir=/var --with-gameuser=games:games --with-sound=no --without-cairo --without-dbus --without-gconf --without-gif --without-gsettings --with-x-toolkit=no --without-jpeg --without-lcms2 --without-m17n-flt --without-imagemagick --without-libotf --without-png --without-toolkit-scroll-bars --without-rsvg --without-tiff --without-x --without-xim --without-xpm --without-xwidgets --enable-acl --without-cairo --without-dbus --without-gconf --without-gif --with-gnutls --without-gsettings --without-jpeg --with-json --with-file-notification=kqueue --without-lcms2 --without-m17n-flt --without-imagemagick --with-mailutils --with-modules --without-libotf --without-png --without-toolkit-scroll-bars --without-rsvg --with-threads --without-tiff --without-xft --without-xim --with-xml2 --without-xpm --without-xwidgets --with-x-toolkit=no --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules --infodir=/usr/local/share/emacs/info/ --build=amd64-portbld-freebsd11.2 'CFLAGS=-O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing ' 'CPPFLAGS=-isystem /usr/local/include' 'LDFLAGS= -fstack-protector -L/usr/local/lib '' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES THREADS Important settings: locale-coding-system: nil Major mode: C/*l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail tool-bar rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt cl-loaddefs cl-lib term/xterm xterm time-date elec-pair disp-table mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue multi-tty make-network-process emacs) Memory information: ((conses 16 113912 7715) (symbols 48 21664 1) (miscs 40 37 117) (strings 32 33281 1470) (string-bytes 1 1017633) (vectors 16 14418) (vector-slots 8 469218 6278) (floats 8 50 318) (intervals 56 522 258) (buffers 992 13)) From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 09:46:08 2019 Received: (at 34186) by debbugs.gnu.org; 24 Jan 2019 14:46:08 +0000 Received: from localhost ([127.0.0.1]:43415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmgGe-0000nf-FA for submit@debbugs.gnu.org; Thu, 24 Jan 2019 09:46:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmgGd-0000nM-Al for 34186@debbugs.gnu.org; Thu, 24 Jan 2019 09:46:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmgGY-0004ZS-5S; Thu, 24 Jan 2019 09:46:02 -0500 Received: from [176.228.60.248] (port=3493 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gmgGX-0001zI-Pf; Thu, 24 Jan 2019 09:46:02 -0500 Date: Thu, 24 Jan 2019 16:45:56 +0200 Message-Id: <83munq6rmj.fsf@gnu.org> From: Eli Zaretskii To: Michael Menefee In-reply-to: (message from Michael Menefee on Wed, 23 Jan 2019 10:24:09 -0600) Subject: Re: bug#34186: 26.1; locking up References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34186 Cc: 34186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Michael Menefee > Date: Wed, 23 Jan 2019 10:24:09 -0600 > > Editing a C header file, I type > '#define AVL_iter(' and it locks up consistently and has to be killed > from another terminal, with CPU at 100%. I cannot reproduce this. Does the buffer contain anything else in addition to the text you've shown? Does it happen in "emacs -Q"? I invoked "emacs -Q", then typed C-x C-f headerhang.h #define AVL_iter( At that point, Emacs was responsive as I'd expect. Are you doing the same to reproduce the problem? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 11:02:43 2019 Received: (at 34186) by debbugs.gnu.org; 24 Jan 2019 16:02:44 +0000 Received: from localhost ([127.0.0.1]:44177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmhSl-0002tU-Ev for submit@debbugs.gnu.org; Thu, 24 Jan 2019 11:02:43 -0500 Received: from mail-vk1-f177.google.com ([209.85.221.177]:41735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmgOW-0000zf-8u for 34186@debbugs.gnu.org; Thu, 24 Jan 2019 09:54:16 -0500 Received: by mail-vk1-f177.google.com with SMTP id t127so1374645vke.8 for <34186@debbugs.gnu.org>; Thu, 24 Jan 2019 06:54:16 -0800 (PST) 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=GNxF3BFt4kIlg94UkbqZI0sS5W8xP0uCv7D9osqHZgk=; b=ZzNrE5mAwzqHTgx5GiYa3cXB75ptewcutH+UugKuYMRdv0EMqjnNmNCp3fbs5bgwa6 G4urFdIkn7xiX5875WzBsB942rkb47lgz+gcbwfOFG7iHaTghQLcoKOe1Zdux6z+tQwD snIu1n5Rr8H2OGjtZtw3O8xrEtmHfD4ot/Ibb2NAbG19oNcK5LVbVKzCqXFL/YrTD+E9 aUqhPdPR8zUrqwEzQtF4gXNWeBBExYH3cwJAnJjQFK5wX5wABw9EA6NG9fp5E1bZ8rY2 HE8ZCrviFm6oFfFOv0m4YxwkEJvQFaK6vU5rJBiPGPc0hrrejcSonjp659+fp3uPdnHI oOnA== 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=GNxF3BFt4kIlg94UkbqZI0sS5W8xP0uCv7D9osqHZgk=; b=mjHqBAi6wcYOBBV5iZmugh9hZFY0hvYNNdyQLk0jSl8m9GZkwzs9LhPqHUvmD7djGt ay8tpJak5uEd6qLUwA6L4Yyx0sex8PEjHdG2v/T6G1XHpZ+MxZA8sKDdMKgaRgBj43Jm xCiTW8mT9OlAKTamytEHyVzg5uJNVsn5dlI59Sfof4LcG0Ynj8LNjgFhc3XskD1XUz1v +hHug/U+dISHdgiyAE3ZNB5oO2hmtRZEAgWi9dbNtXfrYkU3MpzqJ7A+77TPYkg0UsIc 18Gi9KIL02vZirSfRvnR/IiTwxQlQavwxaUEf76nO4swEG26Zub2igcKwF1rXFRGBNw5 ep8g== X-Gm-Message-State: AJcUukeirpkXitosx8fnSLNkqrYQarunDaIsWBRUAW4rl+jFMH2ia2nv j0mf+6jHdTR23c7Wn03x7eBGR/JlVFa2tJjBolt6VA== X-Google-Smtp-Source: ALg8bN4PwUcawn8P/sRH72OKl+m9eQUxI3rNIxO9wVMQe6JedRuNojlgvdzrK35+Z/Z4FjhzeAUQnVk2U0VaRm/pHzw= X-Received: by 2002:a1f:acd7:: with SMTP id v206mr2779714vke.5.1548341650562; Thu, 24 Jan 2019 06:54:10 -0800 (PST) MIME-Version: 1.0 References: <83munq6rmj.fsf@gnu.org> In-Reply-To: <83munq6rmj.fsf@gnu.org> From: Michael Menefee Date: Thu, 24 Jan 2019 08:53:58 -0600 Message-ID: Subject: Re: bug#34186: 26.1; locking up To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000012a45705803562db" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34186 X-Mailman-Approved-At: Thu, 24 Jan 2019 11:02:40 -0500 Cc: 34186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000012a45705803562db Content-Type: text/plain; charset="UTF-8" Hi, I narrowed it down to a "#define anything(" as the last line in the buffer will consistently lock up for me. I'm sure it's the c mode not resolving something right. I will experiment more and send you the results if I can reproduce with minimal buffer content. Thanks On Thu, Jan 24, 2019, 8:46 AM Eli Zaretskii > From: Michael Menefee > > Date: Wed, 23 Jan 2019 10:24:09 -0600 > > > > Editing a C header file, I type > > '#define AVL_iter(' and it locks up consistently and has to be killed > > from another terminal, with CPU at 100%. > > I cannot reproduce this. Does the buffer contain anything else in > addition to the text you've shown? Does it happen in "emacs -Q"? > > I invoked "emacs -Q", then typed > > C-x C-f headerhang.h > #define AVL_iter( > > At that point, Emacs was responsive as I'd expect. Are you doing the > same to reproduce the problem? > > Thanks. > --00000000000012a45705803562db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I narrow= ed it down to a "#define anything(" as the last line in the buffe= r will consistently lock up for me.=C2=A0 I'm sure it's the c mode = not resolving something right.=C2=A0 I will experiment more and send you th= e results if I can reproduce with minimal buffer content.

Thanks

On Thu, Jan 24, 2019, 8:46 AM Eli Zaretskii <eliz@gnu.org wrote:
> From: Michael Menefee <mpmenefee@gmail.com&= gt;
> Date: Wed, 23 Jan 2019 10:24:09 -0600
>
> Editing a C header file, I type
> '#define AVL_iter(' and it locks up consistently and has to be= killed
> from another terminal, with CPU at 100%.

I cannot reproduce this.=C2=A0 Does the buffer contain anything else in
addition to the text you've shown?=C2=A0 Does it happen in "emacs = -Q"?

I invoked "emacs -Q", then typed

=C2=A0 C-x C-f headerhang.h
=C2=A0 #define AVL_iter(

At that point, Emacs was responsive as I'd expect.=C2=A0 Are you doing = the
same to reproduce the problem?

Thanks.
--00000000000012a45705803562db-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 11:33:18 2019 Received: (at 34186) by debbugs.gnu.org; 24 Jan 2019 16:33:18 +0000 Received: from localhost ([127.0.0.1]:44190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmhwM-0003h9-Em for submit@debbugs.gnu.org; Thu, 24 Jan 2019 11:33:18 -0500 Received: from mail-vs1-f45.google.com ([209.85.217.45]:34744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmhwK-0003gx-JZ for 34186@debbugs.gnu.org; Thu, 24 Jan 2019 11:33:17 -0500 Received: by mail-vs1-f45.google.com with SMTP id y27so3920240vsi.1 for <34186@debbugs.gnu.org>; Thu, 24 Jan 2019 08:33:16 -0800 (PST) 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=YLSzAqkgbqW/zb+uUXisx1ouLhTvhNxOQRKxkNG7U6Y=; b=HwFiS+TLa8nI9CTzuVRA4AKRBnTIlam7Zts7clX7yOMhxJJMM9AxhByYSJiZalEOIN W1Y7Ft+Tt0UA/aFdDPh+HTkv71O/2tZ23Mr4ggaXNEKgQC2JCO2E7rWj+XuFGX4a/bHy L/QQduLnLqx+JK8AyhXGpu8IZULGVT2H7nCWuFtBecODfC5WpmjamxMG0QXxyo1khTs3 JqmV6bScNmI81FZz+rO21qAIwZwcZOeF0t2WlGKyJQN7vP/W589OMrlT3BBXyDFzdKX0 S/KB0NPJcZJfUYoAXjwmVYHeDvS2watkJ+PJXR6nug+mHa4AOmidXhqDPfwXG534pkNK lu/A== 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=YLSzAqkgbqW/zb+uUXisx1ouLhTvhNxOQRKxkNG7U6Y=; b=kTJxFvJIUPAdelFDe7Omy6+96vbsP/Kh0rPaVlEGckGQS5AN/nX/rah4t2br8BToya fLz4nGLo8kHg7ixsyxUs3TCw2CZ85368g7N48I5pXdhkoPKHyIkl4xlPGTBFwpaVlXFL hSdWU+kRDWUfCysxPjXLyIXFe/bSO+R76R9AH0hB50EbfRMcLqtZb3M9MP2hj/Mv7zJD WTUFc2aEu/P4FljBAeG2xRfoKkLyNDyos3bTnFewM15jrA9Qsi5RmyAZ2lasvfPqOxe/ dvAuFvYNJ6YKqQfOzD74cZfQFWxSp/yrbC+38KYDaQw9SjS+lp49Y90FPBpEQZXtc8YW oLqA== X-Gm-Message-State: AJcUukeXK3ODP0I60b39mjwVV3UGssgYtRwbPb6/jsS6e8ox/MCn3/hE nLXuakGR6uWaVHjL3/XMT5HSsGSxR7CRwc/+NYKDQupZ X-Google-Smtp-Source: ALg8bN76cRZ7xAKR9N8mxcyRsYyNOCuTe4fb9XdYE8uoXm8reHFPZcNdIc2qpYcIzzK/0cPBiA61SAp+YHxnVsrIQ0o= X-Received: by 2002:a67:88c9:: with SMTP id k192mr2965192vsd.103.1548347590569; Thu, 24 Jan 2019 08:33:10 -0800 (PST) MIME-Version: 1.0 References: <83munq6rmj.fsf@gnu.org> In-Reply-To: From: Michael Menefee Date: Thu, 24 Jan 2019 10:32:34 -0600 Message-ID: Subject: Re: bug#34186: 26.1; locking up To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000001ff2c4058036c45d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34186 Cc: 34186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000001ff2c4058036c45d Content-Type: text/plain; charset="UTF-8" I have found the minimum necessary to consistently reproduce. copy/paste this into *something.c* to see if you get same results: void *AVL_first(AVL_t *); void *AVL_last(AVL_t *); #define (<--- locks up with pressing open parenthesis Thanks On Thu, Jan 24, 2019 at 8:53 AM Michael Menefee wrote: > Hi, > > I narrowed it down to a "#define anything(" as the last line in the buffer > will consistently lock up for me. I'm sure it's the c mode not resolving > something right. I will experiment more and send you the results if I can > reproduce with minimal buffer content. > > Thanks > > On Thu, Jan 24, 2019, 8:46 AM Eli Zaretskii >> > From: Michael Menefee >> > Date: Wed, 23 Jan 2019 10:24:09 -0600 >> > >> > Editing a C header file, I type >> > '#define AVL_iter(' and it locks up consistently and has to be killed >> > from another terminal, with CPU at 100%. >> >> I cannot reproduce this. Does the buffer contain anything else in >> addition to the text you've shown? Does it happen in "emacs -Q"? >> >> I invoked "emacs -Q", then typed >> >> C-x C-f headerhang.h >> #define AVL_iter( >> >> At that point, Emacs was responsive as I'd expect. Are you doing the >> same to reproduce the problem? >> >> Thanks. >> > --0000000000001ff2c4058036c45d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have found the minimum= necessary to consistently reproduce.=C2=A0 copy/paste this into somethi= ng.c to see if you get same results:

void *AVL_first(AVL_t *);
void *AVL_last(AVL_t *);
#define (<--- locks = up with pressing open parenthesis

Thanks=


On Thu, Jan 24, 2019 at 8:53 AM Michael Menefee <mpmenefee@gmail.com> wrote:
Hi,

I narrowed it down to a "#defin= e anything(" as the last line in the buffer will consistently lock up = for me.=C2=A0 I'm sure it's the c mode not resolving something righ= t.=C2=A0 I will experiment more and send you the results if I can reproduce= with minimal buffer content.

Thanks

On = Thu, Jan 24, 2019, 8:46 AM Eli Zaretskii <eliz@gnu.org wrote:
> From: Michael Menefee <mpmenefee@gmail= .com>
> Date: Wed, 23 Jan 2019 10:24:09 -0600
>
> Editing a C header file, I type
> '#define AVL_iter(' and it locks up consistently and has to be= killed
> from another terminal, with CPU at 100%.

I cannot reproduce this.=C2=A0 Does the buffer contain anything else in
addition to the text you've shown?=C2=A0 Does it happen in "emacs = -Q"?

I invoked "emacs -Q", then typed

=C2=A0 C-x C-f headerhang.h
=C2=A0 #define AVL_iter(

At that point, Emacs was responsive as I'd expect.=C2=A0 Are you doing = the
same to reproduce the problem?

Thanks.
--0000000000001ff2c4058036c45d-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 12:41:47 2019 Received: (at 34186) by debbugs.gnu.org; 24 Jan 2019 17:41:47 +0000 Received: from localhost ([127.0.0.1]:44206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmj0d-0005TA-47 for submit@debbugs.gnu.org; Thu, 24 Jan 2019 12:41:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmj0c-0005Sy-5W for 34186@debbugs.gnu.org; Thu, 24 Jan 2019 12:41:46 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmj0K-00056W-Pt; Thu, 24 Jan 2019 12:41:32 -0500 Received: from [176.228.60.248] (port=2592 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gmj0I-0003Sk-SG; Thu, 24 Jan 2019 12:41:28 -0500 Date: Thu, 24 Jan 2019 19:41:21 +0200 Message-Id: <83imye6ji6.fsf@gnu.org> From: Eli Zaretskii To: Michael Menefee , Alan Mackenzie In-reply-to: (message from Michael Menefee on Thu, 24 Jan 2019 10:32:34 -0600) Subject: Re: bug#34186: 26.1; locking up References: <83munq6rmj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34186 Cc: 34186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Michael Menefee > Date: Thu, 24 Jan 2019 10:32:34 -0600 > Cc: 34186@debbugs.gnu.org > > I have found the minimum necessary to consistently reproduce. copy/paste this into something.c to see if you > get same results: > > void *AVL_first(AVL_t *); > void *AVL_last(AVL_t *); > #define (<--- locks up with pressing open parenthesis Thanks, now I can reproduce this. Alan, please take a look. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 24 13:07:17 2019 Received: (at 34186) by debbugs.gnu.org; 24 Jan 2019 18:07:17 +0000 Received: from localhost ([127.0.0.1]:44220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmjPJ-00065i-2Q for submit@debbugs.gnu.org; Thu, 24 Jan 2019 13:07:17 -0500 Received: from colin.muc.de ([193.149.48.1]:56203 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gmjPF-00065Y-LZ for 34186@debbugs.gnu.org; Thu, 24 Jan 2019 13:07:14 -0500 Received: (qmail 99254 invoked by uid 3782); 24 Jan 2019 18:07:11 -0000 Received: from acm.muc.de (p4FE15DBD.dip0.t-ipconnect.de [79.225.93.189]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 24 Jan 2019 19:07:10 +0100 Received: (qmail 11366 invoked by uid 1000); 24 Jan 2019 18:06:53 -0000 Date: Thu, 24 Jan 2019 18:06:53 +0000 To: Eli Zaretskii Subject: Re: bug#34186: 26.1; locking up Message-ID: <20190124180653.GA11306@ACM> References: <83munq6rmj.fsf@gnu.org> <83imye6ji6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83imye6ji6.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34186 Cc: Michael Menefee , 34186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Eli. On Thu, Jan 24, 2019 at 19:41:21 +0200, Eli Zaretskii wrote: > > From: Michael Menefee > > Date: Thu, 24 Jan 2019 10:32:34 -0600 > > Cc: 34186@debbugs.gnu.org > > I have found the minimum necessary to consistently reproduce. copy/paste this into something.c to see if you > > get same results: > > void *AVL_first(AVL_t *); > > void *AVL_last(AVL_t *); > > #define (<--- locks up with pressing open parenthesis > Thanks, now I can reproduce this. Alan, please take a look. Will do! Just as a matter of interest, it is not the same bug as #33784 (which only occurred in the master branch). -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 25 11:30:41 2019 Received: (at 34186-done) by debbugs.gnu.org; 25 Jan 2019 16:30:41 +0000 Received: from localhost ([127.0.0.1]:45449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gn4NM-0008D6-Nf for submit@debbugs.gnu.org; Fri, 25 Jan 2019 11:30:40 -0500 Received: from colin.muc.de ([193.149.48.1]:19981 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gn4NJ-0008Cs-Sl for 34186-done@debbugs.gnu.org; Fri, 25 Jan 2019 11:30:38 -0500 Received: (qmail 39636 invoked by uid 3782); 25 Jan 2019 16:30:36 -0000 Received: from acm.muc.de (p4FE15EE3.dip0.t-ipconnect.de [79.225.94.227]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 25 Jan 2019 17:30:35 +0100 Received: (qmail 21156 invoked by uid 1000); 25 Jan 2019 16:30:07 -0000 Date: Fri, 25 Jan 2019 16:30:07 +0000 To: Eli Zaretskii , Michael Menefee Subject: Re: bug#34186: 26.1; locking up Message-ID: <20190125163007.GA21111@ACM> References: <83munq6rmj.fsf@gnu.org> <83imye6ji6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83imye6ji6.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34186-done Cc: 34186-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Eli and Michael. On Thu, Jan 24, 2019 at 19:41:21 +0200, Eli Zaretskii wrote: > > From: Michael Menefee > > Date: Thu, 24 Jan 2019 10:32:34 -0600 > > Cc: 34186@debbugs.gnu.org > > I have found the minimum necessary to consistently reproduce. copy/paste this into something.c to see if you > > get same results: > > void *AVL_first(AVL_t *); > > void *AVL_last(AVL_t *); > > #define (<--- locks up with pressing open parenthesis > Thanks, now I can reproduce this. Alan, please take a look. I've committed the following fix to the emacs-26 branch. I'm closing the bug. @Michael: This patch should apply cleanly to your Emacs 26.1 version (in directory .../emacs/lisp/progmodes). If you apply it, please byte-compile the file before using it. (If you want any help with the patching and/or byte-compiling, feel free to send me private email.) commit 9078f34e84178553cd59bc03ac1b58cb56038436 Author: Alan Mackenzie Date: Fri Jan 25 16:14:00 2019 +0000 Fix a loop in c-fl-decl-start. This fixes bug #34186. * lisp/progmodes/cc-mode.el (c-fl-decl-start) In the pair of operations c-syntactic-skip-backward and c-forward-syntactic-ws, ensure the latter doesn't come back to the position before the former, and break out of the enclosing loop if it does. diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 8cbb4e8612..5283cfea6e 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -1487,6 +1487,7 @@ c-fl-decl-start ;; lock context (etc.) fontification. (goto-char pos) (let ((lit-start (c-literal-start)) + old-pos (new-pos pos) capture-opener bod-lim bo-decl) @@ -1509,12 +1510,14 @@ c-fl-decl-start (while ;; Go to a less nested declaration each time round this loop. (and + (setq old-pos (point)) (c-syntactic-skip-backward "^;{}" bod-lim t) (> (point) bod-lim) (progn (c-forward-syntactic-ws) ;; Have we got stuck in a comment at EOB? (not (and (eobp) (c-literal-start)))) + (< (point) old-pos) (progn (setq bo-decl (point)) (or (not (looking-at c-protection-key)) (c-forward-keyword-clause 1))) -- Alan Mackenzie (Nuremberg, Germany). From unknown Sun Jun 15 10:56:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 23 Feb 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator