Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 151208 - RTC does not work for experiment
RTC does not work for experiment
Product: cnd
Classification: Unclassified
Component: Project
All All
: P2 (vote)
: 6.x
Assigned To: Thomas Preisler
Depends on:
  Show dependency treegraph
Reported: 2008-10-23 20:12 UTC by Thomas Preisler
Modified: 2009-02-19 20:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Preisler 2008-10-23 20:12:17 UTC
From CR 6762026

Steps to reproduce:
- download and untar attached test projects rtc.tar (configured for Solaris Sparc)
- run IDE
- open rtc_basic_1 project from .../rtc/projects/
- call Advanced->Runtime Memory Checking->Start
Result: 'Starting Debugging' window appears with a message 'Connecting to Dbx' and a progress bar. When window disappears 'Runtime Memory Checking' panel contains empty tabs 'Access Errors', 
'Memory Usage' and 'Memory Leaks'.

RTC works fine while debugging.
*** (#1 of 1): 2008-10-21 11:39:36 PDT alexander

The root cause of this is that the Build.Linker.Output property of
the configuration contains a string like this:


In batch mode we access this property MakeConfiguration.getAbsoluteOutputValue().
Which returns an excutable path with an embedded ${PLATFORM}.
I do not believe that the contract for MC.gAOV() allows for embedded "variables".

I believe this does warrant a P2 because the ${PLATFORM} is always present 
and will always gum things up.

How come the debugger doesn't suffer from this?
That is because the debugger startup code gets called from the bowels of CND
project code and uses ProjectActionEvent.getExecutable() where the ${} 
variable has been pre-expanded by CND.

Does ATD provide an analog of this?
ATAction.collect() gets a Map and it looks like it contains an expanded
executable path embedded in it in a strange way. See ProfilableProjectProvider.toString(). But this doesn't look official enough.

At this point this seems to be a CND/ATD problem:
a) What is the contract for MakeConfiguration.getAbsoluteOutputValue()?
   "Absolute" is a term used in file names and paths so the implication of
   the _name_ of this method is that it will return a pathname ...
   w/o embedded ${}'s.
b) If CND wants to renage on this how can I get at the expanded executable name
   in ATD?
*** (#1 of 4): 2008-10-21 13:47:41 PDT ivan

A secondary prolem is that when dbx encounters this bad eecutable with
an embeded ${} it posts an error but dbxgui doesn't handle this 
error gracefully enough. I filed a separate CR 6762119 on this.
*** (#2 of 4): 2008-10-21 13:51:51 PDT ivan
*** Last Edit: 2008-10-21 13:55:13 PDT ivan

you can call 
path = configuration.expandMacros(path);
to work around the problem.

ATD should expand the code for you.
*** (#3 of 4): 2008-10-21 14:01:27 PDT thomas

I can call expandMacros() ...
What happens if some macros are unexpandable?

It doesn't make sense to talk about ATD pre-expanding because AFAIK
there's no API for providing the executable name to begin with.

However, are you willing to consider the return of MakeConfiguration.getAbsoluteOutputValue() as buggy?
*** (#4 of 4): 2008-10-22 13:56:21 PDT ivan

Yes, MakeConfiguration.getAbsoluteOutputValue() should probably expand the macros.
Comment 1 Thomas Preisler 2008-10-27 03:54:13 UTC
Fixed. Now expanding macros in MakeConfiguration.getAbsoluteOutputValue()
Comment 2 Quality Engineering 2008-10-27 16:41:20 UTC
Integrated into 'main-golden', will be available in build *200810271401* on (upload may still be in progress)
User: Thomas Preisler <>
Log: #151208 RTC does not work for experiment
Comment 3 Alexander Pepin 2008-11-20 14:55:48 UTC
can not be verified without SS build
Comment 4 pslechta 2008-11-21 14:28:54 UTC
Is this issue verified or not? It is in verified state, but the last comment says that it "can not be verified without
SS build"... So what is the real status of this issue?
Comment 5 Thomas Preisler 2008-11-21 21:52:03 UTC
It has been verified by Ivan in a private build. Alexander, I think you can go ahead and mark it verified.
Comment 6 Alexander Pepin 2008-11-22 22:36:01 UTC
Comment 7 pslechta 2008-11-25 11:42:21 UTC
The fix was ported into release65_fixes repository.
Comment 8 Alexander Pepin 2008-12-01 17:18:41 UTC
verified in SSIDE with patch1
Comment 9 Thomas Preisler 2009-01-27 06:13:13 UTC
SS IDE is now based on NB 5.4 patch 1

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo