From MAILER-DAEMON Wed Apr 18 09:10:57 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1He9w0-0004Bq-T6
	for mharc-bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:10:56 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Hdxyw-0001Qp-UO
	for bug-ghostscript@gnu.org; Tue, 17 Apr 2007 20:25:10 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Hdxyp-0001Pt-Sd
	for bug-ghostscript@gnu.org; Tue, 17 Apr 2007 20:25:09 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Hdxyp-0001Pq-Kh
	for bug-ghostscript@gnu.org; Tue, 17 Apr 2007 20:25:03 -0400
Received: from ug-out-1314.google.com ([66.249.92.168])
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <peterbe@gmail.com>) id 1Hdxtz-0001ii-PT
	for bug-ghostscript@gnu.org; Tue, 17 Apr 2007 20:20:07 -0400
Received: by ug-out-1314.google.com with SMTP id j3so284110ugf
	for <bug-ghostscript@gnu.org>; Tue, 17 Apr 2007 17:20:03 -0700 (PDT)
Received: by 10.82.163.13 with SMTP id l13mr8015739bue.1176717319090;
	Mon, 16 Apr 2007 02:55:19 -0700 (PDT)
Received: from ?192.168.1.113? ( [87.236.135.147])
	by mx.google.com with ESMTP id b30sm12175061ika.2007.04.16.02.55.14;
	Mon, 16 Apr 2007 02:55:15 -0700 (PDT)
Message-ID: <46234800.2060608@fry-it.com>
Date: Mon, 16 Apr 2007 10:55:12 +0100
From: Peter Bengtsson <peter@fry-it.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070403)
MIME-Version: 1.0
To: bug-ghostscript@gnu.org
Content-Type: multipart/mixed; boundary="------------040504050507000407020304"
Sender: Peter Bengtsson <peterbe@gmail.com>
X-detected-kernel: Linux 2.4-2.6 (Google crawlbot)
X-Mailman-Approved-At: Wed, 18 Apr 2007 09:10:55 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Subject: gs conversion segfaults on 64bit cpu
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Apr 2007 00:25:11 -0000

This is a multi-part message in MIME format.
--------------040504050507000407020304
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I've got a PDF file that I use 'convert' to convert from PDF to JPG and 
it works fine on my laptop but not on the server. They're both Ubuntu 
linuxes and one of the differences is the CPU. Mine's 32bit and the 
server is 64bit. When I was working on this bug reproduction I made sure 
the versions of the various programs where the same.

This is what happens when I try to convert the attached PDF to JPG:

$ convert "Skyways.pdf[0]" "Skyways.jpg"
  convert: Postscript delegate failed `Skyways.pdf'.

$ convert -version
  Version: ImageMagick 6.2.4 11/24/06 Q16 http://www.imagemagick.org
  Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC

$ gs --version
  8.15.2


Then if I run it more verbosely I get the following::

$ convert -verbose "Skyways.pdf[0]" "Skyways.jpg"
  "gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE 
-dAlignToPixels=0 "-sDEV
ICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g595x842" 
"-r72x72" -dFirs
tPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-XXMpljof" 
"-f/tmp/magick-XXtzKB4f
" "-f/tmp/magiclnn1He"
  Start of Image
  Define Huffman Table 0x00
           0   1   5   1   1   1   1   1
           1   0   0   0   0   0   0   0
  Define Huffman Table 0x01
           0   3   1   1   1   1   1   1
           1   1   1   0   0   0   0   0
  Define Huffman Table 0x10
           0   2   1   3   3   2   4   3
           5   5   4   4   0   0   1 125
  Define Huffman Table 0x11
           0   2   1   2   4   4   3   4
           7   5   4   4   0   1   2 119
  End Of Image
  convert: Postscript delegate failed `Skyways.pdf'.


The strange thing is that if I run the exact same command (with 
-verbose) on my laptop I get a slightly different message. So, on my 
laptop I get this::

$ convert -verbose "Skyways.pdf[0]" Skyways.jpg
  "gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE
  -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4
  -dGraphicsAlphaBits=4 "-g595x842" "-r72x72" -dFirstPage=1
  -dLastPage=1 "-sOutputFile=/tmp/magick-XXcNEf4X"
  "-f/tmp/magick-XX9gy9Jj" "-f/tmp/magicEz5loC"/tmp/magick-XXcNEf4X
  PNM 595x842 DirectClass 1.4mb
  Skyways.pdf PDF 595x842 595x842+0+0 DirectClass 1.4mb
  Skyways.pdf PDF 595x842 595x842+0+0 DirectClass 1.4mb
  Skyways.pdf=>Skyways.jpg PDF 595x842 595x842+0+0 DirectClass 113kb


Still no good explaination why the JPG can't be created from the PDF on 
the 64bit server. That's when I did an strace (log file attached).

I hope this helps. I can provide more details if you need them.

Best regards,
Peter


-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com

--------------040504050507000407020304--



From MAILER-DAEMON Wed Apr 18 09:18:36 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HeA3Q-0006Ej-Kj
	for mharc-bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:18:36 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HeA3O-0006Dk-09
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:18:34 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HeA3M-0006DT-L5
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:18:33 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HeA3M-0006DP-Dr
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:18:32 -0400
Received: from home.famille-link.fr ([81.56.168.17] helo=mail.cosmos.net)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <didier@famille-link.fr>) id 1He9yV-0005oC-I7
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 09:13:32 -0400
Received: from neutrino.cosmos.net (neutrino [192.168.1.3])
	by mail.cosmos.net (Postfix) with ESMTP id 8DCE663400B;
	Wed, 18 Apr 2007 15:13:32 +0200 (CEST)
Date: Wed, 18 Apr 2007 15:13:25 +0200
From: Didier Link <didier@famille-link.fr>
To: Peter Bengtsson <peter@fry-it.com>
Message-ID: <20070418151325.055bf04e@neutrino.cosmos.net>
In-Reply-To: <46234800.2060608@fry-it.com>
References: <46234800.2060608@fry-it.com>
X-Mailer: Claws Mail 2.9.0 (GTK+ 2.10.11; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
X-detected-kernel: Linux 2.4-2.6
Cc: bug-ghostscript@gnu.org
Subject: Re: gs conversion segfaults on 64bit cpu
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Apr 2007 13:18:34 -0000

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQpMZSBNb24s
IDE2IEFwciAyMDA3IDEwOjU1OjEyICswMTAwLA0KUGV0ZXIgQmVuZ3Rzc29uIDxwZXRlckBmcnkt
aXQuY29tPiBhIMOpY3JpdCA6DQoNCj4gSGksDQoNCkhpIFBldGVyLA0KDQo+IEkndmUgZ290IGEg
UERGIGZpbGUgdGhhdCBJIHVzZSAnY29udmVydCcgdG8gY29udmVydCBmcm9tIFBERiB0byBKUEcN
Cj4gYW5kIGl0IHdvcmtzIGZpbmUgb24gbXkgbGFwdG9wIGJ1dCBub3Qgb24gdGhlIHNlcnZlci4g
VGhleSdyZSBib3RoDQo+IFVidW50dSBsaW51eGVzIGFuZCBvbmUgb2YgdGhlIGRpZmZlcmVuY2Vz
IGlzIHRoZSBDUFUuIE1pbmUncyAzMmJpdA0KPiBhbmQgdGhlIHNlcnZlciBpcyA2NGJpdC4gV2hl
biBJIHdhcyB3b3JraW5nIG9uIHRoaXMgYnVnIHJlcHJvZHVjdGlvbg0KPiBJIG1hZGUgc3VyZSB0
aGUgdmVyc2lvbnMgb2YgdGhlIHZhcmlvdXMgcHJvZ3JhbXMgd2hlcmUgdGhlIHNhbWUuDQo+IA0K
PiBUaGlzIGlzIHdoYXQgaGFwcGVucyB3aGVuIEkgdHJ5IHRvIGNvbnZlcnQgdGhlIGF0dGFjaGVk
IFBERiB0byBKUEc6DQo+IA0KPiAkIGNvbnZlcnQgIlNreXdheXMucGRmWzBdIiAiU2t5d2F5cy5q
cGciDQo+ICAgY29udmVydDogUG9zdHNjcmlwdCBkZWxl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dGhpcyBoZWxwcy4gSSBjYW4gcHJvdmlkZSBtb3JlIGRldGFpbHMg
aWYgeW91IG5lZWQgdGhlbS4NCg0KYWx3YXlzIGludGVyZXN0aW5nIHRvIGZvdW5kIHRoaXMgdHlw
ZSBvZiBidWdzIGJ1dCBwbGVhc2UgdXBkYXRlIHlvdXINCnZlcnNpb24gYmVmb3JlIG1vcmUgd29y
ayBjYW4gYmUgZG9uZSBvbiB0aGlzIGlzc3VlLg0KDQo+IA0KPiBCZXN0IHJlZ2FyZHMsDQo+IFBl
dGVyDQo+IA0KPiANCg0KQmVzdCByZWdhcmRzLg0KDQpEaWRpZXIgTElOSw0KDQotIC0tIA0KRGlk
aWVyIExpbmsgPGRpZGllckBmYW1pbGxlLWxpbmsuZnI+DQpKYWJiZXIgOiB6YW5maWJAaW1zLmtl
bGtvby5uZXQNCk1TTiA6IHphbmZpYkBob3RtYWlsLmZyDQpTSVAgOiBaYW5maWJAZWtpZ2EubmV0
DQoNCkNsw6kgR1BHIDogNzVCQUM5RUUNCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpW
ZXJzaW9uOiBHbnVQRyB2MS40LjcgKEdOVS9MaW51eCkNCg0KaUQ4REJRRkdKaGwxa3lQd2luVzZ5
ZTRSQW9hSEFKOW1aa1gzcFc3QTNNZmFhVzNJVXlwQ3kvSU5Fd0NlT1N1aQ0KL1hHNnUxUFBoVFM4
S2UyQU9acFF4Z0U9DQo9ekxqdQ0KLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQo=



From MAILER-DAEMON Wed Apr 18 11:51:17 2007
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1HeCRB-0005w1-9N
	for mharc-bug-ghostscript@gnu.org; Wed, 18 Apr 2007 11:51:17 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1HeCGj-00034v-C1
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 11:40:29 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1HeCGi-00034K-1P
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 11:40:28 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1HeCGh-00034D-TF
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 11:40:27 -0400
Received: from mu-out-0910.google.com ([209.85.134.187])
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <peterbe@gmail.com>) id 1HeCBq-0008Ps-JS
	for bug-ghostscript@gnu.org; Wed, 18 Apr 2007 11:35:27 -0400
Received: by mu-out-0910.google.com with SMTP id w1so224010mue
	for <bug-ghostscript@gnu.org>; Wed, 18 Apr 2007 08:35:25 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender;
	b=GX1qXQqsmkcgFUQtEm93b4bmbGJGIXUZVrdrj25TT128bONVf508lvJ7o8gkps7uWi+8TFbc1opmE/heTNGSZExP+SzbiQIvUbwz4qFhGzqPQTWoaq5jvlZ9epmd9r9xFqiJaZJum/2PrOVFHQ+jyOnLfRJIN3xginNL7QJmJ4g=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender;
	b=qR/XitZyV76JF7QmmaLeS74IVk3N2dExzyLJ5kylsInpT/sGdw9wmJTLcduGjtd0t2B7nYGafAKf7tW5WqPye4HE6LsNXazPZ+5B6h1BVxhDq0R3+ZWn3yTonxgvTU8U4iAjnN2oxmgw8FPcBs4tiQfJXZSOR5g+5k3NOETKq3A=
Received: by 10.82.148.7 with SMTP id v7mr991615bud.1176910524901;
	Wed, 18 Apr 2007 08:35:24 -0700 (PDT)
Received: from ?192.168.1.113? ( [87.236.135.147])
	by mx.google.com with ESMTP id z34sm988943ikz.2007.04.18.08.35.23;
	Wed, 18 Apr 2007 08:35:24 -0700 (PDT)
Message-ID: <46263AB9.7070708@fry-it.com>
Date: Wed, 18 Apr 2007 16:35:21 +0100
From: Peter Bengtsson <peter@fry-it.com>
User-Agent: Thunderbird 1.5.0.10 (X11/20070403)
MIME-Version: 1.0
To: Didier Link <didier@famille-link.fr>
References: <46234800.2060608@fry-it.com>
	<20070418151325.055bf04e@neutrino.cosmos.net>
In-Reply-To: <20070418151325.055bf04e@neutrino.cosmos.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Sender: Peter Bengtsson <peterbe@gmail.com>
X-detected-kernel: Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Wed, 18 Apr 2007 11:51:15 -0400
Cc: bug-ghostscript@gnu.org
Subject: Re: gs conversion segfaults on 64bit cpu
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-ghostscript>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Apr 2007 15:40:29 -0000

Hi Didier,
I did upgrade to gs-gpl 8.54 and the problem solved itself.

Thanks a million!
Peter

Didier Link wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Le Mon, 16 Apr 2007 10:55:12 +0100,
> Peter Bengtsson <peter@fry-it.com> a écrit :
> 
>> Hi,
> 
> Hi Peter,
> 
>> I've got a PDF file that I use 'convert' to convert from PDF to JPG
>> and it works fine on my laptop but not on the server. They're both
>> Ubuntu linuxes and one of the differences is the CPU. Mine's 32bit
>> and the server is 64bit. When I was working on this bug reproduction
>> I made sure the versions of the various programs where the same.
>>
>> This is what happens when I try to convert the attached PDF to JPG:
>>
>> $ convert "Skyways.pdf[0]" "Skyways.jpg"
>>   convert: Postscript delegate failed `Skyways.pdf'.
>>
>> $ convert -version
>>   Version: ImageMagick 6.2.4 11/24/06 Q16 http://www.imagemagick.org
>>   Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
>>
>> $ gs --version
>>   8.15.2
> 
> This version is a little bit to old for using on 64bits I think, can
> you upgrade gs please ? The last GNU release is 8.55 and a 8.56.0 will
> be released soon.
> 
> Also What is the release of gs ? AFPL, ESP, GPL, GNU ?? The naming
> scheme can be interpreted as esp-ghostscript and you are on the gnu
> mailing-list for the GNU version of gs ;) But don't worry, the codebase
> is very similar.
> 
> [...]
>> Still no good explaination why the JPG can't be created from the PDF
>> on the 64bit server. That's when I did an strace (log file attached).
>>
>> I hope this helps. I can provide more details if you need them.
> 
> always interesting to found this type of bugs but please update your
> version before more work can be done on this issue.
> 
>> Best regards,
>> Peter
>>
>>
> 
> Best regards.
> 
> Didier LINK
> 
> - -- 
> Didier Link <didier@famille-link.fr>
> Jabber : zanfib@ims.kelkoo.net
> MSN : zanfib@hotmail.fr
> SIP : Zanfib@ekiga.net
> 
> Clé GPG : 75BAC9EE
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> 
> iD8DBQFGJhl1kyPwinW6ye4RAoaHAJ9mZkX3pW7A3MfaaW3IUypCy/INEwCeOSui
> /XG6u1PPhTS8Ke2AOZpQxgE=
> =zLju
> -----END PGP SIGNATURE-----

-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com



