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

2014-03-10 Thread Petr Kristan
Hi. I use heaptrc and cwstring units in Linux. If memoryleak occurs and program ends, then i get SIGSEGV in cwstring.pp:481 (iconv call) because cwstring unit is finalized before heaptrc. #1 iconv(optimized out, 0x7fffd738, 0x7fffd760, 0x7fffd730, 0x7fffd748) at iconv.c:53 #2

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

2014-03-10 Thread Jonas Maebe
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

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

2014-03-10 Thread Sergei Gorelkin
10.03.2014 19:40, Jonas Maebe пишет: 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

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

2014-03-10 Thread Jonas Maebe
On 10 Mar 2014, at 17:17, Sergei Gorelkin wrote: 10.03.2014 19:40, Jonas Maebe пишет: 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