Bug 688486 - Segfault in ghostscript; gs707, gs815, or gs850
Summary: Segfault in ghostscript; gs707, gs815, or gs850
Status: RESOLVED DUPLICATE of bug 688252
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: 8.50
Hardware: PC Linux
: P4 normal
Assignee: Dan Coby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-11 04:19 UTC by Rick Richardson
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
/tmp/icc.usecie.ps (50 bytes, application/postscript)
2006-01-11 04:21 UTC, Rick Richardson
Details
/tmp/icc.crd.ps (286.60 KB, application/postscript)
2006-01-11 04:22 UTC, Rick Richardson
Details
/tmp/icc.selcrd.ps (56 bytes, application/postscript)
2006-01-11 04:23 UTC, Rick Richardson
Details
testpage-ubuntu.ps (149.18 KB, application/postscript)
2006-01-11 04:24 UTC, Rick Richardson
Details
icc2ps input: testing.icm (500.46 KB, application/octet-stream)
2006-01-11 04:27 UTC, Rick Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Richardson 2006-01-11 04:19:34 UTC
$ gs707 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx /tmp/icc.usecie.ps /tmp/icc.crd.ps
/tmp/icc.selcrd.ps testpage-ubuntu.ps
Segmentation fault (core dumped)

$ gs815 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx /tmp/icc.usecie.ps /tmp/icc.crd.ps
/tmp/icc.selcrd.ps testpage-ubuntu.ps
Segmentation fault (core dumped)

$ gs850 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx /tmp/icc.usecie.ps /tmp/icc.crd.ps
/tmp/icc.selcrd.ps testpage-ubuntu.ps
Segmentation fault (core dumped)

I think it is in the file "/tmp/icc.crd.ps":
    ]  4 {} bind dup dup dup ]
When it is:
    ]  3 {} bind dup dup ]
all is normal.

Icc2ps is how it was generated:
    icc2ps -otesting.icm -t0 > /tmp/icc.crd.ps
Comment 1 Rick Richardson 2006-01-11 04:21:55 UTC
Created attachment 1916 [details]
/tmp/icc.usecie.ps
Comment 2 Rick Richardson 2006-01-11 04:22:53 UTC
Created attachment 1917 [details]
/tmp/icc.crd.ps
Comment 3 Rick Richardson 2006-01-11 04:23:34 UTC
Created attachment 1918 [details]
/tmp/icc.selcrd.ps
Comment 4 Rick Richardson 2006-01-11 04:24:57 UTC
Created attachment 1919 [details]
testpage-ubuntu.ps
Comment 5 Rick Richardson 2006-01-11 04:27:00 UTC
Created attachment 1920 [details]
icc2ps input: testing.icm
Comment 6 Alex Cherepanov 2006-01-12 03:17:44 UTC
I cannot reproduce this problem on GNU+Linux on x86, GCC 3.2
or Windows NT, MSVC 6. in any of the reported versions and the current svn one.

The CRD has a 4-component render table. So  " 4 {} bind dup dup dup " is correct.
When I change this to " 3 {} bind dup dup " as suggested, gs correctly reports a
PostScript error.
Comment 7 Rick Richardson 2006-01-12 05:09:54 UTC
$ uname -a
Linux amd.rkkda.org 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:57:59 EDT 2005 x86_64
x86_64 x86_64 GNU/Linux

Fedora Core 3, x86_64.
Comment 8 Rick Richardson 2006-01-12 06:04:47 UTC
$ gs850 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx /tmp/icc.usecie.ps /tmp/icc.crd.ps
/tmp/icc.selcrd.ps testpage-ubuntu.ps
Segmentation fault (core dumped)

$ CC="cc -m32" ./configure --without-x;  make ...

$ gs850_32 -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx /tmp/icc.usecie.ps /tmp/icc.crd.ps
/tmp/icc.selcrd.ps testpage-ubuntu.ps
$

Yep, something wrong with 64-bit.
Comment 9 Alex Cherepanov 2006-01-16 21:00:00 UTC
I cannot reproduce this on AMD64 provided by SourceForge:

$uname -a
Linux amd64-linux2.cf.sourceforge.net 2.6.9-1.667smp #1 SMP Tue Nov 2 15:09:11
EST 2004 x86_64 x86_64 x86_64 GNU/Linux

$gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Comment 10 Rick Richardson 2006-01-17 05:56:48 UTC
For compiling 8.15 and 8.50:
    Fedora Core 3       gcc-3.4.4-2.fc3.rpm

gs 7.07 is from an rpm:
    Fedora Core 3       ghostscript-7.07-33.rpm
                        ghostscript-fonts-5.50-13.rpm
Comment 11 Rick Richardson 2006-01-17 10:35:30 UTC
rickrich@amd64-linux1:~$ gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -g5100x6600 -r600x600 -sDEVICE=bitcmyk -sOutputFile=xxx
icc.usecie.ps icc.crd.ps icc.selcrd.ps testpage-ubuntu.ps
Segmentation fault

rickrich@amd64-linux1:~$ uname -a
Linux amd64-linux1.sourceforge.net 2.6.9-1.667smp #1 SMP Tue Nov 2 15:09:11 EST
2004 x86_64 x86_64 x86_64 GNU/Linux

See!  Even on cf.sf.net with ghostscript-7.07-33.rpm.  Didn't do gs815 or gs850.
Comment 12 Alex Cherepanov 2006-01-17 10:52:02 UTC
I've reproduced the problem on a SourceForge computer using GS 8.50
distribution. My local copy of GS 8.50 was modified.

I've checked that the crash doesn't happen in GS 8.53. Please upgrade.
Comment 13 Rick Richardson 2006-01-17 11:18:09 UTC
Can't "upgrade".  GNU GPL is good only through 8.50.  Plus, FC3/FC4 is stuck at
7.07.  Even Ubunto has only 8.15.
Comment 14 Alex Cherepanov 2006-01-22 22:13:28 UTC
This is a duplicate of the bug 688252.
See the patch at http://ghostscript.com/pipermail/gs-cvs/2005-August/005686.html

Many more errors have been fixed since v. 8.50 including other critical
problems on 64-bit platforms, such as 
http://ghostscript.com/pipermail/gs-cvs/2005-May/005536.html

I strongly recommend to run the latest version: you help more with
Ghostscript testing and hit less bugs on the way. Restrictions of
the AFPL license shoukd not affect you unless you want to sell a Ghostscript-
derived product. In the latter case you should consider a commercial
licence and a support contract.


*** This bug has been marked as a duplicate of 688252 ***