Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341608

Summary: deadlock in I20110329-0800
Product: [Eclipse Project] Platform Reporter: Paul Webster <pwebster>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: eclipse.felipe, ob1.eclipse
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
javacore stack dump none

Description Paul Webster CLA 2011-04-01 08:20:44 EDT
I was running our UI test suite and it deadlocked.  I've attached a stack dump.

We're waiting on a job in the UI thread, in:
org/eclipse/ui/tests/preferences/FontPreferenceTestCase.testNonUIThreadFontAccess(FontPreferenceTestCase.java:168)

and that looks like it hit a gtk lock in another thread, but I'm not 100% sure that's what is going on.

3XMTHREADINFO      "Worker-2" (TID:0x00007FA1A8008800, sys_thread_t:0x0000000003815888, state:R, native ID:0x00000000000064F9) prio=5
4XESTACKTRACE          at org/eclipse/swt/internal/gtk/OS.gdk_threads_enter(Native Method)
4XESTACKTRACE          at org/eclipse/swt/internal/Lock.lock(Lock.java:29(Compiled Code))
4XESTACKTRACE          at org/eclipse/swt/internal/gtk/OS.pango_font_description_get_family(OS.java:14394)
4XESTACKTRACE          at org/eclipse/swt/graphics/Font.getFontData(Font.java:183)
4XESTACKTRACE          at org/eclipse/ui/tests/preferences/FontPreferenceTestCase.checkFont(FontPreferenceTestCase.java:183)
4XESTACKTRACE          at org/eclipse/ui/tests/preferences/FontPreferenceTestCase$2.run(FontPreferenceTestCase.java:161)
4XESTACKTRACE          at org/eclipse/core/internal/jobs/Worker.run(Worker.java:54)
Comment 1 Paul Webster CLA 2011-04-01 08:21:07 EDT
Created attachment 192348 [details]
javacore stack dump
Comment 2 Paul Webster CLA 2011-04-01 08:49:06 EDT
This effects me on both IBM 1.5 and 1.6 Java SDKs.

PW
Comment 3 Oleg Besedin CLA 2011-04-01 09:27:08 EDT
On Windows 7 all tests pass. (Which hardly surprising if it is a GTK-related problem).
Comment 4 Felipe Heidrich CLA 2011-04-01 09:54:49 EDT

*** This bug has been marked as a duplicate of bug 341085 ***