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

handle signal interruption #3

Closed
meow-watermelon opened this issue May 5, 2024 · 1 comment
Closed

handle signal interruption #3

meow-watermelon opened this issue May 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@meow-watermelon
Copy link
Owner

the memory cannot be cleaned up properly if users send interruptable signals like SIGINT:

^C==58715== 
==58715== Process terminating with default action of signal 2 (SIGINT)
==58715==    at 0x4950127: clock_nanosleep@@GLIBC_2.17 (clock_nanosleep.c:71)
==58715==    by 0x4962C96: nanosleep (nanosleep.c:25)
==58715==    by 0x49745D2: sleep (sleep.c:55)
==58715==    by 0x401A14: main (memdoor.c:227)
==58715== 
==58715== HEAP SUMMARY:
==58715==     in use at exit: 3,354 bytes in 8 blocks
==58715==   total heap usage: 54 allocs, 46 frees, 60,258 bytes allocated
==58715== 
==58715== LEAK SUMMARY:
==58715==    definitely lost: 0 bytes in 0 blocks
==58715==    indirectly lost: 0 bytes in 0 blocks
==58715==      possibly lost: 0 bytes in 0 blocks
==58715==    still reachable: 3,354 bytes in 8 blocks
==58715==         suppressed: 0 bytes in 0 blocks
==58715== Reachable blocks (those to which a pointer was found) are not shown.
==58715== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==58715== 
==58715== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
@meow-watermelon meow-watermelon added the bug Something isn't working label May 5, 2024
@meow-watermelon meow-watermelon self-assigned this May 5, 2024
@meow-watermelon
Copy link
Owner Author

handling non-global pointers is tricky and complex. i will go ahead and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant