https://issues.apache.org/bugzilla/show_bug.cgi?id=54555
Bug ID: 54555
Summary: Protect possible concurrent accesses to field
"org.apache.tomcat.util.net.AbstractEndpoint.executor"
Product: Tomcat 8
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
1. Method "org.apache.tomcat.util.net.AbstractEndpoint.startAcceptorThreads()"
may spawn threads of type "org.apache.tomcat.util.net.AprEndpoint.Acceptor".
2. Method "org.apache.tomcat.util.net.AprEndpoint.Acceptor.run()" may invoke
method "org.apache.tomcat.util.net.AprEndpoint.processSocketWithOptions(long)".
3. Method
"org.apache.tomcat.util.net.AprEndpoint.processSocketWithOptions(long)" may
invoke method "org.apache.tomcat.util.net.AbstractEndpoint.getExecutor()".
4. Method "org.apache.tomcat.util.net.AbstractEndpoint.getExecutor()" reads the
value stored in field "org.apache.tomcat.util.net.AbstractEndpoint.executor".
The chain of method calls 1 -> 2 -> 3 -> 4 may access a shared field "executor"
without any synchronization.
Please consider making the field "executor" volatile or synchronizing
concurrent accesses to this field.
Field "executor" is declared inside
<https://svn.apache.org/repos/asf/!svn/bc/1445426/tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java>.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]