Bug 691046

Summary: Memory handling problem when resolution too high
Product: Ghostscript Reporter: Tim Waugh <twaugh>
Component: CUPS driverAssignee: Marcos H. Woehrmann <marcos.woehrmann>
Status: RESOLVED DUPLICATE    
Severity: normal CC: till.kamppeter
Priority: P4    
Version: 8.70   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Tim Waugh 2010-01-05 08:42:55 UTC
With ghostscript-8.70 on Fedora 12, gs crashes while reclaiming memory after
gdevcups tries to allocate a very large buffer.

For instructions on how to reproduce this problem:
  https://bugzilla.redhat.com/show_bug.cgi?id=549901#c7

I haven't been able to figure out quite where the problem comes from.
Comment 1 Ray Johnston 2010-01-07 10:20:31 UTC
Marcos will try and reproduce.
Comment 2 Tim Waugh 2010-03-23 11:30:12 UTC
Setting the RIP_MAX_CACHE environment variable to "128m" works around the problem because the buffer allocation then succeeds.

So it's something to do with when allocations fail due to the space_params having been exceeded.
Comment 3 Till Kamppeter 2010-08-12 19:03:03 UTC
From the Ghostscript side already fixed in SVN rev 11547. But see my comments in

http://bugs.ghostscript.com/show_bug.cgi?id=691499

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