From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: Crash caused by insert-file-contents, both trunk (bzr 111532) and 24.2.92 affected
Date: Tue, 15 Jan 2013 19:03:33 +0200 [thread overview]
Message-ID: <8338y2qsyi.fsf@gnu.org> (raw)
In-Reply-To: <50F52EC0.2030309@yandex.ru>
> Date: Tue, 15 Jan 2013 14:26:08 +0400
> From: Dmitry Antipov <dmantipov@yandex.ru>
>
> Steps to reproduce:
>
> ./src/emacs -Q
> M-x eval-expression RET (insert-file-contents "/dev/sda")
>
> (assuming /dev/sda is a readable block device).
I get "Permission denied" on the block devices that I can find on
machines to which I have access.
But even if that wasn't so, there's no reason to assume that the same
data will be found on every hard disk everywhere in the world.
If you fetch the first 1KB from that device (using dd or whatever) to
a regular file, and do the same with that file, does the crash still
happen? If so, please post that file.
> #6 0x00000000004ce56f in char_table_ref (table=..., c=c@entry=4195088) at /home/dima/work/stuff/emacs/trunk/src/chartab.c:234
^^^^^^^^^^^^^^^^^
This preposterous value is the immediate cause of the crash. But the
question is: how did we came to that value, thinking it's a
characters. Usually, this is the result of interpreting unibyte data
as multibyte. We need to establish how did that happen in this case.
next prev parent reply other threads:[~2013-01-15 17:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 10:26 Crash caused by insert-file-contents, both trunk (bzr 111532) and 24.2.92 affected Dmitry Antipov
2013-01-15 17:03 ` Eli Zaretskii [this message]
2013-01-15 17:37 ` Dmitry Antipov
2013-01-15 18:19 ` Eli Zaretskii
2013-01-17 17:12 ` RFC on proposal fix [Re: Crash caused by insert-file-contents, both trunk (bzr 111532) and 24.2.92 affected] Dmitry Antipov
2013-01-17 17:50 ` Eli Zaretskii
2013-01-17 18:12 ` Dmitry Antipov
2013-01-18 5:11 ` Dmitry Antipov
2013-01-18 19:34 ` Eli Zaretskii
2013-01-21 8:55 ` 24.2.92 " Dmitry Antipov
2013-01-22 1:54 ` Glenn Morris
2013-01-22 4:48 ` Dmitry Antipov
2013-01-22 7:16 ` Stefan Monnier
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=8338y2qsyi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=dmantipov@yandex.ru \
--cc=emacs-devel@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).