Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] ASTCacheTests.testASTCache() hangs

I'm quite sure, it did not really hang, but
it could get quite "slow" because of unlucky
timing of the concurrent threads.
I changed some timing parameters and it should
run much faster now.

Thanks,
Toni

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Emanuel Graf
> Sent: Thursday, April 05, 2007 5:10 PM
> To: CDT General developers list.
> Subject: Re: [cdt-dev] ASTCacheTests.testASTCache() hangs
> 
> Voilà
> 
> Thread [main] (Suspended)       
>         Object.wait(long) line: not available [native method]   
>         Object.wait() line: 485 
>         ASTCache.getAST(ITranslationUnit, IIndex, boolean, 
> IProgressMonitor) 
> line: 
> 134     
>         ASTCacheTests.checkAccessWithConcurrentReconciler() 
> line: 226   
>         ASTCacheTests.testASTCache() line: 130  
>         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: 597      
>         ASTCacheTests(TestCase).runTest() line: 164     
>         ASTCacheTests(TestCase).runBare() line: 130     
>         ASTCacheTests(BaseTestCase).runBare() line: 112 
>         TestResult$1.protect() line: 106        
>         TestResult.runProtected(Test, Protectable) line: 124    
>         TestResult.run(TestCase) line: 109      
>         ASTCacheTests(TestCase).run(TestResult) line: 120       
>         ASTCacheTests(BaseTestCase).run(TestResult) line: 139   
>         TestSuite.runTest(Test, TestResult) line: 230   
>         TestSuite.run(TestResult) line: 225     
>         TestSuite.runTest(Test, TestResult) line: 230   
>         TestSuite.run(TestResult) line: 225     
>         AutomatedIntegrationSuite(TestSuite).runTest(Test, 
> TestResult) line: 
> 230        
>         AutomatedIntegrationSuite(TestSuite).run(TestResult) 
> line: 225  
>         JUnit3TestReference.run(TestExecution) line: 130        
>         TestExecution.run(ITestReference[]) line: 38    
>         
> RemotePluginTestRunner(RemoteTestRunner).runTests(String[], String, 
> TestExecution) line: 460        
>         
> RemotePluginTestRunner(RemoteTestRunner).runTests(TestExecutio
> n) line: 
> 673      
>         RemotePluginTestRunner(RemoteTestRunner).run() line: 
> 386        
>         RemotePluginTestRunner.main(String[]) line: 58  
>         UITestApplication$1.run() line: 122     
>         RunnableLock.run() line: 35     
>         
> UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 
> 123        
>         Display.runAsyncMessages(boolean) line: 3233    
>         Display.readAndDispatch() line: 2926    
>         Workbench.runEventLoop(Window$IExceptionHandler, 
> Display) line: 2337    
>         Workbench.runUI() line: 2301    
>         Workbench.access$4(Workbench) line: 2176        
>         Workbench$4.run() line: 463     
>         Realm.runWithDefault(Realm, Runnable) line: 289 
>         Workbench.createAndRunWorkbench(Display, 
> WorkbenchAdvisor) line: 458    
>         PlatformUI.createAndRunWorkbench(Display, 
> WorkbenchAdvisor) line: 149   
>         IDEApplication.start(IApplicationContext) line: 101     
>         UITestApplication.start(IApplicationContext) line: 52   
>         EclipseAppHandle.run(Object) line: 146  
>         EclipseAppLauncher.runApplication(Object) line: 106     
>         EclipseAppLauncher.start(Object) line: 76       
>         EclipseStarter.run(Object) line: 356    
>         EclipseStarter.run(String[], Runnable) line: 171        
>         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: 597      
>         Main.invokeFramework(String[], URL[]) line: 476 
>         Main.basicRun(String[]) line: 416       
>         Main.run(String[]) line: 1141   
>         Main.main(String[]) line: 1116  
> 
> Greetings,
> Emanuel
> 
> 
> On Thursday 05 April 2007 14:47, Leherbauer, Anton wrote:
> > Could you provide a stack dump when it hangs?
> > Thanks,
> > Toni
> >
> > > -----Original Message-----
> > > From: cdt-dev-bounces@xxxxxxxxxxx
> > > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Emanuel Graf
> > > Sent: Thursday, April 05, 2007 2:01 PM
> > > To: CDT General developers list.
> > > Subject: [cdt-dev] ASTCacheTests.testASTCache() hangs
> > >
> > > Hi all
> > >
> > > I just noticed that the testASTCache()-Test hangs.  I'm not
> > > sure what's
> > > breaking it so if someone can take a look at it that'd be great.
> > >
> > > regards
> > > Emanuel Graf
> > > --
> > > ===============================================================
> > > Emanuel Graf                               e-mail: egraf@xxxxxx
> > > Institut fuer Software
> > > Hochschule fuer Technik Rapperswil
> > > Oberseestrasse 10
> > > CH-8640 Rapperswil (Switzerland)       phone:  +41 55 222 46 22
> > > ===============================================================
> > > _______________________________________________
> > > cdt-dev mailing list
> > > cdt-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top