[fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Wimpie Nortje
Hi everybody, The program: program memleak; {$mode objfpc}{$H+} uses cthreads; begin end. If I run the program using valgrind I get the following output: ==1944==Invalid free() / delete / delete[] ==1944==at 0x4025DFA:

Re: [fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Graeme Geldenhuys
Wimpie Nortje wrote: If I run the program using valgrind I get the following output: When I run it with heaptrc unit (-gh) enabled, I get the following output. Showing no memory leaks. I'm using Linux (Ubuntu 8.04.2) and FPC 2.2.5. I don't know how valgrind works, so I actually have no

Re: [fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Michael Van Canneyt
On Wed, 5 Aug 2009, Jonas Maebe wrote: On 05 Aug 2009, at 13:55, Wimpie Nortje wrote: program memleak; {$mode objfpc}{$H+} uses cthreads; begin end. If I run the program using valgrind I get the following output: ==1944==Invalid free() / delete / delete[] ==1944==at 0x4025DFA:

Re: [fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Wimpie Nortje
OK it is logged. Jonas Maebe wrote: On 05 Aug 2009, at 13:55, Wimpie Nortje wrote: program memleak; {$mode objfpc}{$H+} uses cthreads; begin end. If I run the program using valgrind I get the following output: ==1944==Invalid free() / delete / delete[]

Re: [fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Jonas Maebe
On 05 Aug 2009, at 22:28, Peter Popov wrote: Since you mentioned cprt0, you could try checking the order of initialization of libc and libgcc. This may have something to do with it, see alsohttp://bugs.freepascal.org/view.php?id=14265 Indeed, that may very well be the reason. Jonas

Re: [fpc-devel] Possible memory leak in cthread.

2009-08-05 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: Since you mentioned cprt0, you could try checking the order of initialization of libc and libgcc. This may have something to do with it, see alsohttp://bugs.freepascal.org/view.php?id=14265 Indeed, that may very well be the reason. I've been