Bug 60513 - RMI leak cleaning is not thread safe
Summary: RMI leak cleaning is not thread safe
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.0.30
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-22 20:24 UTC by Mark Thomas
Modified: 2017-01-02 14:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Thomas 2016-12-22 20:24:31 UTC
As reported via users list.
https://lists.apache.org/thread.html/7b6c57b1838f180019bdd2bf8bf673b3b2365fe74f0e035b3b20cf8c@%3Cusers.tomcat.apache.org%3E

With multiple start/stop threads, concurrent calls are possible to the RMI leak cleaning which is not thread safe.
Comment 1 Remy Maucherat 2017-01-02 14:43:45 UTC
I added sync on the (static) objTable field from sun.rmi.transport.ObjectTable, and this should fix the issue, although I didn't attempt to reproduce the exception.
It will be in 9M16, 8.5.10, 8.0.40 and 7.0.74.