tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54555] New: Protect possible concurrent accesses to field "org.apache.tomcat.util.net.AbstractEndpoint.executor"
Date Tue, 12 Feb 2013 23:40:34 GMT
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: dev@tomcat.apache.org
          Reporter: reprogrammer@gmail.com
    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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message