[gs-bugs] [Bug 693001] Increased memory usage

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Apr 23 23:52:25 UTC 2012


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

--- Comment #1 from Marcos H. Woehrmann <marcos.woehrmann at artifex.com> 2012-04-23 23:52:25 UTC ---
git bisect reports:

fe8d7b6aebfed3c724a860e31ff170764d5429dc is the first bad commit
commit fe8d7b6aebfed3c724a860e31ff170764d5429dc
Author: Ray Johnston <ray.johnston at artifex.com>
Date:   Thu Aug 18 17:01:43 2011 -0700

    Fix bug 692372: Add finalize for imager_state to ref_count decrement icc
structs.

    The graphics atates were being freed by the 'alloc_restore_all' done during
gs_lib_finit
    but the icc_link_cache was not getting its ref_count decremented, so it
never freed the
    semaphore which caused handles to be lost by windows. The
rc_gsicc_profile_cache_free
    function is also fixed to save the 'next' pointer to avoid dereferencing
freed memory.

    Note that we _should_ be able to call gs_imager_state_release to decrement
the counts
    of ALL of the elements, but the ref counting of the other elements is _so_
badly
    maintained that some elements (dev_ht and halftone) are prematurely freed
by this.
    This change is enough to fix the bug and pass cluster regression.

:040000 040000 afe2b43186237dffb5abfc54fcc34056226f10d2
048ef1e745c0852e137953bcc2853fd5451413e9 M    gs

-- 
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