https://issues.apache.org/bugzilla/show_bug.cgi?id=55826
Bug ID: 55826
Summary: Unsynchronised concurrent accesses to list in field
RespTimeGraphVisualizer.internalList
Product: JMeter
Version: 2.10
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
We ran our static analysis tool ThreadSafe [1] on version 2.10 of JMeter, which
appeared to uncover a couple of concurrency issues. One of the most interesting
was a potential for unsynchronised concurrent accesses to the LinkedList stored
in the field RespTimeGraphVisualizer.internalList.
The list stored in this field can be read from the method
RespTimeGraphVisualize.actionPerformed(..), which will be called by the Swing
UI thread, and is also modified by the method RespTimeGraphVisualizer.add(..),
is a call-graph descendent of the run() method of the thread
AsynchSampleSender.Worker thread.
Therefore, it is possible that incorrect data may be read from the list by the
UI thread, due to the lack of synchronisation.
We're not sure that this can actually result in a user-visible bug, but we
thought you'd like to know.
We are also planning to use this finding as an example of Android-related
concurrency mistakes in an article about ThreadSafe. Obviously, if you, as the
developers of JMeter, have any objections to our using this as an example, then
we won't.
[1] ThreadSafe is a static analysis tool for Java concurrency, developed by
Contemplate Ltd.:
http://www.contemplateltd.com/
--
You are receiving this mail because:
You are the assignee for the bug.