[gs-bugs] [Bug 692979] Race condition in 'find_context' thread debug function
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Mon Apr 9 11:30:55 UTC 2012
http://bugs.ghostscript.com/show_bug.cgi?id=692979
--- Comment #1 from Bas Weelinck <bas.weelinck at gmail.com> 2012-04-09 11:30:54 UTC ---
Now that I think about it, there will still be a race condition with my patch
applied.. since I did not think about the first if failing when it checks for
equality and then failing upon checking for NULL, in which case the same
context could be inserted multiple times at different positions.
It would seem the find_context function requires a fast mutex lock anyway. So
the fix would be to keep the old code and put the lock around the original for
loop.
--
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