Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319863 - Logging service and console manager not handling channel lifetimes properly
Summary: Logging service and console manager not handling channel lifetimes properly
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Swartz CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 10:54 EDT by Ed Swartz CLA
Modified: 2010-07-14 15:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.