From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kalle Kankare Newsgroups: gmane.emacs.bugs Subject: bug#11558: 24.1.50; Image Magick related build failure on bzr revision 108365 Date: Wed, 11 Jul 2012 23:24:49 +0300 Message-ID: References: <87obpcjmu2.fsf@gmx.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1342038463 16367 80.91.229.3 (11 Jul 2012 20:27:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 20:27:43 +0000 (UTC) To: 11558@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 22:27:42 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sp3Ve-0002Fv-3Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 22:27:42 +0200 Original-Received: from localhost ([::1]:40099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp3Vd-00016B-Cn for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 16:27:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp3VX-000163-6n for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 16:27:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sp3VW-0003le-8Z for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 16:27:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sp3VW-0003la-4q for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 16:27:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sp3an-0000PM-Sr for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2012 16:33:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87obpcjmu2.fsf@gmx.com> Resent-From: Kalle Kankare Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jul 2012 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11558-submit@debbugs.gnu.org id=B11558.13420387611539 (code B ref 11558); Wed, 11 Jul 2012 20:33:01 +0000 Original-Received: (at 11558) by debbugs.gnu.org; 11 Jul 2012 20:32:41 +0000 Original-Received: from localhost ([127.0.0.1]:33966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp3aS-0000Ol-Bi for submit@debbugs.gnu.org; Wed, 11 Jul 2012 16:32:41 -0400 Original-Received: from mail-yw0-f42.google.com ([209.85.213.42]:45535) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sp3YB-0000L7-1v for 11558@debbugs.gnu.org; Wed, 11 Jul 2012 16:30:19 -0400 Original-Received: by yhoo21 with SMTP id o21so500345yho.29 for <11558@debbugs.gnu.org>; Wed, 11 Jul 2012 13:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=FAk3k2oLV5+sisjLKlLv4GQEphwmTqVCxl2woJClES4=; b=cpUAcoBv8U88OJSOmMcK73iJkS9LKfKy5eSnjHYjpbvANre2e9EZy2n858QO4CPD/l x2ImvC1M+5tXKcsKccx8o3y+x0hMI3DFpS8jl8eSc7wYyyXoJpgJMBhRJyhHoW9TL/9Z ScdnwRAK93B8Ft4jNSCO3fRQOhqjFjA9bSowigbqiONlWoGZ0St1v5KH/7aKNX4JxV07 3xAUpglyJuyogQ6qjPPALMWFaayilBlMKDGBVomjNsT/+Ya/sV05pUuDmp9wK6+MdQIn VHHwW76lJlAfWWaUXYB/H88poafJh3nfma8bS8Sd00Vn+yj+fNyHUUZ0pum4KA4u7Mto G25g== Original-Received: by 10.66.75.71 with SMTP id a7mr84417090paw.48.1342038289920; Wed, 11 Jul 2012 13:24:49 -0700 (PDT) Original-Received: by 10.68.74.193 with HTTP; Wed, 11 Jul 2012 13:24:49 -0700 (PDT) X-Google-Sender-Auth: Ht5SZWqta3dP3x68V5EKvycd-NU X-Mailman-Approved-At: Wed, 11 Jul 2012 16:32:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61828 Archived-At: 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