Bug 688217

Summary: core dump on tru64 when using true type font
Product: Ghostscript Reporter: Xu Manjiang <manjiang>
Component: Font APIAssignee: Stefan Kemper <stefan.kemper>
Status: RESOLVED DUPLICATE    
Severity: major CC: alex
Priority: P3    
Version: 8.15   
Hardware: DEC   
OS: OSF/1   
Customer: Word Size: ---
Attachments: cidfmap file in lib directory
tar file contains CMap CIDFont Font in Resource directory
fonts.dir in the same directory as font file
true type font file
sample ps file
another sample ps file

Description Xu Manjiang 2005-07-19 01:56:20 UTC
I am trying to use GPL ghostscript 8.15 on Alpha Server with OS Tru64 5.1A/B.  
After compiling gs seems to work fine.  But after I add some Chinese true type 
fonts in cidfmap file, gs got a "core dump" when I try to open a ps file with 
Chinese fonts.  I used "dbx" to find where the bug comes from but only got such 
lines:
--------
signal Floating point exception
Possible Integer Divide by Zero at >*[_OtsRemainder64Unsigned, 0x3ff801db320]  
ret      zero, (ra), 1
--------

I have used ESP ghostscript 7.07 with the same ps files and Chinese true type 
font, everything is ok.  So I think the bug is not from ps files or font.

Any help is appreciated.
Comment 1 Alex Cherepanov 2005-07-19 09:03:35 UTC
Please try the latest released version - 8.51 and the current CVS version.
There was a bug in 64-bit code fixed recently.

GS developers can also test the current version of Ghostscript but we need
the following:
(1) The sample file
(2) The font file
(3) Your cidfmap file
Comment 2 Xu Manjiang 2005-07-19 19:53:40 UTC
Created attachment 1541 [details]
cidfmap file in lib directory
Comment 3 Xu Manjiang 2005-07-19 19:57:44 UTC
Created attachment 1542 [details]
tar file contains CMap CIDFont Font in Resource directory
Comment 4 Xu Manjiang 2005-07-19 20:04:57 UTC
Created attachment 1543 [details]
fonts.dir in the same directory as font file

In my system the font directory is /users/ems/open2000e/data/NariFont/ttf/
Comment 5 Xu Manjiang 2005-07-19 20:12:28 UTC
Created attachment 1544 [details]
true type font file

in /users/ems/open2000e/data/NariFont/ttf/
Comment 6 Xu Manjiang 2005-07-19 20:13:27 UTC
Created attachment 1545 [details]
sample ps file
Comment 7 Xu Manjiang 2005-07-19 20:15:17 UTC
Created attachment 1546 [details]
another sample ps file
Comment 8 Xu Manjiang 2005-07-19 20:17:08 UTC
I have tried ghostscript 8.51 but got the same core dump.  So I would like to 
show my configuration files and sample files.  Hope these could make some 
hint.  Thanks.
Comment 9 Xu Manjiang 2005-07-19 20:19:10 UTC
Comment on attachment 1541 [details]
cidfmap file in lib directory

file name is cidfmap
Comment 10 Xu Manjiang 2005-07-19 20:19:36 UTC
Comment on attachment 1542 [details]
tar file contains CMap CIDFont Font in Resource directory

file name is f.tar.gz
Comment 11 Xu Manjiang 2005-07-19 20:20:01 UTC
Comment on attachment 1543 [details]
fonts.dir in the same directory as font file

file name is fonts.dir
Comment 12 Xu Manjiang 2005-07-19 20:20:23 UTC
Comment on attachment 1544 [details]
true type font file

file name is NariSong.ttf.gz
Comment 13 Xu Manjiang 2005-07-19 20:20:40 UTC
Comment on attachment 1545 [details]
sample ps file

file name is dbi.ps
Comment 14 Xu Manjiang 2005-07-19 20:20:57 UTC
Comment on attachment 1546 [details]
another sample ps file

file name is ge.ps
Comment 15 Xu Manjiang 2005-07-21 00:59:24 UTC
I found a bug #688047 seems to have the same problem.  So I followed the 
instructions described in that bug report.  GS works now.  Thanks.
Comment 16 Alex Cherepanov 2005-07-21 03:43:38 UTC

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