Solved

BoundsChecker causing cl.exe to crash

Posted on 2007-11-21
11
911 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:DeepuAbrahamK
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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:DeepuAbrahamK
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:DeepuAbrahamK
ID: 20337711
cool
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

624 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