GNU bug report logs - #9633
imagemagick-related crash in DocView

Previous Next

Package: emacs;

Reported by: Pieter Slabbert <blob626 <at> gmail.com>

Date: Thu, 29 Sep 2011 21:13:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.0.90

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9633 in the body.
You can then email your comments to 9633 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Thu, 29 Sep 2011 21:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pieter Slabbert <blob626 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 29 Sep 2011 21:13:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pieter Slabbert <blob626 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.90; viewing a pdf crashes emacs
Date: Thu, 29 Sep 2011 21:02:18 +0200
When opening a pdf only the first page displays. I can scroll down this
page but once I try to go to the next page emacs freezesand I get the
message:
emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.


In GNU Emacs 24.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-09-29 on box
Windowing system distributor `The X.Org Foundation', version 11.0.10905000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<menu> r e p o r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 06:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pieter Slabbert <blob626 <at> gmail.com>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 09:38:02 +0300
> From: Pieter Slabbert <blob626 <at> gmail.com>
> Date: Thu, 29 Sep 2011 21:02:18 +0200
> 
> When opening a pdf only the first page displays. I can scroll down this
> page but once I try to go to the next page emacs freezesand I get the
> message:
> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.

Can you please provide a reproducible recipe starting from "emacs -Q"?

Also, how much memory can you use on that system?  And what version of
the libtiff library did you use to build Emacs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 14:30:03 GMT) Full text and rfc822 format available.

Message #11 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Pieter Slabbert <blob626 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 16:27:53 +0200
>> When opening a pdf only the first page displays. I can scroll down this
>> page but once I try to go to the next page emacs freezesand I get the
>> message:
>> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
>
> Can you please provide a reproducible recipe starting from "emacs -Q"?
>
> Also, how much memory can you use on that system?  And what version of
> the libtiff library did you use to build Emacs?
>

emacs -Q ~/Documents/a-pdf.pdf
once in emacs press n

a-pdf.pdf must have at least two pages.

I can use 1 gig of memory and my libtiff version is 3.9.4
emacs 23.3.1 opens the same pdf just fine.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 15:06:02 GMT) Full text and rfc822 format available.

Message #14 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pieter Slabbert <blob626 <at> gmail.com>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 18:04:39 +0300
> Date: Fri, 30 Sep 2011 16:27:53 +0200
> From: Pieter Slabbert <blob626 <at> gmail.com>
> CC: 9633 <at> debbugs.gnu.org
> 
> 
> >> When opening a pdf only the first page displays. I can scroll down this
> >> page but once I try to go to the next page emacs freezesand I get the
> >> message:
> >> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
> >
> > Can you please provide a reproducible recipe starting from "emacs -Q"?
> >
> > Also, how much memory can you use on that system?  And what version of
> > the libtiff library did you use to build Emacs?
> >
> 
> emacs -Q ~/Documents/a-pdf.pdf
> once in emacs press n
> 
> a-pdf.pdf must have at least two pages.

I'm sorry, but with this recipe I get just a buffer full of binary
garbage, presumably the contents of the PDF file.  What mode is loaded
on your system that displays the PDF file?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 15:20:01 GMT) Full text and rfc822 format available.

Message #17 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Pieter Slabbert <blob626 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 17:18:32 +0200

On 2011/09/30 05:04 PM, Eli Zaretskii wrote:
>> Date: Fri, 30 Sep 2011 16:27:53 +0200
>> From: Pieter Slabbert<blob626 <at> gmail.com>
>> CC: 9633 <at> debbugs.gnu.org
>>
>>
>>>> When opening a pdf only the first page displays. I can scroll down this
>>>> page but once I try to go to the next page emacs freezesand I get the
>>>> message:
>>>> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
>>>
>>> Can you please provide a reproducible recipe starting from "emacs -Q"?
>>>
>>> Also, how much memory can you use on that system?  And what version of
>>> the libtiff library did you use to build Emacs?
>>>
>>
>> emacs -Q ~/Documents/a-pdf.pdf
>> once in emacs press n
>>
>> a-pdf.pdf must have at least two pages.
>
> I'm sorry, but with this recipe I get just a buffer full of binary
> garbage, presumably the contents of the PDF file.  What mode is loaded
> on your system that displays the PDF file?
>

for me it opens in DocView mode




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 15:50:02 GMT) Full text and rfc822 format available.

Message #20 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pieter Slabbert <blob626 <at> gmail.com>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 18:48:26 +0300
> Date: Fri, 30 Sep 2011 17:18:32 +0200
> From: Pieter Slabbert <blob626 <at> gmail.com>
> CC: 9633 <at> debbugs.gnu.org
> 
> >> emacs -Q ~/Documents/a-pdf.pdf
> >> once in emacs press n
> >>
> >> a-pdf.pdf must have at least two pages.
> >
> > I'm sorry, but with this recipe I get just a buffer full of binary
> > garbage, presumably the contents of the PDF file.  What mode is loaded
> > on your system that displays the PDF file?
> >
> 
> for me it opens in DocView mode

That needs Ghostscript which I don't have.

Could someone please reproduce this and provide a full backtrace from
an unoptimized build?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 17:13:01 GMT) Full text and rfc822 format available.

Message #23 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9633 <at> debbugs.gnu.org, Pieter Slabbert <blob626 <at> gmail.com>
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 13:11:30 -0400
I tried on two different systems (one of which uses libtiff 3.9.4) and
could not reproduce it.

I think "UnregisterTIFFImage" is actually provided by the imagemagick
library. Does the problem go away if you configure --without-imagemagick?

I don't know what tiffs have to do with anything though, since docview
uses png.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Fri, 30 Sep 2011 17:49:02 GMT) Full text and rfc822 format available.

Message #26 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Pieter Slabbert <blob626 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 19:46:54 +0200

>
> I think "UnregisterTIFFImage" is actually provided by the imagemagick
> library. Does the problem go away if you configure --without-imagemagick?
>

this worked, thanks




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9633; Package emacs. (Sat, 01 Oct 2011 01:49:02 GMT) Full text and rfc822 format available.

Message #29 received at 9633 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Pieter Slabbert <blob626 <at> gmail.com>
Cc: 9633 <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Fri, 30 Sep 2011 21:47:13 -0400
OK, but the ImageMagick issue should still be investigated.
What version of ImageMagick is on your system?
Does the crash happen with any multi-page pdf, or just one/some?
For example, does it happen with etc/refcards/refcard.pdf from the Emacs
distribution?
What happens if you just open a png file in emacs -Q?

Can you build Emacs using:

CFLAGS=-O0 -g3 ./configure
make

then run it using:

cd src
gdb ./emacs
run -Q

and when it crashes, post the result of `bt full'?




Changed bug title to 'imagemagick-related crash in DocView' from '24.0.90; viewing a pdf crashes emacs' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 02 Oct 2011 18:30:02 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 27 Mar 2012 23:08:01 GMT) Full text and rfc822 format available.

Notification sent to Pieter Slabbert <blob626 <at> gmail.com>:
bug acknowledged by developer. (Tue, 27 Mar 2012 23:08:01 GMT) Full text and rfc822 format available.

Message #36 received at 9633-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9633-done <at> debbugs.gnu.org
Subject: Re: bug#9633: 24.0.90; viewing a pdf crashes emacs
Date: Tue, 27 Mar 2012 18:35:37 -0400
Glenn Morris wrote:

> What version of ImageMagick is on your system?
> Does the crash happen with any multi-page pdf, or just one/some?
> For example, does it happen with etc/refcards/refcard.pdf from the Emacs
> distribution?
> What happens if you just open a png file in emacs -Q?
>
> Can you build Emacs using:
>
> CFLAGS=-O0 -g3 ./configure
> make
>
> then run it using:
>
> cd src
> gdb ./emacs
> run -Q
>
> and when it crashes, post the result of `bt full'?


Nothing can be done without this information, so I am closing this.
If you are interested in pursuing this, please try to reply with those
details and this can be reopened if appopriate.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Apr 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.