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

Memory Leakage: Cosy Cpp build leaks memoery extensively #1

Open
AmitPress opened this issue Jan 22, 2022 · 1 comment
Open

Memory Leakage: Cosy Cpp build leaks memoery extensively #1

AmitPress opened this issue Jan 22, 2022 · 1 comment

Comments

@AmitPress
Copy link

Compilers generally leaks memory, but here simple hello world program is leaking a lot of memory.

==24716== Memcheck, a memory error detector
==24716== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24716== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==24716== Command: ./Cosy hw.cosy
==24716== 
Hello, Cosy!!!
==24716== 
==24716== HEAP SUMMARY:
==24716==     in use at exit: 1,132,411 bytes in 743 blocks
==24716==   total heap usage: 783 allocs, 40 frees, 1,215,053 bytes allocated
==24716== 
==24716== LEAK SUMMARY:
==24716==    definitely lost: 4,259 bytes in 116 blocks
==24716==    indirectly lost: 0 bytes in 0 blocks
==24716==      possibly lost: 1,069,064 bytes in 479 blocks
==24716==    still reachable: 59,088 bytes in 148 blocks
==24716==         suppressed: 0 bytes in 0 blocks
==24716== Rerun with --leak-check=full to see details of leaked memory
==24716== 
==24716== For counts of detected and suppressed errors, rerun with: -v
==24716== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

What is your view on this?

@anissen
Copy link
Owner

anissen commented Jan 25, 2022

Hi, thanks for taking an interest in Cosy!

Thank you for bringing this topic to my attention. I haven't considered memory leaks at all and have done no investigations into reducing leaks. I'll definitely look into what's leaking memory in the future and will keep this issue open as a reminder to do so.

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

2 participants