Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352472 - Possible Deadlock at IForm#waitFor
Summary: Possible Deadlock at IForm#waitFor
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andreas Hoegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 11:14 EDT by Claudio Guglielmo CLA
Modified: 2021-08-19 11:04 EDT (History)
2 users (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
Patch to resolve the bug. (1.03 KB, application/octet-stream)
2011-07-19 11:19 EDT, Claudio Guglielmo CLA
zimmermann: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Guglielmo CLA 2011-07-19 11:14:33 EDT
Build Identifier: 3.7.0

The following code leads to a deadlock:

ClientSyncJob closeJob = new ClientSyncJob("Close", ClientSyncJob.getCurrentSession()) {
  @Override
  protected void runVoid(IProgressMonitor monitor) throws Throwable {
    form.doClose();
  }
};
closeJob.schedule();

form.start(new FormHandler());
form.waitFor();

Expected result: Closing the form releases the lock. Instead waitFor blocks forever. 

I know it is not a real life example. Nevertheless it should be fixed.

Reproducible: Always
Comment 1 Claudio Guglielmo CLA 2011-07-19 11:19:45 EDT
Created attachment 199911 [details]
Patch to resolve the bug.
Comment 2 Andreas Hoegger CLA 2011-07-22 05:08:12 EDT
Patch applied on trunk and Indigo RC1.
Thank you Claudio.
Comment 3 Matthias Zimmermann CLA 2011-10-10 12:58:22 EDT
shipped with scout 3.7.1
Comment 4 Matthias Zimmermann CLA 2012-05-22 05:55:40 EDT
Comment on attachment 199911 [details]
Patch to resolve the bug.

moved iplog flag from bug to patch