xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54113] Deadlock in CompareUtil class
Date Mon, 03 Dec 2012 03:07:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54113

gareth@motorweb.co.nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from gareth@motorweb.co.nz ---
I've just hit this deadlock with FOP 1.1 in our production system (thread dump
snippet attached). It ran fine for a couple of weeks and then locked up. Given
this it would appear to be a race condition, and could not be reproduced by
running the same XSL-FO as requested by Alex Giotis.

It looks like this may have been exposed by the refactoring of PropertyCache
for 1.1, but my initial investigation suggests the root of the cause is putting
a Vector in the PropertyCache. When two threads are fetching from the cache
they compare two Vectors to each other and deadlock on the synchronized equals
and listIterator methods.

It would be better to use some other List implementation, or failing that,
synchronizing the cache fetch method.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message