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 2015/09/12 18:10:31 UTC
[Bug 58384] New: Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcessCount
https://bz.apache.org/bugzilla/show_bug.cgi?id=58384
Bug ID: 58384
Summary: Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backg
roundProcessCount
Product: Tomcat 8
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: WebSocket
Assignee: dev@tomcat.apache.org
Reporter: yilong.li@runtimeverification.com
Reported by RV-Predict (a dynamic race detector) when running the test suite:
Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcessCount: {{{
Concurrent write in thread T43 (locks held: {})
----> at
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcess(WsWebSocketContainer.java:862)
at
org.apache.tomcat.websocket.BackgroundProcessManager.process(BackgroundProcessManager.java:91)
at
org.apache.tomcat.websocket.BackgroundProcessManager.access$000(BackgroundProcessManager.java:32)
at
org.apache.tomcat.websocket.BackgroundProcessManager$WsBackgroundThread.run(BackgroundProcessManager.java:119)
T43 is created by T1
at
org.apache.tomcat.websocket.BackgroundProcessManager.register(BackgroundProcessManager.java:66)
Concurrent read in thread T34 (locks held: {})
----> at
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcess(WsWebSocketContainer.java:862)
at
org.apache.tomcat.websocket.BackgroundProcessManager.process(BackgroundProcessManager.java:91)
at
org.apache.tomcat.websocket.BackgroundProcessManager.access$000(BackgroundProcessManager.java:32)
at
org.apache.tomcat.websocket.BackgroundProcessManager$WsBackgroundThread.run(BackgroundProcessManager.java:119)
T34 is created by T1
at
org.apache.tomcat.websocket.BackgroundProcessManager.register(BackgroundProcessManager.java:66)
}}}
Not sure if this counter has to be precise, but I am reporting it anyway.
--
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
[Bug 58384] Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcessCount
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58384
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Based on the dev-list disucssion [1] I am reverting this fix and resolving this
as invalid since it appears to be a false positive.
[1] http://tomcat.markmail.org/thread/sz6afdhnrxnqiylt
--
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
[Bug 58384] Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcessCount
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58384
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
The worst that would happen is a slight delay in WebSocket session expiration
so negative impacts for applications is unlikely.
Fixed in trunk and 8.0.x for 8.0.27 onwards.
--
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
[Bug 58384] Data race on field
org.apache.tomcat.websocket.WsWebSocketContainer.backgroundProcessCount
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58384
--- Comment #3 from Yilong Li <yi...@runtimeverification.com> ---
Interesting, I have my reservations on this. I will find some time to
investigate it further. Thanks!
--
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