unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Elias Mårtenson" <lokedhs@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Crash when loading GIF images
Date: Tue, 31 Dec 2013 10:50:15 +0200	[thread overview]
Message-ID: <83zjnhz9o8.fsf@gnu.org> (raw)
In-Reply-To: <CADtN0W+QvymQbaAkS-h3x7pMft2VQsNCT8fU3Niaz=d061HdmA@mail.gmail.com>

> Date: Tue, 31 Dec 2013 16:18:35 +0800
> From: Elias Mårtenson <lokedhs@gmail.com>
> 
> Since at least several months, after compiling Emacs from source on Arch
> Linux, the entire Emacs session crashes when displaying any GIF image. The
> stack trace shows the crash happening inside giflib.
> 
> Forcing Emacs to build with libungif instead fixes the problem, so it has
> something to do with how Emacs uses giflib.

What kind of GIF library did you use before this started to happen?
Was it an older version of giflib, or libungif?

> Reproducing the error is very easy for me. All I have to do is to open any
> GIF file and it immediately crashes.
> 
> The version of giflib in my release of Arch Linux is: 5.0.5

Are you sure the header files you used for building Emacs against
giflib are consistent with the library?  Latest versions of giflib use
different signatures of several functions used by Emacs, creating a
binary incompatibility with previous versions, so if you are using
headers that specify old signatures, you will get crashes.

FWIW, I'm using giflib 5.0.5 (not on GNU/Linux, though) with Emacs
without any problems.




  reply	other threads:[~2013-12-31  8:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-31  8:18 Crash when loading GIF images Elias Mårtenson
2013-12-31  8:50 ` Eli Zaretskii [this message]
2013-12-31  9:09   ` Elias Mårtenson
2013-12-31 19:26     ` Glenn Morris
2014-01-01 13:47       ` Elias Mårtenson

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=83zjnhz9o8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lokedhs@gmail.com \
    /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).