GNU bug report logs - #31274
27.0.50; xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it) == CHAR_TO_BYTE (IT_CHARPOS (*it))

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stefan Monnier <monnier@HIDDEN>; Keywords: unreproducible moreinfo; dated Thu, 26 Apr 2018 19:56:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 31274 <at> debbugs.gnu.org:


Received: (at 31274) by debbugs.gnu.org; 4 May 2018 10:35:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 04 06:35:33 2018
Received: from localhost ([127.0.0.1]:48923 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fEY3p-00049m-3c
	for submit <at> debbugs.gnu.org; Fri, 04 May 2018 06:35:33 -0400
Received: from mail-io0-f171.google.com ([209.85.223.171]:33971)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fEY3l-00049V-6l
 for 31274 <at> debbugs.gnu.org; Fri, 04 May 2018 06:35:29 -0400
Received: by mail-io0-f171.google.com with SMTP id p124-v6so25094168iod.1
 for <31274 <at> debbugs.gnu.org>; Fri, 04 May 2018 03:35:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=gL3IQL3xnKQ0tYomXHJsUq+cd/vWLh9m1XI056FAozo=;
 b=ZFD4f5bGTgeMMlw17JrrQgeaLpo/l5+MqfzWQTABaMaEEebDtmpz73FpS1mDLC9dsr
 FLnbNCOoi7la4GMRyXpOcmGdmAFXsyax/aXRzJ6rZkgNN7agnfz/Wta7dIWZsHsL57rM
 8ShyXPB4px6Rk4ab4N1JPl1roq7yB0Rq6JcjIYLDxR9VUhjZ8fKfw/et7dBQTBXnL0Gl
 i+q1YEwpiC/BQUDaPD7Pk7DfHUlD0P+DH+z5mkJ/DGHze2oLlD/7LSPqRfEnhzE4ZvWE
 GS5pYtpTJZx5JBLfmPcIOIbw8pe3OCeJj6UZUEBOu9pB73DGtGlqlyi7LvJhKnncZwbE
 lN5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=gL3IQL3xnKQ0tYomXHJsUq+cd/vWLh9m1XI056FAozo=;
 b=j/LnomYD9fQDAG4eXO7tAbSMxgOlZEmp7iVQyxKxVZHtNdnrXbDr2trUeXJbNn3RAQ
 A9JiU60ylNI+WVusQrySIfydx+p3+wqhjQaBHWaaY4Ohv7HJmW4qxhoL7xMq4t44wNKs
 nS+334H5iztnasCwo6Qw2wLRXKUPZuuTRM+rxD3VqHCy3hnMzWgeyREMQx7QLYMDrKPQ
 jcu3nF0BjpOUlEGS4N6rF+UjqFIpamQv8RRxzRzVTXM9qMM2ENLDowjx2W6MUiTLinc/
 xb4J8MDfXz0WMei9GwvG5x1T/2n2sts9hVMFmNG3Mnw3+14Jo0UMtHGzTBbAx+cp3j06
 VCWQ==
X-Gm-Message-State: ALQs6tBiarC82KUK+J9tE/Z6CmHqhOz17/uwSbX4GqcEWg62Dkzvhk3H
 rkLGs7VlzEX1y5Uqhxu4kiBkAQ==
X-Google-Smtp-Source: AB8JxZrKnXYYL1dNkrk78C2vaOscPqyywmXAdxI4Dij/pj1FiUUOrEFHY31mZn44GPeFhvLf4PyLlw==
X-Received: by 2002:a6b:298f:: with SMTP id
 p137-v6mr29913524iop.288.1525430123562; 
 Fri, 04 May 2018 03:35:23 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 x189-v6sm1365707ite.2.2018.05.04.03.35.22
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 04 May 2018 03:35:22 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#31274: 27.0.50;
 xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it)
 == CHAR_TO_BYTE (IT_CHARPOS (*it))
References: <jwv8t99bv5c.fsf@HIDDEN>
Date: Fri, 04 May 2018 06:35:22 -0400
In-Reply-To: <jwv8t99bv5c.fsf@HIDDEN> (Stefan Monnier's message of
 "Thu, 26 Apr 2018 15:54:55 -0400")
Message-ID: <87o9hvn1xx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31274
Cc: 31274 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> 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 couldn't reproduce the assert failure, and I didn't get the unibyte
prompt either.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31274; Package emacs. Full text available.
Added tag(s) moreinfo and unreproducible. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31274 <at> debbugs.gnu.org:


Received: (at 31274) by debbugs.gnu.org; 28 Apr 2018 09:48:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 28 05:48:06 2018
Received: from localhost ([127.0.0.1]:41595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fCMSc-0006Pl-1z
	for submit <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:48:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42810)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fCMSa-0006PI-Ku
 for 31274 <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:48:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fCMSQ-00087J-DS
 for 31274 <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:47:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51349)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fCMSQ-00087F-9Z; Sat, 28 Apr 2018 05:47:54 -0400
Received: from [176.228.60.248] (port=1990 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fCMSP-0005Rx-7r; Sat, 28 Apr 2018 05:47:53 -0400
Date: Sat, 28 Apr 2018 12:47:36 +0300
Message-Id: <83d0yju0g7.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: monnier@HIDDEN
In-reply-to: <83h8nvu19w.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 28
 Apr 2018 12:29:47 +0300)
Subject: Re: bug#31274: 27.0.50;
 xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it)
 == CHAR_TO_BYTE (IT_CHARPOS (*it))
References: <jwv8t99bv5c.fsf@HIDDEN> <83h8nvu19w.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 31274
Cc: 31274 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> Date: Sat, 28 Apr 2018 12:29:47 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 31274 <at> debbugs.gnu.org
> 
> I'm guessing some particular byte sequence present in your binaries
> triggers this.

Or maybe you have local changes that are responsible.

> P.S.  I frequently wonder why veteran experienced users omit crucial
> information                   ^^^^^^^^^^^^^^^^^^^^^^^^^

Let alone veteran experienced developers.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31274; Package emacs. Full text available.

Message received at 31274 <at> debbugs.gnu.org:


Received: (at 31274) by debbugs.gnu.org; 28 Apr 2018 09:30:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 28 05:30:18 2018
Received: from localhost ([127.0.0.1]:41586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fCMBO-00060o-BK
	for submit <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:30:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40324)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fCMBM-00060b-Iy
 for 31274 <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:30:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fCMBD-0002Ad-DU
 for 31274 <at> debbugs.gnu.org; Sat, 28 Apr 2018 05:30:11 -0400
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 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51194)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fCMBD-0002AZ-AC; Sat, 28 Apr 2018 05:30:07 -0400
Received: from [176.228.60.248] (port=1898 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fCMBA-0007Gn-Uf; Sat, 28 Apr 2018 05:30:05 -0400
Date: Sat, 28 Apr 2018 12:29:47 +0300
Message-Id: <83h8nvu19w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-reply-to: <jwv8t99bv5c.fsf@HIDDEN> (message from Stefan Monnier
 on Thu, 26 Apr 2018 15:54:55 -0400)
Subject: Re: bug#31274: 27.0.50;
 xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it)
 == CHAR_TO_BYTE (IT_CHARPOS (*it))
References: <jwv8t99bv5c.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 31274
Cc: 31274 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Stefan Monnier <monnier@HIDDEN>
> Date: Thu, 26 Apr 2018 15:54:55 -0400
> 
> 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->

I cannot reproduce this, with today's master of Emacs and of ELPA.  I
tried on GNU/Linux (in -nw) and on MS-Windows (in a GUI session), and
both didn't trigger the assertion (tried with 3 executables, including
those you mentioned).  I'm guessing some particular byte sequence
present in your binaries triggers this.  So please provide more
details.

P.S.  I frequently wonder why veteran experienced users omit crucial
information from their bug reports, such as the C backtrace in this
case, that is very easy for them to collect.  Please don't ever assume
that something which is 100% reproducible on your system can be
similarly easily reproduced on any other system, and that therefore
those details are an unnecessary luxury.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31274; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2018 19:55:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 26 15:55:12 2018
Received: from localhost ([127.0.0.1]:40705 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fBmz2-0007ph-5P
	for submit <at> debbugs.gnu.org; Thu, 26 Apr 2018 15:55:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1fBmz0-0007pV-8C
 for submit <at> debbugs.gnu.org; Thu, 26 Apr 2018 15:55:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1fBmyu-00037v-FV
 for submit <at> debbugs.gnu.org; Thu, 26 Apr 2018 15:55:05 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
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 <monnier@HIDDEN>)
 id 1fBmyu-00037p-CF
 for submit <at> debbugs.gnu.org; Thu, 26 Apr 2018 15:55:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47729)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1fBmyt-0008Qy-5w
 for bug-gnu-emacs@HIDDEN; Thu, 26 Apr 2018 15:55:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1fBmyo-000358-3v
 for bug-gnu-emacs@HIDDEN; Thu, 26 Apr 2018 15:55:03 -0400
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43414)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1fBmyn-00034V-Vc
 for bug-gnu-emacs@HIDDEN; Thu, 26 Apr 2018 15:54:58 -0400
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 <bug-gnu-emacs@HIDDEN>; Thu, 26 Apr 2018 15:54:56 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id ED5B968093; Thu, 26 Apr 2018 15:54:55 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 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: <jwv8t99bv5c.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31274; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 4 May 2018 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.