-
Notifications
You must be signed in to change notification settings - Fork 71
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
Massive memory leak with --localUse #588
Comments
The crash only happens from DMD 2.085. Previously there was "just" the leak. DMD 2.085 comes with several GC changes, which reveal the bug. |
The crash is unrelated, #589 |
The crash is fixed for 2.085.1 (or right now in stable). Time to fix the leak. |
Great ! |
Yes, I also think it's in dsymbol or at least not in DCD. I tried to tweak the DCD code for local use ( Now one thing is that for the particular case of the A second interesting thing: if you make the |
I am posting this issue here because it's with DCD that I experienced this, and that I seem to be able to reproduce the issue; however this could probably be a dsymbol, dparse or containers issue.
The crash occurs after building the server side with DMD on release (or release-debug) mode, when launching the server with:
(or wherever druntime and phobos are located), and then the client with:
This cursor location points to the
ASTVisitor
symbol, which is all over the file, with 222 occurrences, to try to find local uses.If the crash doesn't happen (for example by compiling in debug mode on my machine, or with LDC), another effect can be seen instead: memory usage goes through the roof. Up to almost 600Mb in my tests, each subsequent call to the client command bumping memory usage by 15 to 20MB, and it doesn't seem to ever go down.
The backtrace I captured, if it's of any use: bt.txt
Tested on Linux x86_64, with DMD 2.085.0
The text was updated successfully, but these errors were encountered: