From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53343: 29.0.50; assertion failure in diff--iterate-hunks Date: Fri, 21 Jan 2022 12:07:49 +0100 Message-ID: <874k5xtkhm.fsf@gnus.org> References: <87czkpl32e.fsf@gmx.net> <878rvdkzgd.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2015"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53343@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 21 12:30:58 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 1nAs8A-0000Kb-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jan 2022 12:30:58 +0100 Original-Received: from localhost ([::1]:40066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAs89-0003P4-8l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jan 2022 06:30:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nArmx-0001Eu-Ai for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 06:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nArmw-0001yG-R7 for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 06:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nArmw-0004gY-73 for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 06:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jan 2022 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53343 X-GNU-PR-Package: emacs Original-Received: via spool by 53343-submit@debbugs.gnu.org id=B53343.164276328217911 (code B ref 53343); Fri, 21 Jan 2022 11:09:02 +0000 Original-Received: (at 53343) by debbugs.gnu.org; 21 Jan 2022 11:08:02 +0000 Original-Received: from localhost ([127.0.0.1]:60326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nArlx-0004en-Oi for submit@debbugs.gnu.org; Fri, 21 Jan 2022 06:08:02 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:33230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nArlv-0004eO-1V for 53343@debbugs.gnu.org; Fri, 21 Jan 2022 06:08:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZtVpcB9wU810fVyX84i9Zlqisby8fCYcjaMH+vocNGY=; b=q/+/kcz+2vQgZLww/nA00lgVqd O3m+/z8j987cac1IL3yIXVHALlUOBi96h+CRu+n6FcfWPV1Qxjyp7bMrAnxIN3KMZxsJWKtT7J//J 6xSsTvMAmcBJC1QvWjgbJGn6VqRpr6EStF0LqhIYT1iSqJwWsv1ZxDu3Uup9Z8dZ9lqQ=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nArlm-00027n-2J; Fri, 21 Jan 2022 12:07:52 +0100 X-Now-Playing: John Cale's _Music For A New Society_: "Broken Bird" In-Reply-To: <878rvdkzgd.fsf@gmx.net> (Stephen Berman's message of "Tue, 18 Jan 2022 13:20:18 +0100") 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:224748 Archived-At: Stephen Berman writes: > On the other hand, I get the assertion failure with the above recipe in > emacs-28 and emacs-27, and it seems unlikely that such a bug in > diff-mode would have gone unnoticed till now, so maybe the diff is > malformed. (Though if so, why does the failure not happen when visiting > the file containing the diff?) I tried (setq debug-on-error t) put the diff in a file, and got a backtrace when loading it. Debugger entered--Lisp error: (error "Unknown diff hunk type") signal(error ("Unknown diff hunk type")) error("Unknown diff hunk type") diff-hunk-text("" nil nil) diff-syntax-fontify-hunk(506 506 t) etc So I've now made that function less assertative, and that fixes this issue. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no