unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: 31274@debbugs.gnu.org
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	[thread overview]
Message-ID: <jwv8t99bv5c.fsf@iro.umontreal.ca> (raw)

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





             reply	other threads:[~2018-04-26 19:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 19:54 Stefan Monnier [this message]
2018-04-28  9:29 ` bug#31274: 27.0.50; xdisp.c:7575: Emacs fatal error: assertion failed: IT_BYTEPOS (*it) == CHAR_TO_BYTE (IT_CHARPOS (*it)) Eli Zaretskii
2018-04-28  9:47   ` Eli Zaretskii
2018-05-04 10:35 ` Noam Postavsky
2018-05-04 12:50   ` Eli Zaretskii
2019-09-26 19:29     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8t99bv5c.fsf@iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    --cc=31274@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).