Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

BoundsChecker causing cl.exe to crash

Posted on 2007-11-21
11
Medium Priority
?
928 Views
Last Modified: 2013-12-14
Hello,

I am using Compuware BoundsChecker 8.2.1 version (I had same problems even with earlier versions) on VS 2005 and I get problems in building project with Instrumentation on. It shows that the Microsoft (R) C/C++ Optimizing Compiler has encountered a problem and needs to close.

In fact same crash occur in VC 6.0 too.
In VS 2005 I have installed SP1, but that did not helped. I have Incredibuild installed too, but I do not use it to build with instrumentation.

Did anyone had the same problem before and was luck to solve it?
Thanks
0
Comment
Question by:Reperio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
11 Comments
 
LVL 11

Expert Comment

by:Deepu Abraham
ID: 20326601
Try these settings:
Project->Properties->Config Properties->c++->Optimization-> Disable
Project->Properties->Config Properties->c++->Global Optimizations-> No
Best Regards,
DeepuAbrahamK
0
 

Author Comment

by:Reperio
ID: 20326618
They are off in "Debug" config. It do not help.
0
 

Author Comment

by:Reperio
ID: 20326635
Compuware replied:

"Having Incredibuild installed at the same time as DevPartner is a known
issue and will cause instrumentation problems along with possible crashing.
Also, any anti virus software installed on a development machine while using
DevPartner studio is a known issue and may cause problems.

It is recommend that you you remove Incredibuild and disable any
anti-virus software when profiling with DevPartner Studio as this constitutes an
unsupported environment."

But, figuratively speaking, it is not a good solution!!!
Its interesting, what causing such problems...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:evilrix
ID: 20326765
BoundsChecker is instrumenting your code during a build, meaning it is injecting additional code into the final binary that is then used to facilitate its ability to check for out of bounds situations. I guess the problem is that Incredibuild is also attempting to modify the code (it's an aggressive optimizer, right?) and the two are conflicting. Are you able to disable Incredibuild on an ad-hoc basis? If so maybe you can just disable it when you need to do BoundsChecker intrumented builds.

As for the AV problem, I can only guess that the concern is that the AV Engine may scan a binary with instrumentation and false positive on it -- I've never had problems with AV Engines before when building instrumented code.

-Rx.
0
 

Author Comment

by:Reperio
ID: 20326786
It is strange, because there are two ways: to use VC++ Build or with Incredibuild. I use the first one for Instrumentation and Incredibuild should not influence this method of build.

I look for a way to disable Incredibuild quickly. Simple "Service Stop" do not works. I wonder how it could be done...
0
 
LVL 11

Expert Comment

by:Deepu Abraham
ID: 20326807
Not sure incredibuild injects any code though. I am using it diffrent profilers
Best Regards,
DeepuAbrahamK
0
 
LVL 40

Expert Comment

by:evilrix
ID: 20326841
>> Not sure incredibuild injects any code though
Yes, I've just looked at the website and it seems to be a build facilitator rather than an optimizer. It allows for, amongst other things, distributed builds. I suppose, if this is what's being done I can see how this could be a problem... if parts of the build are done with instrumentation and parts aren't.

http://www.xoreax.com/technology_architecture.htm

I can only suggest disabling it if you don't want to remove it -- if that's possible. I don't know this product so I cannot advise further.

-Rx.
0
 

Accepted Solution

by:
Reperio earned 0 total points
ID: 20337607
Problem was solved from IncrediBuild side.

Suggested actions:
1. Please set interoperability mode to Disabled and try again running the instrumented BoundsChecker build.
If the build finishes successfully, it means that BoundsChecker cannot run when IncrediBuild Interoperability mode is enabled.
2. Please remember to enable the Interoperability mode once running VS builds without BoundsChecker.

And it worked.
Thank you for support
0
 
LVL 40

Expert Comment

by:evilrix
ID: 20337671
Ah, good :)
Very welcome.
0
 
LVL 11

Expert Comment

by:Deepu Abraham
ID: 20337711
cool
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question