From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs hangs! [trunk, bidi, docview]
Date: Mon, 10 May 2010 21:56:33 +0200 [thread overview]
Message-ID: <87vdavh6oe.fsf@escher.home> (raw)
In-Reply-To: <83wrvbpqja.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 May 2010 21:20:25 +0300")
[-- Attachment #1: Type: text/plain, Size: 2265 bytes --]
On Mon, 10 May 2010 21:20:25 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Stephen Berman <stephen.berman@gmx.net>
>> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>> Date: Sun, 09 May 2010 23:25:53 +0200
>>
>> I just tried this recipe on GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+
>> Version 2.18.6) of 2010-05-08 on escher with a JPG file and Emacs dumped
>> core. The gdb backtrace from the core file is attached.
>
> Could you please post that JPG file as an attachment? I don't see a
> crash, only an infloop, so perhaps there's more than one problem, or
> maybe the bug is data-dependent.
>
> I know what the problem is, at least what's responsible for the
> infloop, and will fix it soon in the repository. But please post the
> file that crashes nonetheless, so I could make sure there are no
> further problems.
I think you're right that the crash is data-dependent: I tried the
recipe on several other JPG and PDF files, and they all made Emacs
infloop but not abort. I then experimented with the file that induced
the crash (of which file(1) says: JPEG image data, EXIF standard 2.21):
- First I found that the crash still happens when Emacs tries to visit a
file consisting of only a fairly small initial segment of the original
JPG file.
- Then I tried even smaller initial segments, but they all only made
Emacs infloop, not crash.
- Then I tried a non-initial segment, starting from the end position of
the largest initial segment that induced the infloop but not the crash,
and ending with the end of the segment that induced the crash, and
voila! -- Emacs crashed. The backtrace I got from the core file was
essentially the same as the one I posted to the list, modulo values of
variables.
- Then I renamed this file (the non-initial segment that induced a
crash) from "test8.jpg" to simply "test", ran the recipe -- and Emacs
successfully visited the file, no crash, no hang.
So I've attached this file, which again, is a small non-initial segment
of a JPG file (and as such not recognized by file(1) as a JPG file);
(only) if its name ends in .jpg and (setq-default
bidi-display-reordering t) is evaluated, Emacs crashes upon visiting
this file. I hope it helps you shed some light on the problem.
Steve Berman
[-- Attachment #2: crash inducing file --]
[-- Type: image/jpeg, Size: 3898 bytes --]
next prev parent reply other threads:[~2010-05-10 19:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-08 19:48 Emacs hangs! [trunk, bidi, docview] Angelo Graziosi
2010-05-08 20:05 ` Eli Zaretskii
2010-05-08 20:51 ` Angelo Graziosi
2010-05-09 21:25 ` Stephen Berman
2010-05-10 18:20 ` Eli Zaretskii
2010-05-10 19:56 ` Stephen Berman [this message]
2010-05-10 18:44 ` Eli Zaretskii
2010-05-10 22:41 ` Angelo Graziosi
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=87vdavh6oe.fsf@escher.home \
--to=stephen.berman@gmx.net \
--cc=eliz@gnu.org \
--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).