From: Eli Zaretskii <eliz@gnu.org>
To: Petteri Hintsanen <petterih@iki.fi>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 61887@debbugs.gnu.org
Subject: bug#61887: 30.0.50; Segfault on revert-buffer-with-coding-system
Date: Wed, 01 Mar 2023 14:47:07 +0200 [thread overview]
Message-ID: <83r0u8fxkk.fsf@gnu.org> (raw)
In-Reply-To: <4118c770-78db-2174-b32f-5e328d55d58a@iki.fi> (message from Petteri Hintsanen on Tue, 28 Feb 2023 23:48:18 +0200)
> Date: Tue, 28 Feb 2023 23:48:18 +0200
> From: Petteri Hintsanen <petterih@iki.fi>
>
> After editing a binary file in nhexl-mode, calling
> revert-buffer-with-coding-system crashed Emacs. This happened initially
> on Emacs 28.2, but the current master branch crashes as well.
>
> Preparation:
>
> - Get nhexl-mode-1.5 from ELPA.
>
> - Create a test file "junk.dat" with:
>
> dd if=/dev/random of=junk.dat bs=1k count=5k
>
> or use any existing large binary file (5 MBs or more).
>
> Recipe:
>
> ./gdb --args emacs -Q
>
> In *scratch* buffer, type
>
> (add-to-list 'load-path "~/.emacs.d/elpa/nhexl-mode-1.5")
> (require 'nhexl-mode)
>
> M-x eval-buffer
>
> M-x find-file-literally junk.dat
>
> M-x nhexl-mode RET
>
> M-x nhexl-mode RET
>
> C-x RET r utf-8 RET yes RET
Thank you for your report.
Stefan, can you please look into this? It sounds like nhexl-mode
leaves an interval tree in the buffer which causes problems when
reverting non-literally. (Maybe reverting non-literally after
visiting literally, or vice versa, should dispose of all the
intervals?)
next prev parent reply other threads:[~2023-03-01 12:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-28 21:48 bug#61887: 30.0.50; Segfault on revert-buffer-with-coding-system Petteri Hintsanen
2023-03-01 12:47 ` Eli Zaretskii [this message]
2023-03-03 23:19 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-03 23:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-04 0:13 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-04 7:30 ` Eli Zaretskii
2023-09-06 0:03 ` Stefan Kangas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r0u8fxkk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=61887@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=petterih@iki.fi \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.