From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#31274: 27.0.50; xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it) == CHAR_TO_BYTE (IT_CHARPOS (*it)) Date: Thu, 26 Apr 2018 15:54:55 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524772447 8966 195.159.176.226 (26 Apr 2018 19:54:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2018 19:54:07 +0000 (UTC) To: 31274@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 26 21:54:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBmxv-0002Eo-IX for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Apr 2018 21:54:03 +0200 Original-Received: from localhost ([::1]:44241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBn02-0000QX-BE for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Apr 2018 15:56:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBmzv-0000QR-80 for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBmzq-0003Uz-3r for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:56:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBmzp-0003Ui-Vx for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBmzp-0007qp-Om for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Apr 2018 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152477251230119 (code B ref -1); Thu, 26 Apr 2018 19:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2018 19:55:12 +0000 Original-Received: from localhost ([127.0.0.1]:40705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBmz2-0007ph-5P for submit@debbugs.gnu.org; Thu, 26 Apr 2018 15:55:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBmz0-0007pV-8C for submit@debbugs.gnu.org; Thu, 26 Apr 2018 15:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBmyu-00037v-FV for submit@debbugs.gnu.org; Thu, 26 Apr 2018 15:55:05 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBmyu-00037p-CF for submit@debbugs.gnu.org; Thu, 26 Apr 2018 15:55:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBmyt-0008Qy-5w for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:55:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBmyo-000358-3v for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:55:03 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBmyn-00034V-Vc for bug-gnu-emacs@gnu.org; Thu, 26 Apr 2018 15:54:58 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w3QJsuX1014609 for ; Thu, 26 Apr 2018 15:54:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id ED5B968093; Thu, 26 Apr 2018 15:54:55 -0400 (EDT) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.9 X-NAI-Spam-Rules: 5 Rules triggered BEC_TRC1=0.4, BEC_TRC1_W_GEN_SPAM_FEATRE=0.4, GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV6273=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6273> : inlines <6592> : streams <1785174> : uri <2632163> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145771 Archived-At: Package: Emacs Version: 27.0.50 I can reproduce the above assertion failure when I do the following: % src/emacs -Q /usr/bin/perl -l .../elpa/packages/nhexl-mode/nhexl-mode.el -f nhexl-mode --eval '(setq word-wrap t)' y M-> The `y` is because nhexl-mode prompts the user to convert the buffer to unibyte and is not directly relevant: you can use find-file-literally instead and the result is the same. I used /usr/bin/perl in the above example, but I could reproduce the same crash with "any" binary executable such as /bin/gzip and src/emacs (tho with some it doesn't crash immediately). Obviously, word-wrap in a binary buffer is not very meaningful, but that doesn't justify a discrepancy between charpos and bytepos. Stefan