Bug 578789 - Deadlock situation when adding new JRE
Summary: Deadlock situation when adding new JRE
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.4   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.23 M3   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-02-16 09:33 EST by Mark Hoffmann CLA
Modified: 2022-02-16 10:47 EST (History)
1 user (show)

See Also:


Attachments
Thread-Dump (55.36 KB, text/plain)
2022-02-16 09:33 EST, Mark Hoffmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hoffmann CLA 2022-02-16 09:33:17 EST
Created attachment 288061 [details]
Thread-Dump

While adding a new JDK beside an existing one, I ended up with a deadlock.

- Menu: Window - Preferences - Java - Installed JRE - Add
- Select my JDK Folder
- Press "Apply"

See the attached treaddump!

The "main"-thread and 
"Worker-60: Update Installed JREs" 

are waiting for lock

0x000000070f611540

This is locked by thread "Worker-52: Update Installed JREs"

As default OpenJDK 11 was already in the JRE list. I added JDK8.

After the Eclipse Restart, the JDK8 was successfully added.
Comment 1 Mark Hoffmann CLA 2022-02-16 09:33:50 EST
It is not reproducable
Comment 2 Eclipse Genie CLA 2022-02-16 09:58:08 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/190854
Comment 3 Andrey Loskutov CLA 2022-02-16 10:01:22 EST
Most likely was "always" there, not a recent regression, but the fix is trivial, so M3.
Comment 5 Andrey Loskutov CLA 2022-02-16 10:47:52 EST
Regression from bug 237709 / 4.4. Should be fixed now.