You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/09/16 17:21:39 UTC
DO NOT REPLY [Bug 49942] New: Possible data-race on
NioEndpoint$PollerEvent.interestOps
https://issues.apache.org/bugzilla/show_bug.cgi?id=49942
Summary: Possible data-race on
NioEndpoint$PollerEvent.interestOps
Product: Tomcat 6
Version: 6.0.29
Platform: Macintosh
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: sergeyvorobyev@google.com
r997768
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
class NioEndpoint$PollerEvent
Possible data-race on protected int interestOps:
concurrent write in method 'public void reset(NioChannel ch, KeyAttachment k,
int intOps)' on line 1367
concurrent read in method 'public void run()' on line 1376
I add something like
System.out.println("x START " + Thread.getCurrentThread().getId() );
Thread.sleep(10);
...
System.out.println("x END " + Thread.getCurrentThread().getId() );
around this two lines. And I see interference between execution.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49942] Possible data-race on
NioEndpoint$PollerEvent.interestOps
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49942
konstantin.s.serebryany@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |konstantin.s.serebryany@gma
| |il.com
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49942] Possible data-race on
NioEndpoint$PollerEvent.interestOps
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49942
Sergey Vorobyev <se...@google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Sergey Vorobyev <se...@google.com> 2010-09-22 08:39:53 EDT ---
Sorry, I hurry. Now I can not verify data-race with interference mechanism. So
issue is invalid.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49942] Possible data-race on
NioEndpoint$PollerEvent.interestOps
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49942
Sergey Vorobyev <se...@google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergeyvorobyev@google.com
OS/Version| |All
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 49942] Possible data-race on
NioEndpoint$PollerEvent.interestOps
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49942
--- Comment #1 from Sebb <se...@apache.org> 2010-09-16 11:37:53 EDT ---
Also, interestOps is a protected variable, yet there are public methods to get
and set it. It would be safer to make the variable private.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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