Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7953 huge debugger st pharo application memory leak #7976

Merged
merged 2 commits into from
Dec 4, 2020
Merged

7953 huge debugger st pharo application memory leak #7976

merged 2 commits into from
Dec 4, 2020

Conversation

StevenCostiou
Copy link
Collaborator

@StevenCostiou StevenCostiou commented Dec 4, 2020

Fixes #7953
I believe this is due to the fact that:

  • debug sessions and other debugger model objects holds a reference to the exception that provoked a debugger opening
  • the exceptions references the interrupted process and context that prevent garbage collection

This may be a side effect of pharo-spec/NewTools#136 where the debugging processes are never released after closing a debugger (under investigation).

With this fix, now the reproduction example of the issue gives the following result:

Screenshot 2020-12-04 at 14 09 40

Trying the same on instances of StDebugger returns nil.

@Ducasse
Copy link
Member

Ducasse commented Dec 4, 2020

Thanks Steven! Let us try.
I would really like to know how we could have tools to find such bug.
Please archive this bug somewhere.

@Ducasse Ducasse merged commit e348863 into pharo-project:Pharo9.0 Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Huge debugger/StPharoApplication memory leak
3 participants