-
Notifications
You must be signed in to change notification settings - Fork 139
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
Another apparent memory leak #634
Comments
Since this issue was opened, on Oct 22, 2022 there were 9 commits made resolving issues 633, 635, 637, 638, 628 and 640.
The memory leak (in Windows) is now consistent. |
In Linux
The memory leak is also consistent, but smaller. |
So ... I've been away since January working on some other projects ...
we get
You can check that nothing is missed in that the final mUsed1 becomes the initial mUsed0 in the next step. Note that the final result of 1552 is exactly the 80 bytes higher than before the executed command. |
The next task is to compare the results above to the results we get by using valgrind:
|
In Windows, running the same test described in the Jan 20, 2024 using the current code base, we get
Making the code changes described above in Windows we can see where the problem occurs
In the line with the asterisks, 144 bytes are added. Note that in Linux, 64 bytes were released at 2 lines down from the asterisks. |
In src/km.c the functions Interesting that |
If we make the following 3 simple changes to the source code:
we get
and see that the problematic sequence only happens once ... |
The loss of 7 bytes identified by valgrind is due to this code
Note that the command |
After the commit of June 1, 2023 the valgrind problem (where 7 bytes are definitely lost) is fixed:
However, the original statment of this issue also identified problems with how Kona tracks Memory Used. |
Make this change
then
(The segfault is being addressed in issue #633.)
Note:
3552-3472
80
3757-3552
205
The operating system here was problably Linux.
The text was updated successfully, but these errors were encountered: