Bug 529583 - deadlock when canceling XML analyses
Summary: deadlock when canceling XML analyses
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-09 10:14 EST by Genevieve Bastien CLA
Modified: 2018-01-09 10:14 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Genevieve Bastien CLA 2018-01-09 10:14:19 EST
To reproduce:

* Run an XML pattern analysis
* Cancel it from the progress view
* The UI thread hangs

There's a deadlock when canceling and XML analysis, the cancel methods being synchronized (and in the UI thread). It's waiting for queue to be empty, but the empty queue event is being processed by another thread and waiting for additional events that will never come because the request itself is waiting to see if it's completed, which it can't know because the cancel method is also synchronized...