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

Bug 113441

Summary: [BC] Leading space being inserted in the cmdlinearg when launching processes with new process controller
Product: z_Archived Reporter: Karla Callaghan <karla.callaghan>
Component: TPTPAssignee: Igor Alelekov <igor.alelekov>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: igor.alelekov
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed471

Description Karla Callaghan CLA 2005-10-21 21:17:15 EDT
modifyApplicationParameters() is inserting a leading blank in the cmdlineargs, 
resulting in argv[0]=" " for the launched app on Windows.
Problem not seen on Linux because the cmdlinearg has some extra processing 
that strips any spaces.
Comment 1 Karla Callaghan CLA 2005-10-21 21:21:26 EDT
A workaround is now in place in launcher_md.c, that strips the leading white 
space prior to a Windows launch, as is done in Linux launch.

Leaving the bug open with 4.2 target so that the modifyApplicationParameters() 
code can be reviewed and fixed.
Comment 2 Kevin P O'Leary CLA 2006-03-31 19:45:34 EST
modifyApplicationParamters now does not add leading blanks.
Comment 3 Karla Callaghan CLA 2006-04-03 15:53:34 EDT
Vishnu had to roll-out the change as the use of PREPEND in a JUnit test caused a crash - the difference between two offsets was a -1 and malloc didn't like that.  Since any leading spaces are still being stripped by the PC just before launching, it was safer to roll this out until there's time to investigate this problem.
Comment 4 Karla Callaghan CLA 2006-09-11 12:32:54 EDT
Retarget to future since there is no impact to user as code is already stripping out the extra space before launch.
Comment 5 Karla Callaghan CLA 2007-02-05 13:37:25 EST
Transferring ownership of new agemt controller issues with no specific target date to Mikhail for consideration in future releases.
Comment 6 Igor Alelekov CLA 2007-10-25 05:06:09 EDT

*** This bug has been marked as a duplicate of bug 158672 ***
Comment 7 Paul Slauenwhite CLA 2007-12-19 07:58:47 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 8 Kathy Chan CLA 2010-11-18 18:55:06 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.