[gs-bugs] [Bug 692352] New: GS PDF conversion eats up and corrupts memory

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jul 18 09:14:12 UTC 2011


           Summary: GS PDF conversion eats up and corrupts memory
           Product: Ghostscript
           Version: master
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: normal
          Priority: P4
         Component: Color
        AssignedTo: michael.vrhel at artifex.com
        ReportedBy: tomatensaft at gmail.com
         QAContact: gs-bugs at ghostscript.com

Created an attachment (id=7683)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=7683)
An example file causing crashes

When trying to convert the file to JPEG, Ghostscript uses up about 1.8 GB of
memory, then "Access violation" error is raised, somewhere in color management
code (zusparam.c:994 and gsicc_lcms.c:304). 

Tested it with revision 99cbbdaad585b78dfd32db6dc59c08f9743d8d6a from
2011-07-11 11:22:20. 

Just before crashing it always fails allocating some memory (FIY, test machine
is an Intel 2 Duo 7400 with 3 GB of RAM):

[a+]gs_malloc(lcms)(557188) = 0x0: failed, used=1778217020, max=1778217020
  .\base\gsicc_lcms.c:33: gscms_error(): cmm error : Couldn't allocate 557188
bytes for profile
[a+]gs_malloc(lcms)(1679046) = 0x0: failed, used=1777720558, max=1778217020

Depending on the execution method (using gswin32.exe or my own application and
gslib32.dll), it fails allocating different bits of memory and crashes in
different places, but consistently for each execution method (the above message
was from the DLL test). 

The offending file is attached. It's a fairly big PDF full of photos,
apparently made with Adobe InDesign CS4.

I tried opening it in Evince, at it did open it fine with only max 32 MB of
peak memory usage, although it did take it more time to process it, than it
usually takes. 

In case it doesn't get attached, here's a Dropbox link to it:

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list