GNU bug report logs - #22289
24.3; ImageMagick-related crash with .art file

Previous Next

Package: emacs;

Reported by: Alex Burr <ajb44.geo <at> yahoo.com>

Date: Sat, 2 Jan 2016 02:52:02 UTC

Severity: normal

Merged with 34346

Found in versions 24.3, 26.1

Fixed in version 26.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22289 in the body.
You can then email your comments to 22289 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 02:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Burr <ajb44.geo <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 02 Jan 2016 02:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Burr <ajb44.geo <at> yahoo.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 24.3; Emacs crashes on loading file
Date: Fri, 1 Jan 2016 16:14:53 +0000 (UTC)
[Message part 1 (text/plain, inline)]
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

1) loaded attached file 'nelson.art' with ctrl-x f2) emacs then proceeded to malloc all core, causing linux to grind to a halt.
Reproducable as the first command entered after emacs -Q.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
 of 2014-03-07 on lamiak, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description:    Ubuntu 14.04.3 LTS

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<escape> x r e p o <tab> r <tab> <return>

Recent messages:
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

[Message part 2 (text/html, inline)]
[nelson.art (image/x-jg, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 02:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 22289 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Alex Burr <ajb44.geo <at> yahoo.com>
Cc: 22289 <at> debbugs.gnu.org
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Sat, 02 Jan 2016 03:57:17 +0100
Alex Burr <ajb44.geo <at> yahoo.com> writes:

> 1) loaded attached file 'nelson.art' with ctrl-x f
> 2) emacs then proceeded to malloc all core, causing linux to grind to a halt.

If I save the image to a file and then use "display" to display it, my
machine grinds to a halt for 15 seconds, and then display says it can't
display it...

Could be an imagemagick bug of some kind...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 03:00:02 GMT) Full text and rfc822 format available.

Message #11 received at 22289 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Alex Burr <ajb44.geo <at> yahoo.com>
Cc: 22289 <at> debbugs.gnu.org
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Sat, 02 Jan 2016 03:58:59 +0100
I'm unable to make Emacs crash, though.  Emacs grows to 14GB, and
then displays the "error" image.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 08:27:02 GMT) Full text and rfc822 format available.

Message #14 received at 22289 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 22289 <at> debbugs.gnu.org, ajb44.geo <at> yahoo.com
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Sat, 02 Jan 2016 10:26:33 +0200
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 02 Jan 2016 03:57:17 +0100
> Cc: 22289 <at> debbugs.gnu.org
> 
> Alex Burr <ajb44.geo <at> yahoo.com> writes:
> 
> > 1) loaded attached file 'nelson.art' with ctrl-x f
> > 2) emacs then proceeded to malloc all core, causing linux to grind to a halt.
> 
> If I save the image to a file and then use "display" to display it, my
> machine grinds to a halt for 15 seconds, and then display says it can't
> display it...
> 
> Could be an imagemagick bug of some kind...

Alex, was your Emacs compiled with Imagemagick support?  Mine wasn't,
so visiting that file does nothing special.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 08:28:02 GMT) Full text and rfc822 format available.

Message #17 received at 22289 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 22289 <at> debbugs.gnu.org, ajb44.geo <at> yahoo.com
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Sat, 02 Jan 2016 10:27:39 +0200
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 02 Jan 2016 03:58:59 +0100
> Cc: 22289 <at> debbugs.gnu.org
> 
> I'm unable to make Emacs crash, though.  Emacs grows to 14GB, and
> then displays the "error" image.

Maybe your Imagemagick version is different.  Your Emacs version
certainly is ;-)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#22289; Package emacs. (Sat, 02 Jan 2016 14:30:03 GMT) Full text and rfc822 format available.

Message #20 received at 22289 <at> debbugs.gnu.org (full text, mbox):

From: Alex Burr <ajb44.geo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: "22289 <at> debbugs.gnu.org" <22289 <at> debbugs.gnu.org>
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Sat, 2 Jan 2016 14:29:23 +0000 (UTC)
[Message part 1 (text/plain, inline)]
Yes, it seems to have been compiled with imagemagick support. I don't have 14Gb of ram :-)So, the problem is then that this is not any kind of image. It's a text file (actually a
program for http://art.kano.me, which expects coffeescript). If I run: 
 convert Identify nelson.artimagemagick tells me that I have a 26708x29472 1-bit ART image, which explains the problem!
It loads normally if I rename the file not to have the .art suffix. So I can solve my immediate problem.

It's not clear to me whether imagemagick is making a real mistake here. it doesn't seemto do any significant checking on the image header: https://github.com/ImageMagick/ImageMagick/blob/7ce65e7125a4e1df1a274ce373c537a9df9c16cd/coders/art.cHowever these old formats often didn't include any redundancy anyway.
However it does seem like any filename ending in .art is a bit dangerous for emacs at the moment.
Alex

 

 

 
      From: Eli Zaretskii <eliz <at> gnu.org>
 To: Lars Magne Ingebrigtsen <larsi <at> gnus.org> 
Cc: ajb44.geo <at> yahoo.com; 22289 <at> debbugs.gnu.org
 Sent: Saturday, January 2, 2016 8:26 AM
 Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
   
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 02 Jan 2016 03:57:17 +0100
> Cc: 22289 <at> debbugs.gnu.org
> 
> Alex Burr <ajb44.geo <at> yahoo.com> writes:
> 
> > 1) loaded attached file 'nelson.art' with ctrl-x f
> > 2) emacs then proceeded to malloc all core, causing linux to grind to a halt.
> 
> If I save the image to a file and then use "display" to display it, my
> machine grinds to a halt for 15 seconds, and then display says it can't
> display it...
> 
> Could be an imagemagick bug of some kind...

Alex, was your Emacs compiled with Imagemagick support?  Mine wasn't,
so visiting that file does nothing special.


   
[Message part 2 (text/html, inline)]

Changed bug title to '24.3; ImageMagick-related crash with .art file' from '24.3; Emacs crashes on loading file' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 13 Jan 2016 18:54:02 GMT) Full text and rfc822 format available.

Merged 22289 34346. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Feb 2019 18:29:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 20 Feb 2019 06:08:01 GMT) Full text and rfc822 format available.

Notification sent to Alex Burr <ajb44.geo <at> yahoo.com>:
bug acknowledged by developer. (Wed, 20 Feb 2019 06:08:02 GMT) Full text and rfc822 format available.

Message #29 received at 22289-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 22289-done <at> debbugs.gnu.org
Subject: Re: bug#22289: 24.3; Emacs crashes on loading file
Date: Wed, 20 Feb 2019 01:07:35 -0500
Version: 26.2

commit a19bfb7 (HEAD, origin/emacs-26, emacs-26)
Date:   Tue Feb 19 22:04:19 2019 -0800

    Remove .art from the default list of ImageMagick extensions
    
    It seems that .art files can be non-image files that
    ImageMagick mistakenly treats as extremely large images.
    Real .art images seem rare.
    * lisp/image.el (imagemagick-enabled-types): Remove ART.  (Bug#22289)

diff --git a/lisp/image.el b/lisp/image.el
index 3019da5..9d2045d 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -923,7 +923,7 @@ imagemagick-types-inhibit
   :version "24.3")
 
 (defcustom imagemagick-enabled-types
-  '(3FR ART ARW AVS BMP BMP2 BMP3 CAL CALS CMYK CMYKA CR2 CRW
+  '(3FR ARW AVS BMP BMP2 BMP3 CAL CALS CMYK CMYKA CR2 CRW
     CUR CUT DCM DCR DCX DDS DJVU DNG DPX EXR FAX FITS GBR GIF
     GIF87 GRB HRZ ICB ICO ICON J2C JNG JP2 JPC JPEG JPG JPX K25
     KDC MIFF MNG MRW MSL MSVG MTV NEF ORF OTB PBM PCD PCDS PCL
@@ -957,7 +957,7 @@ imagemagick-enabled-types
   :set (lambda (symbol value)
 	 (set-default symbol value)
 	 (imagemagick-register-types))
-  :version "24.3")
+  :version "26.2")                      ; remove ART (bug#22289)
 
 (imagemagick-register-types)
 




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 20 Feb 2019 06:08:02 GMT) Full text and rfc822 format available.

Notification sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
bug acknowledged by developer. (Wed, 20 Feb 2019 06:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Mar 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.