Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / June 2007

Tip: Looking for answers? Try searching our database.

is there a way to validate heap on release application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Voronkov Konstantin - 19 Jun 2007 17:51 GMT
Hello, All!

I suppose there is a bug in mine applicaiton and some random bytes is
written into stack memory (memory overflow).

I found a tool to validate heap gflags.exe, but unfortunatelly it does not
validate stack overflow problem.

Is there any tool to help analysis the problem?

Best Regards,
Voronkov Konstantin
Oleg Starodumov - 19 Jun 2007 18:59 GMT
> I suppose there is a bug in mine applicaiton and some random bytes is
> written into stack memory (memory overflow).
>
> I found a tool to validate heap gflags.exe, but unfortunatelly it does not validate stack overflow problem.
>
> Is there any tool to help analysis the problem?

This one claims that it can do it (I haven't tried myself):
http://www.softwareverify.com/cpp/memory/index.html

Some other things you can try:
- /GS compiler option (should catch some stack corruptions)
- /RTC compiler option (the same)
- Tracing (if the application terminates because of stack corruption,
 it will tell you what functions were called last and should be suspects)
- Data breakpoints, if you know which buffers you want to monitor

Signature

Oleg
[VC++ MVP http://www.debuginfo.com/]

Voronkov Konstantin - 20 Jun 2007 09:18 GMT
I see all tools to detect stack overruns need to rebuild application, I
though there is some magic tool which can detect stack overrun without
rebuild applicaiton, as possible for heap problems detection :-)

Thanks for you help,

Konstantin

>> I suppose there is a bug in mine applicaiton and some random bytes is
>> written into stack memory (memory overflow).
[quoted text clipped - 13 lines]
>  it will tell you what functions were called last and should be suspects)
> - Data breakpoints, if you know which buffers you want to monitor

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.