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

Bug 48396

Summary: [Tasks] Deadlock running JDT/UI tests
Product: [Eclipse Project] Platform Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: UIAssignee: Stefan Xenos <sxenos>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2003-12-10 04:42:57 EST
Build 20031209

I was running the JDT/UI tests (AutomatedSuite) under the debugger and got the 
following deadlock:

org.eclipse.core.launcher.Main at localhost:1070 (Suspended)
	System Thread [Finalizer] (Suspended)
		
	System Thread [Reference Handler] (Suspended)
		
	Thread [main] (Suspended)
		Object.wait(long) line: not available [native method]
		Semaphore.acquire(long) line: 36
		OrderedLock.doAcquire(Semaphore, long) line: 153
		OrderedLock.acquire(long) line: 99
		OrderedLock.acquire() line: 75
		TableContentProvider.change(Collection) line: 242
		ProblemView(TableView).change(Collection) line: 95
		MarkerView$1.resourceChanged(IResourceChangeEvent) line: 115
		NotificationManager$2.run() line: 255
		InternalPlatform.run(ISafeRunnable) line: 809
		Platform.run(ISafeRunnable) line: 447
		NotificationManager.notify
(ResourceChangeListenerList$ListenerEntry[], IResourceChangeEvent, boolean) 
line: 248
		NotificationManager.handleEvent(LifecycleEvent) line: 233
		Workspace.broadcastEvent(LifecycleEvent) line: 155
		Project(Resource).unprotectedDelete(ResourceTree, int, 
IProgressMonitor) line: 1425
		Project(Resource).delete(int, IProgressMonitor) line: 649
		Project.delete(boolean, boolean, IProgressMonitor) line: 289
		JavaProjectHelper$1.run(IProgressMonitor) line: 117
		Workspace.run(IWorkspaceRunnable, ISchedulingRule, int, 
IProgressMonitor) line: 1555
		Workspace.run(IWorkspaceRunnable, IProgressMonitor) line: 1574
		JavaProjectHelper.delete(IJavaProject) line: 132
		ContentProviderTests1.tearDown() line: 382
		ContentProviderTests1(TestCase).runBare() line: 130
		TestResult$1.protect() line: 106
		TestResult.runProtected(Test, Protectable) line: 124
		TestResult.run(TestCase) line: 109
		ContentProviderTests1(TestCase).run(TestResult) line: 118
		TestSuite.runTest(Test, TestResult) line: 208
		TestSuite.run(TestResult) line: 203
		TestSuite.runTest(Test, TestResult) line: 208
		TestSuite.run(TestResult) line: 203
		AutomatedSuite(TestSuite).runTest(Test, TestResult) line: 208
		AutomatedSuite(TestSuite).run(TestResult) line: 203
		RemotePluginTestRunner(RemoteTestRunner).runTests(String[], 
String) line: 397
		RemotePluginTestRunner(RemoteTestRunner).run() line: 281
		RemotePluginTestRunner.main(String[]) line: 30
		UITestApplication$1.run() line: 92
		RunnableLock.run() line: 35
		UISynchronizer(Synchronizer).runAsyncMessages() line: 102
		Display.runAsyncMessages() line: 2271
		Display.readAndDispatch() line: 1979
		Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 
1537
		Workbench.runUI() line: 1513
		Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) 
line: 242
		PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) 
line: 139
		IDEApplication.run(Object) line: 47
		UITestApplication.run(Object) line: 34
		PlatformActivator$1.run() line: 242
		EclipseStarter.run(String[], Runnable) line: 84
		NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) 
line: not available [native method]
		NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
		DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
		Method.invoke(Object, Object[]) line: 324
		OSGiBootLoader.basicRun(String[], Runnable) line: 239
		OSGiBootLoader.run(String[], Runnable) line: 665
		OSGiBootLoader.run(String, URL, String, String[], Runnable) 
line: 652
		NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) 
line: not available [native method]
		NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
		DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
		Method.invoke(Object, Object[]) line: 324
		Main.basicRun(String[]) line: 299
		Main.run(String[]) line: 767
		Main.main(String[]) line: 601
	System Thread [Signal Dispatcher] (Suspended)
	Thread [Framework Event Dispatcher] (Suspended)
		
	Thread [Start Level Event Dispatcher] (Suspended)
		
	Thread [Worker-0] (Suspended)
		Object.wait(long) line: not available [native method]
		Semaphore.acquire(long) line: 36
		JobManager.join(InternalJob) line: 372
		TableContentProvider$WidgetRefreshJob(InternalJob).join() line: 
172
		TableContentProvider$WidgetRefreshJob(Job).join() line: 286
		TableContentProvider.doUpdate(IProgressMonitor) line: 357
		TableContentProvider.access$2(TableContentProvider, 
IProgressMonitor) line: 326
		TableContentProvider$3.run(IProgressMonitor) line: 150
		RestartableJob$2.run(IProgressMonitor) line: 62
		Worker.run() line: 62
	Thread [Worker-2] (Suspended)
		Thread.sleep(long) line: not available [native method]
		AnimationManager.animateLoop(IProgressMonitor) line: 321
		AnimationManager$3.run(IProgressMonitor) line: 471
		Worker.run() line: 62
	Thread [Thread-2] (Suspended)
		Object.wait(long) line: not available [native method]
		RunnableLock(Object).wait() line: 429
		UISynchronizer(Synchronizer).syncExec(Runnable) line: 149
		UISynchronizer.syncExec(Runnable) line: 25
		Display.syncExec(Runnable) line: 2611
		WorkbenchTestable.runTest(Runnable) line: 74
		UITestApplication.runTests() line: 90
		WorkbenchTestable$1.run() line: 51
		Thread.run() line: 534
	Thread [ReaderThread] (Suspended)
		SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, 
int) line: not available [native method]
		SocketInputStream.read(byte[], int, int) line: 129
		StreamDecoder$CharsetSD.readBytes() line: 408
		StreamDecoder$CharsetSD.implRead(char[], int, int) line: 450
		StreamDecoder$CharsetSD(StreamDecoder).read(char[], int, int) 
line: 182
		InputStreamReader.read(char[], int, int) line: 167
		BufferedReader.fill() line: 136
		BufferedReader.readLine(boolean) line: 299
		BufferedReader.readLine() line: 362
		RemoteTestRunner$ReaderThread.run() line: 126
	Thread [Java indexing] (Suspended)
		Object.wait(long) line: not available [native method]
		IndexManager(Object).wait() line: 429
		IndexManager(JobManager).run() line: 327
		Thread.run() line: 534
	Thread [Memory Monitor] (Suspended)
		Thread.sleep(long) line: not available [native method]
		MemoryView$1$MemoryUpdater.run() line: 504
	Thread [Worker-4] (Suspended)
		Object.wait(long) line: not available [native method]
		WorkerPool.sleep(long) line: 184
		WorkerPool.startJob(Worker) line: 210
		Worker.run() line: 55
Comment 1 Stefan Xenos CLA 2003-12-10 13:21:21 EST

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