From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Crash when loading GIF images Date: Tue, 31 Dec 2013 10:50:15 +0200 Message-ID: <83zjnhz9o8.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1388479848 9297 80.91.229.3 (31 Dec 2013 08:50:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Dec 2013 08:50:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Elias =?iso-8859-1?Q?M=E5rtenson?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 31 09:50:54 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vxv2L-0005PE-45 for ged-emacs-devel@m.gmane.org; Tue, 31 Dec 2013 09:50:53 +0100 Original-Received: from localhost ([::1]:32873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vxv2K-0007VP-Nd for ged-emacs-devel@m.gmane.org; Tue, 31 Dec 2013 03:50:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vxv2B-0007VK-Pd for emacs-devel@gnu.org; Tue, 31 Dec 2013 03:50:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vxv24-0003C4-Dm for emacs-devel@gnu.org; Tue, 31 Dec 2013 03:50:43 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:64865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vxv24-0003Bw-5Q for emacs-devel@gnu.org; Tue, 31 Dec 2013 03:50:36 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MYN00A00XC8XD00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Tue, 31 Dec 2013 10:50:24 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MYN00AUKXVZNBC0@a-mtaout21.012.net.il>; Tue, 31 Dec 2013 10:50:24 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167009 Archived-At: > Date: Tue, 31 Dec 2013 16:18:35 +0800 > From: Elias M=E5rtenson >=20 > Since at least several months, after compiling Emacs from source on= Arch > Linux, the entire Emacs session crashes when displaying any GIF ima= ge. The > stack trace shows the crash happening inside giflib. >=20 > 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 o= pen any > GIF file and it immediately crashes. >=20 > 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 us= e 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.