Summary: | Segfault due to overlapping allocated memory segments (pdfwriter) | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Tim Waugh <twaugh> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | robin.watts |
Priority: | P4 | ||
Version: | 9.10 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | alloc-trace.txt.xz |
Description
Tim Waugh
2014-05-28 09:11:36 UTC
(In reply to Tim Waugh from comment #0) > Created attachment 10945 [details] > alloc-trace.txt.xz > > I have a repeatable segfault. Unfortunately, I am not able to share the > input file. :-( I'm afraid that if I can't debug the input file there is essentially zero possibility of fixing the problem. Files can be marked private which limits access to Artifex staff, if that helps. > I am seeing this with ghostscript-9.10-5.fc20.x86_64 on Fedora 20. Here is > the command line: > > gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 > -dAutoRotatePages=/None -dAutoFilterColorImages=false -dNOPLATFONTS > -dPARANOIDSAFER -dNOINTERPOLATE -dColorImageFilter=/FlateEncode > -dPDFSETTINGS=/printer -dUseCIEColor > -dColorConversionStrategy=/LeaveColorUnchanged -dDoNumCopies -r600 > -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -sOutputFile=/dev/null -c > .setpdfwrite my_v2.ps A simpler command line would help..... As always, I would not recommend using -dPDFSETTINGS, especially since that may override settings preceding it on the command line. > ==14433== Invalid write of size 8 > ==14433== at 0x4A0A555: memcpy@@GLIBC_2.14 (in > /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) > ==14433== by 0x4EBB9B8: s_Bicubic_process (string3.h:51) > ==14433== by 0x4DC2115: s_process_write_buf (stream.c:902) > ==14433== by 0x4DC23A6: spputc (stream.c:488) > > and under gdb with a -DDEBUG build: Both these problems indicate a fault in the bicubic image downsampler, so if you disable that it will solve your problem. Again, without seeing the input, I don't see any way to address the underlying problem. Also, you might want to try the most recent version of Ghostscript (9.14). Thanks. It seems to be fixed in 9.14. OK, thanks for letting us know! |