Summary: | ps2ascii crashes immediately, independent of the input | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | Text | Assignee: | Alex Cherepanov <alex> |
Status: | NOTIFIED FIXED | ||
Severity: | critical | ||
Priority: | P4 | ||
Version: | 8.63 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
11_gs-cjk_font_glyph_handling_fix.dpatch
12_gs-cjk_vertical_writing_metrics_fix.dpatch 13_gs-cjk_cjkps_examples.dpatch patch |
Description
Till Kamppeter
2008-10-15 13:08:50 UTC
I cannot reproduce this problem in the current revision on Win32 or x86 Linux. I can't duplicate this either. I'm using Ubuntu 8.04 on an amd64 system with Ghostscript 8.63. I cannot reproduce with 8.63 or HEAD on x86_64 Ubuntu 8.04, nor with HEAD on Ubuntu 8.10. I can reproduce with the gs executable shipping with Ubuntu 8.10. So the culprit is likely one of the patches the Ubuntu applies in their package. Ok, I've confirmed using the ubuntu intrepid source package ghostscript_8.63.dfsg.1-0ubuntu5: ./configure && make bin/gs -Ilib -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -c stop -f lib/ps2ascii.ps examples/alphabet.ps -c quit [...works...] rm -rf bin obj debian/rules patch [add -lpaper to EXTRALIBS in the makefile] ./configure && make bin/gs -Ilib -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -c stop -f lib/ps2ascii.ps examples/alphabet.ps -c quit Error: /rangecheck in --put-- So the culprit is indeed one of the patches, and it's not our bug. If you want help sorting this problem, it would help to at least track down which patch is responsible. I have found the patch which is the culprit: It is the patch debian/patches/11_gs-cjk_font_glyph_handling_fix, which seems to add a complete CJK handling subsystem. Can you check this patch and perhaps find out if it is still needed and if so, if you could fix it. Can you also check the need of debian/patches/12_gs-cjk_vertical_writing_metrics_fix? Please provide URLs to the patches or attach them to the bug report. Created attachment 4514 [details]
11_gs-cjk_font_glyph_handling_fix.dpatch
Patch to add advanced CJK support. This patch causes this bug.
Created attachment 4515 [details]
12_gs-cjk_vertical_writing_metrics_fix.dpatch
Additional patch for vertical CJK printing
Created attachment 4516 [details]
13_gs-cjk_cjkps_examples.dpatch
Patch which adds test files for the above two patches
Created attachment 4519 [details]
patch
Extend the size of the array for procedures scheduled for binding
in the DELAYBIND mode to 2000. Prevent an overflow when 3rd party code
(such as Ubuntu CJKV patch) defines and binds many procedures.
The patch is committed as a rev. 9174. DELAYBIND mode is not covered by regression testing. Regressions cannot happen. I have checked and it works. Text extraction works perfectly now for me with both PostScript and PDF input file. |