Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369872 - Need to make routing files unique for each run
Summary: Need to make routing files unique for each run
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Debug SDM (show other bugs)
Version: 5.0.4   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 16:42 EST by Greg Watson CLA
Modified: 2012-08-20 13:17 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 Greg Watson CLA 2012-01-26 16:42:08 EST
Currently the routing information is stored in a file called "routing_file". Since the same name is used for each run, it is easy for an old file to accidentally get picked up by the SDM. This causes the debugger launch to fail.
Comment 1 Greg Watson CLA 2012-08-15 13:09:02 EDT
This really needs to make the routing file unique for each run. The perl helper scripts could create a temporary file using tempfile(), then pass this to the sdm as an argument. The sdm would need to be modified to accept the routing file path as an argument. 

The bug description has been updated.
Comment 2 Greg Watson CLA 2012-08-16 17:25:06 EDT
The routing file needs to be created in the user's home directory tree or somewhere that is shared across nodes. Using a file in /tmp probably won't work except on a single machine. The cwd for the launch script is probably ok.
Comment 3 Greg Watson CLA 2012-08-20 13:17:10 EDT
Added support to sdm to be able to specify routing file path. Launch scripts will use a unique name (using PID of script) to create a routing file in the current working directory (usually where the executable is located, but not always).