Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 252078 - 'Bad address' error starting master SDM from PE proxy
Summary: 'Bad address' error starting master SDM from PE proxy
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 2.1RC3   Edit
Hardware: Power PC Unix All
: P3 normal (vote)
Target Milestone: 2.1RC4   Edit
Assignee: Greg Watson CLA
QA Contact: Craig E Rasmussen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-24 18:34 EDT by David Wootton CLA
Modified: 2008-10-24 20:44 EDT (History)
0 users

See Also:


Attachments
Fix 'Bad address' error in PE proxy (1.03 KB, patch)
2008-10-24 18:34 EDT, David Wootton CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Wootton CLA 2008-10-24 18:34:05 EDT
Created attachment 116120 [details]
Fix 'Bad address' error in PE proxy

The PE proxy reports a 'Bad address' error 'PE@k17sf2p03: 10/24 14:06:38 T(256) Error: sdm failed to execute, status Bad address' when trying to debug a parallel application. This error occurs because the environment variable array pointer passed to the execve() function call to invoke the master SDM process was invalid. The environment variable array pointer was filled in in the child side of a previous fork to invoke the child SDM processes, so the copy in the PE proxy process was invalid.

This patch moves the setup of the environment variable array into the PE proxy process so that it will be valid when it is needed to start the master SDM process.
Comment 1 Greg Watson CLA 2008-10-24 20:44:02 EDT
Applied.