[fpc-devel] Heaptrace + cwstring cause SIGSEGV at the end

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Mar 10 16:40:49 CET 2014

On 10 Mar 2014, at 16:13, Petr Kristan wrote:

> If memoryleak occurs and program ends, then i get SIGSEGV in  
> cwstring.pp:481 (iconv call)
> because cwstring unit is finalized before heaptrc.

If you use -gh, then heaptrc will be the first unit of the uses clause  
and will be finalized after any manually added unit.

> Heaptrace is switched on by -gl fpc option.

-gl switches on lineinfo, not heaptrc.


More information about the fpc-devel mailing list