Re: [fpc-pascal] extreme memory growth using cthreads and default heap manager

2015-12-11 Thread Seth Grover
Jonas wrote: > > >> I am experiencing a weird issue regarding threading and shared libraries > >> under Linux. I've boiled it down to a very simple test case in hopes you > >> can help me understand what I'm doing wrong. > > >You're not doing anything wrong. It's caused by > >http://bugs.freepasca

Re: [fpc-pascal] extreme memory growth using cthreads and default heap manager

2015-12-11 Thread Jonas Maebe
Seth Grover wrote on Thu, 10 Dec 2015: I am experiencing a weird issue regarding threading and shared libraries under Linux. I've boiled it down to a very simple test case in hopes you can help me understand what I'm doing wrong. You're not doing anything wrong. It's caused by http://bugs.f

Re: [fpc-pascal] extreme memory growth using cthreads and default heap manager

2015-12-11 Thread Graeme Geldenhuys
On 2015-12-10 21:26, Seth Grover wrote: > Why does using the default memory manager seem to leak memory like crazy if > I'm doing heavy threading? I'm setting FreeOnTerminate to true in > conjunction I can confirm similar behaviour under 64-bit FreeBSD 10.1. Compiled without cmem is ends up using

Re: [fpc-pascal] extreme memory growth using cthreads and default heap manager

2015-12-10 Thread Seth Grover
Interesting: playing around with it some more, if I put an empty try/except block inside my library's function from the example I posted, it leaks the memory whether or not I'm using cmem. -SG -- Seth Grover Be kind to all of your neighbors Because they're just like you. And you're nothing speci

[fpc-pascal] extreme memory growth using cthreads and default heap manager

2015-12-10 Thread Seth Grover
I am experiencing a weird issue regarding threading and shared libraries under Linux. I've boiled it down to a very simple test case in hopes you can help me understand what I'm doing wrong. I'm running this test with FPC 3.0 (built from source) on x86_64 Debian Linux. First, I have this shared l