unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
To: Magnus Henoch <magnus.henoch@gmail.com>
Cc: 19133-done@debbugs.gnu.org
Subject: bug#19133: closed (Re: bug#19133: 25.0.50; Crash in clear-image-cache)
Date: Sun, 7 Dec 2014 17:14:33 +0100	[thread overview]
Message-ID: <EA0FF9F3-6075-40CC-9081-5D700AE16E49@swipnet.se> (raw)
In-Reply-To: <m1h9x75yeb.fsf@mail.gmail.com>

Hi.

> 7 dec 2014 kl. 15:26 skrev Magnus Henoch <magnus.henoch@gmail.com>:
> 
> 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)))

Nice.  Fixed in trunk.

	Jan D.






  reply	other threads:[~2014-12-07 16:14 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
2014-12-07 16:14         ` Jan D. [this message]
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

  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=EA0FF9F3-6075-40CC-9081-5D700AE16E49@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=19133-done@debbugs.gnu.org \
    --cc=magnus.henoch@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).