Community
cancel
Showing results for 
Search instead for 
Did you mean: 
woshiwuxin
Novice
158 Views

idb for memory debug

I'm just wondering whether idb is capable of detecting bugs of memory management, i.e. memory leaks?
Thanks!
0 Kudos
9 Replies
Hubert_H_Intel
Employee
158 Views

The preferred tool for checking memory problems is the Intel Parallel Inspector included in the Intel Parallel Studio 2011 which is currently available for Windows only. A memory inspector tool will also be available for Linux soon.
More info on the Parallel Inspector at: http://software.intel.com/en-us/articles/intel-parallel-inspector/
Regards,
Hubert.
woshiwuxin
Novice
158 Views

Hubert, thank you!
Unfortunately, I'm a windows hater :(
aazue
New Contributor I
158 Views

Hi
If is an real leak I think ,using an tool analyzer ,result no value.
(My answer is for C/C++,i hope it would be value same with the Fortran)
For help add (ipo) flag for find more precise where fault point, could be an halt blank without message
After if possible increase progressive by step reserved memory or the size array and other var for unlock
this halt blank result.
With flto (gnu gcc) or ipo or other flag for reorganize the group of the functions in the object, you could discovering an variable memory responsible is moved wrong to an other variable no relation.
Also trace just point show (value variable) screen
it could be result some values added with extended incomprehensible characters without relation or NaN
The leak problem is complex ,more easy to make same (enlarge size reserved variable not justified;beyond is necessary really) that
you rewrite forced differently resulting the customer scream to you, is too expensive..... is theft ....

About (hater) i think it should not exist with programming sector.
Almost 28 years programming majority Unix side and i consider always Team Microsoft are my friends.
When i have problem C/CPP or other i have the better help is possible received from them
without, is judgment choice my O/S operated .
If you feed your family, today probably,thanks, to them existed history..
Regards.
JenniferJ
Moderator
158 Views

Coming out soon, we will have a similar toolset like Intel Parallel Studio for Linux developers.

I will post the news on this forum when it's available.

Regards!
Jennifer
woshiwuxin
Novice
158 Views

I'm not against MS. I used to be a windows fun. However, my windows experience, as a customer, could not suck more! First, more updated windows, more system resources consume. I'm atheoreticalchemist, and need to do some quantum mechanical computations. After booting the OS, windows consumes far more physical memory than the other OS ('far more' means at least four times and more!). The same computational package compiled on a windows machine could also be slower than that compiled on a UNIX or UNIX-like OS. Ipersonallythink this is related to the lack of memory, because at that time, windows always needs lots of page files (virtualmemory). I'm not a windows expert, maybe someone could optimize their windows to have a better performance.

For my question about memory debugger, I found some nice packages these days. They work just fine!
aazue
New Contributor I
158 Views

Hi
Sorry same you having wrote I supposed that your major activity is professional programming.
For activity that you denounced,yes it could be more appropriated to use O/S Unix side.
The performance depend library quality , in imbrication with your task
Yes O/S Microsoft side could be slow, if too services
superficial are loaded for nothing.
With adjustment of (daemon or services) really necessary the two systems could given difference
variation 7/15 % ,unfortunately not an miracle with one of two.
With true real leak ,I have use already different supposed appropriate tools without never obtain,
an really effective result . I finish always increase certain size
declaration, for forced kernel to changing the location of memory incriminated.
Fortunately real leak is very rare ,often , is rather the fault programming,where all tools disposed
is more effective for solving.
I use also for personal Linux: Debian 5.0 x86_64 ,with added new build GCC 4.5.1
I think difficult to find better....
Regards

jimdempseyatthecove
Black Belt
158 Views

Quoting woshiwuxin
I'm just wondering whether idb is capable of detecting bugs of memory management, i.e. memory leaks?
Thanks!

You might try this: http://www.codeproject.com/KB/cpp/MemoryLeakDetectionIn_CPP.aspx

The Code Project is an excellent programmer resource.

Also consider SourceForge.net http://sourceforge.net/projects/memdebug/


Jim Dempsey
dpeterc
Beginner
158 Views

You can also try Valgrind, especially if you are on Linux.
http://valgrind.org/
Works great and there was a new release just a couple of weeks ago.
Hubert_H_Intel
Employee
158 Views

As recently indicated, our new thread and memory error checker, the Intel Inspector XE 2011 is now released. The tool is part of the Intel Parallel Studio XE 2011 for Linux*.

For more details on the Intel Inspector XE 2011, please visit http://software.intel.com/en-us/articles/intel-inspector-xe/

For more information on Intel Parallel Studio XE 2011, please visit http://software.intel.com/en-us/articles/intel-parallel-studio-xe/

Regards, Hubert.

Reply