Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

Lazarus mem leak reports welcome?

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see
http://bugs.freepascal.org/view.php?id=19837
(Hint: could somebody look at applying that patch? Works fine for me)

and I'm getting memory leak reports sometimes, e.g.:

Call trace for block $000000000F94C0F0 size 64
$00000001003C5E35 line 11140 of finddeclarationtool.pas $00000001003BF5E8 line 8598 of finddeclarationtool.pas $00000001003BFB59 line 8791 of finddeclarationtool.pas $00000001003AFC04 line 2860 of finddeclarationtool.pas $00000001003AE919 line 3417 of finddeclarationtool.pas $00000001003B6817 line 5402 of finddeclarationtool.pas $00000001003AEF74 line 3295 of finddeclarationtool.pas $00000001003AEA8B line 3481 of finddeclarationtool.pas

Let me know if it useful to report this here and I will do so.

Thanks,
Reinier

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 18 lines
Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me) and I'm getting memory leak reports sometimes, e.g.: Call trace for block $000000000F94C0F0 size 64 $00000001003C5E35 line 11140 of finddeclarationtool.pas $00000001003BF5E8 line 8598 of finddeclarationtool.pas $00000001003BFB59 line 8791 of finddeclarationtool.pas $00000001003AFC04 line 2860 of finddeclarationtool.pas $00000001003AE919 line 3417 of finddeclarationtool.pas $00000001003B6817 line 5402 of finddeclarationtool.pas $00000001003AEF74 line 3295 of finddeclarationtool.pas $00000001003AEA8B line 3481 of finddeclarationtool.pas Let me know if it useful to report this here and I will do so.

Others have reported that stacktrace too, but I was never able to reproduce it. OTOH I plan to rewrite the mechanism.

Mattias

Reply by email

Juha Manninen
to Reinier Olislagers: Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in…
Reinier Olislagers wrote
Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me)

Which patch? I thought the valid ones are applied. If you mean removing the define HEAPTRC_WINDOW, yes I can do that.

Juha

Reply by email

Reinier Olislagers
to Juha Manninen
Juha Manninen wrote 9 lines
On 5/13/13, Reinier Olislagers wrote: > Don't know if it is useful to post this; I enabled the enhanced heaptrc > output window in Lazarus trunk x64 Windows - see > http://bugs.freepascal.org/view.php?id=19837 > (Hint: could somebody look at applying that patch? Works fine for me) Which patch? I thought the valid ones are applied. If you mean removing the define HEAPTRC_WINDOW, yes I can do that.

Sorry Juha, I meant setting that option it as default.

Reply by email

Juha Manninen
to Reinier Olislagers
Reinier Olislagers wrote
Sorry Juha, I meant setting that option it as default.

Done. See my latest note in the issue report. Please test again with FPC trunk.

Some comments in source files are still needed.
Also, if you know how to make it work better with debugger, please send a patch.

Juha

Reply by email

Reinier Olislagers
to Juha Manninen
Juha Manninen wrote 5 lines
On Mon, May 13, 2013 at 1:19 PM, Reinier Olislagers wrote: > Sorry Juha, I meant setting that option it as default. Done. See my latest note in the issue report. Please test again with FPC trunk.

Thanks, see my note as well: it still works with FPC+Laz trunk but seems to show up regardless of how Laz was compiled (with or without -gh).

Some comments in source files are still needed.

I'll leave that to Cyrax who submitted the patch.

Reply by email

Juha Manninen
to Reinier Olislagers

Ok
Someone must provide one more patch.
I am not the best person to conduct this issue because I mainly use Linux and I don't currently have FPC trunk on my Windows. Anyway, I think we are close to finishing line now with this issue, and the current code does not break anything.

Juha

Reply by email