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:
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
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:
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[]
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
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