From: Kalle Kankare <kalle.kankare@iki.fi>
To: 11558@debbugs.gnu.org
Subject: bug#11558: 24.1.50; Image Magick related build failure on bzr revision 108365
Date: Wed, 11 Jul 2012 23:24:49 +0300 [thread overview]
Message-ID: <CADsFQrqSU8V=nB-fL2BA_NgsQmMrMYAKHMzqG58_iws2zSb5Gw@mail.gmail.com> (raw)
In-Reply-To: <87obpcjmu2.fsf@gmx.com>
Hi,
I am also seeing the problem of temacs failing to load lisp/image.el
on 64-bit Archlinux during build. It fails with the following output:
...
Loading /home/kopoli/src/emacs/lisp/image.el (source)...
temacs: magick/exception.c:968: ThrowMagickExceptionList: Assertion
`exception->signature == 0xabacadabUL' failed.
/bin/sh: line 6: 27994 Aborted `/bin/pwd`/temacs
--batch --load loadup bootstrap
...
By running temacs through gdb it appears that the problem is in the
defun "imagemagick-types". The call to "GetMagickList" receives an
argument of type ExceptionInfo, which, by my interpretation of the
error message, needs to be initialized a certain way. Currently it is
just given an uninitialized local variable as an argument.
By looking through through ImageMagick documentation, the functions
"GetExceptionInfo" and "DestroyExceptionInfo" initialize and
deinitialize the ExceptionInfo-structure, respectively.
I got the build to complete by introducing the following change:
--- src/image.c 2012-07-09 12:02:27 +0000
+++ src/image.c 2012-07-11 19:59:24 +0000
@@ -7968,7 +7968,9 @@
Lisp_Object typelist = Qnil;
size_t numf = 0;
ExceptionInfo ex;
+ GetExceptionInfo(&ex);
char **imtypes = GetMagickList ("*", &numf, &ex);
+ DestroyExceptionInfo(&ex);
size_t i;
Lisp_Object Qimagemagicktype;
for (i = 0; i < numf; i++)
The generated emacs-binary at least appears to function properly. I
tested this with the following versions:
emacs: bzr:109033
gcc: 4.7.1
ImageMagick: 6.7.8-1
next prev parent reply other threads:[~2012-07-11 20:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 15:35 bug#11558: 24.1.50; Image Magick related build failure on bzr revision 108365 Eric Schulte
2012-05-25 20:21 ` Glenn Morris
2012-05-26 22:26 ` Eric Schulte
2012-05-26 22:33 ` Glenn Morris
2012-05-26 23:31 ` Eric Schulte
2012-05-27 3:08 ` Christoph Scholtes
2012-05-27 5:58 ` Achim Gratz
2012-07-11 20:24 ` Kalle Kankare [this message]
2012-07-12 9:19 ` Jan Djärv
2012-07-13 7:03 ` Tassilo Horn
2012-07-13 12:21 ` Jan Djärv
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='CADsFQrqSU8V=nB-fL2BA_NgsQmMrMYAKHMzqG58_iws2zSb5Gw@mail.gmail.com' \
--to=kalle.kankare@iki.fi \
--cc=11558@debbugs.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).