View Issue Details

IDProjectCategoryView StatusLast Update
0035605FPCDebuggerpublic2019-05-20 15:17
ReporterCarlos ClicioAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformIntel 64bitsOSLinuxOS Version8
Product Version3.0.2Product Buildx86_64 
Target VersionFixed in Version 
Summary0035605: No line numbers when using heaptrece ( -gl -gh )
DescriptionWhen i try to compile with heaptrace i got an address , but no soruce code line info.
Steps To Reproduce cat leak.pas ; fpc leak -gl -gh leak
    program leak;
{$mode objfpc}{$H+}
    uses
     Classes;
    var
      PascalFiles: TStringList;
    begin
      PascalFiles := TStringList.Create;
./leak
Heap dump by heaptrc unit
22 memory blocks allocated : 1548/1552
21 memory blocks freed : 1428/1432
1 unfreed memory blocks : 120
True heap size : 393216
True free heap : 392928
Should be : 392968
Call trace for block $00007F413F100300 size 120
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Michael Van Canneyt

2019-05-20 15:17

administrator   ~0116285

This is normal, the Free Pascal RTL is distributed without debug info.

If you want stack trace information for classes that are in the RTL,
you must recompile the rtl with debug info and use that to compile your programs.

Issue History

Date Modified Username Field Change
2019-05-20 14:51 Carlos Clicio New Issue
2019-05-20 15:17 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-05-20 15:17 Michael Van Canneyt Status new => resolved
2019-05-20 15:17 Michael Van Canneyt Resolution open => no change required
2019-05-20 15:17 Michael Van Canneyt FPCTarget => -
2019-05-20 15:17 Michael Van Canneyt Note Added: 0116285