From: Fabio Leimgruber <fabio.leimgruber@web.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Fabio Leimgruber <fabio.leimgruber@web.de>, 55654@debbugs.gnu.org
Subject: bug#55654: 28.1.50; HEAP Error with ImageMagick on Windows MSYS2
Date: Sun, 29 May 2022 11:12:20 +0200 [thread overview]
Message-ID: <j90r14cpurv.fsf@web.de> (raw)
In-Reply-To: <835ylsplii.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 May 2022 14:43:17 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> I think this happens because ImageMagick tries to free memory that
> Emacs allocated. Emacs on MS-Windows uses its own implementation of
> malloc and free, so a scenario where Emacs allocates and some library
> frees, or vice versa, will never work.
>
> Does ImageMagick has a facility whereby an application can tell it
> what functions to use for allocation and deallocation of memory? If
> so, we can use those facilities to force ImageMagick to use our
> allocation functions.
>
> If the above doesn't help, I think the way to debug this is to install
> ImageMagick sources and debug info, or build it with debug information
> on your machine, and see what memory is being free'd here, and where
> was it allocated.
Thanks for your analysis and the suggestions.
I just recompiled after upgrading MSYS2 ImageMagick to 7.1.0.35 and the error is gone.
Your comment about malloc and free on MS-Windows got me thinking on how ImageMagick has been working on this machine with Emacs 27.2.50 in the first place. I was then searching for supported ImageMagick versions, but it seems that starting with Emacs 27 ImageMagick is disabled by default. Maybe a note on ImageMagick compat for Emacs 28 on MS-Windows MSYS2 could be added to the docs, as long as the option --with-imagemagick is still available?
In any case, please consider this solved from my side.
next prev parent reply other threads:[~2022-05-29 9:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-26 10:06 bug#55654: 28.1.50; HEAP Error with ImageMagick on Windows MSYS2 Fabio Leimgruber
2022-05-26 11:43 ` Eli Zaretskii
2022-05-29 9:12 ` Fabio Leimgruber [this message]
2022-05-29 9:55 ` Eli Zaretskii
2022-06-10 10:52 ` Fabio Leimgruber
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=j90r14cpurv.fsf@web.de \
--to=fabio.leimgruber@web.de \
--cc=55654@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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).