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

Bug 319863

Summary: Logging service and console manager not handling channel lifetimes properly
Product: [Tools] CDT Reporter: Ed Swartz <ed.swartz>
Component: cdt-debug-edcAssignee: Ed Swartz <ed.swartz>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ed Swartz CLA 2010-07-14 10:54:36 EDT
The Logging service and console manager has some flakiness since it associates a TCF channel with a console, but the channel's lifetime is not fully contained within the console's lifetime.

First, the console log manager assumes the TCF channel has the exact same lifetime as the debug session.  But there is no guarantee the channel is open yet, or that it is reopened on every launch.

Also, the logging proxy's listener list does not prevent the same listener from being added more than once, as is usual in listener implementations.

Finally, the console log manager for a channel is not cleaned up if a console is re-registered.  Thus, leftover managers can be left behind.
Comment 1 Ed Swartz CLA 2010-07-14 14:28:53 EDT
Fixed on HEAD.