Re: heap trace with line info on macOS

Peter B via fpc-pascal <[email protected]> Wed, 15 Oct 2025 20:16:38 +0100
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
On 15/10/2025 10:15, mailinglists--- via fpc-pascal wrote:
> Hi.
>
> I can enable heap trace and line info as usual with the -gh and -gl command line parameters - to report any memory leaks in my application. But no matter what I try, I get the memory leak dump, but always without line information.
>
> Is this not a supported feature on macOS?
>
> Regards,
>   Graeme
> _______________________________________________
> fpc-pascal maillist  -  [email protected]
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Just a thought in this.

If the problem is arising in the RTL or LCL, there will not be line information
unless those parts are also compiled with -gl etc.

If GTK2 is involved, the --sync option might be needed.

Cheers,
Peter
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal