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

Detecting leaks of local references #128

Open
facundominguez opened this issue Dec 15, 2017 · 0 comments
Open

Detecting leaks of local references #128

facundominguez opened this issue Dec 15, 2017 · 0 comments

Comments

@facundominguez
Copy link
Member

We are hoping that an implementation of linear types in GHC could provide an ultimate solution. The stop gap is to do runtime analysis by collecting traces of execution to check that reference counts remain bounded. This could make use of DWARF support in GHC to use traces, but given that it is still experimental, we could fallback to having the user insert tracing messages when entering and leaving functions to provide enough context to locate the leaks.

Perhaps we could make a story for using OpenTracing here since we will need to support tracing across multiple processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant