<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 06/03/2012 13:55, Antonio Fortuny wrote:
<blockquote cite="mid:jj5512$oqc$1@dough.gmane.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi all.<br>
<br>
Sorry if this is a silly question but I can't find the answer into
this forun.<br>
How to get the function names in the heaptrc trace ?<br>
I use in project options:<br>
in Linking options:<br>
generate debug info for dgb<br>
show line numbers<br>
use symbol file for gdb<br>
use "heaptrc"<br>
</blockquote>
<br>
that sounds around correct.<br>
<br>
Please test those settings on a dummy project<br>
A simple form, in formcreate, create a new object, and never free it<br>
TObject.Create;<br>
<br>
<br>
Maybe test with explicit "dwarf" or "stabs" ?<br>
<br>
<br>
Your FPC is "as installed" or self compiled?<br>
<br>
<blockquote cite="mid:jj5512$oqc$1@dough.gmane.org" type="cite"> <br>
in project .pas the very first line is:<br>
SetHeapTraceOutput(ChangeFileExt(ParamStr(0), '.log'));<br>
<br>
File program.log is created ok:<br>
<br>
Heap dump by heaptrc unit<br>
3564 memory blocks allocated : 1746202/1754304<br>
3563 memory blocks freed : 1746174/1754272<br>
1 unfreed memory blocks : 28<br>
True heap size : 425984 (96 used in System startup)<br>
True free heap : 429024<br>
Should be : 425792<br>
Call trace for block $001F14E8 size 28<br>
<i><b> $0061997C<br>
$0040D5A4<br>
$00411EC1<br>
</b></i>How to get details about the source code generating
those memory leaks ?<br>
</blockquote>
<br>
The first line, looks like it may not be in your code.<br>
<br>
It may be there is no info for the $0061... address.<br>
<br>
the code that generates the dumps, stops adding line info, once it
has failed a single line....<br>
See: <a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=13518">http://bugs.freepascal.org/view.php?id=13518</a><br>
<br>
</body>
</html>