all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Magnus Henoch <magnus.henoch@gmail.com>
To: "Jan D." <jan.h.d@swipnet.se>
Cc: 19133@debbugs.gnu.org
Subject: bug#19133: closed (Re: bug#19133: 25.0.50; Crash in clear-image-cache)
Date: Sun, 07 Dec 2014 14:26:36 +0000	[thread overview]
Message-ID: <m1h9x75yeb.fsf@mail.gmail.com> (raw)
In-Reply-To: <368B0AC4-B7F4-4801-AEDD-BD9963648A68@swipnet.se> (Jan D.'s message of "Tue, 2 Dec 2014 20:20:06 +0100")

Found the crucial difference: the crash happens if you create an image
using data from a string, as opposed to from a file.  This little
function reliably causes Emacs to crash, given any PNG or JPEG file.
(It cannot determine the type of PBM files, and XPM and SVG files don't
make Emacs crash.)

  (defun my-crash-emacs (image-file)
    (interactive "fImage file: ")
    (insert-image (create-image
                   (with-temp-buffer
                     (set-buffer-multibyte nil)
                     (insert-file-literally image-file)
                     (buffer-string))
                   nil t))
    (when (yes-or-no-p "Clear image cache? ")
      (clear-image-cache)))

Regards,
Magnus





  reply	other threads:[~2014-12-07 14:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21  0:00 bug#19133: 25.0.50; Crash in clear-image-cache Magnus Henoch
2014-12-02 13:31 ` Jan D.
     [not found] ` <handler.19133.D19133.14175271316014.notifdone@debbugs.gnu.org>
2014-12-02 18:48   ` bug#19133: closed (Re: bug#19133: 25.0.50; Crash in clear-image-cache) Magnus Henoch
2014-12-02 19:20     ` Jan D.
2014-12-07 14:26       ` Magnus Henoch [this message]
2014-12-07 16:14         ` Jan D.
2014-12-07 21:46           ` Magnus Henoch
2014-12-08  1:20             ` Ted Zlatanov
2014-12-08 11:53               ` Jan D.
2014-12-08 15:54                 ` Ted Zlatanov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1h9x75yeb.fsf@mail.gmail.com \
    --to=magnus.henoch@gmail.com \
    --cc=19133@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.