Summary: | Another PDF file that causes pdfwrite crash (segmentation fault) | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | andreptb <andreptb> |
Component: | PDF Writer | Assignee: | Ray Johnston <ray.johnston> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris.liddell |
Priority: | P1 | ||
Version: | 9.21 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | Zip containing the PDF document that produce the sigfault, the core dump data and gs log output |
Description
andreptb
2017-10-02 05:55:43 UTC
This appears to be some kind of memory corruption error. It doesn't exhibit on 32-bit builds, and if I run the 64-bit build in a debugger the problem doesn't exhibit either. If I run just the final page (where the error occurs for me) then the problem doesn't exhibit, in fact if I run anything except all 9 pages the problem doesn't exhibit. This may take some time to resolve. On Windows, with a debug build, using the command line: debugbin/gswin64c -sDEVICE=pdfwrite -o x.pdf Bug698615.pdf I see normal output: GPL Ghostscript GIT PRERELEASE 9.23 (2017-09-12) Copyright (C) 2017 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 9. Page 1 Loading NimbusSans-Regular font from %rom%Resource/Font/NimbusSans-Regular... 7262384 5933683 2928548 1514088 3 done. Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\ilocate.c(377): Clump parsing error, 0x47099ad8 != 0x470923a0 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\igc.c(622): Clump parsing error, 0x47099ad8 != 0x470923a0 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\igc.c(1208): Clump parsing error, 0x47099ad8 != 0x470923a0 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\igc.c(1251): Clump parsing error, 0x47099ad8 != 0x470923a0 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\igc.c(1353): Clump parsing error, 0x47099ad8 != 0x470923a0 Running with: debugbin/gswin64c -Z@\$\? -sDEVICE=pdfwrite -o x.pdf Bug698615.pdf I get: GPL Ghostscript GIT PRERELEASE 9.23 (2017-09-12) Copyright (C) 2017 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 9. Page 1 Loading NimbusSans-Regular font from %rom%Resource/Font/NimbusSans-Regular... 7262384 5933683 2928548 1514112 3 done. Page 2 Page 3 Page 4 Page 5 Page 6 GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\ilocate.c(607): Bad object 0x9069a048(2711724449), ssize = 352, in clump 0x903fca80! while validating clump 0x903fca80 (0x90698de0..0x9069a1a8, 0x9069a707..0x9069ae60..0x9069b4ac) GPL Ghostscript GIT PRERELEASE 9.23: c:\artifex\cgit\ghostpdl\psi\ilocate.c(258): while validating memory 0x8e7172d8, space 8, level 0 I'll take a look at it while kens is concentrating on a different issue, then if it looks like it is in the guts of pdfwrite, I'll send it back to ken. P1 as a segfault. Note that a release build on Windows also segfaults. This fixes a memory corruption issue with this file on Linux, it may be the source of the root problem: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=71e8599455 Fixed by Chris' commit 71e8599455a7befc7a14f6cd1353c9231fb93d48 |