Tcl Source Code

View Ticket
Login
Ticket UUID: 27635d54b254abcebde7c21ef4a47b64b028a19
Title: epoll notifer leaks memory
Type: Bug Version: trunk
Submitter: dgp Created on: 2017-10-12 16:56:33
Subsystem: None Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2018-05-09 14:42:52
Resolution: Fixed Closed By: dgp
    Closed on: 2018-05-09 14:42:52
Description:
==8793== HEAP SUMMARY:
==8793==     in use at exit: 80 bytes in 2 blocks
==8793==   total heap usage: 403,267 allocs, 403,265 frees, 44,016,789 bytes allocated
==8793== 
==8793== Searching for pointers to 2 not-freed blocks
==8793== Checked 117,880 bytes
==8793== 
==8793== 16 bytes in 1 blocks are indirectly lost in loss record 1 of 2
==8793==    at 0x4C29BE3: malloc (vg_replace_malloc.c:299)
==8793==    by 0x5D580D: TclpAlloc (tclAlloc.c:699)
==8793==    by 0x43D10A: Tcl_Alloc (tclCkalloc.c:1061)
==8793==    by 0x5A6EC6: PlatformEventsControl (tclEpollNotfy.c:230)
==8793==    by 0x5A7293: PlatformEventsInit (tclEpollNotfy.c:375)
==8793==    by 0x5A6E1C: Tcl_InitNotifier (tclEpollNotfy.c:149)
==8793==    by 0x554B60: TclInitNotifier (tclNotify.c:136)
==8793==    by 0x4FEFA7: TclInitSubsystems (tclEvent.c:1066)
==8793== 
==8793== 80 (64 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 2
==8793==    at 0x4C29BE3: malloc (vg_replace_malloc.c:299)
==8793==    by 0x5D580D: TclpAlloc (tclAlloc.c:699)
==8793==    by 0x43D10A: Tcl_Alloc (tclCkalloc.c:1061)
==8793==    by 0x5A71E5: PlatformEventsInit (tclEpollNotfy.c:359)
==8793==    by 0x5A6E1C: Tcl_InitNotifier (tclEpollNotfy.c:149)
==8793==    by 0x554B60: TclInitNotifier (tclNotify.c:136)
==8793==    by 0x4FEFA7: TclInitSubsystems (tclEvent.c:1066)
==8793==    by 0x42AC39: Tcl_CreateInterp (tclBasic.c:471)
==8793== 
==8793== LEAK SUMMARY:
==8793==    definitely lost: 64 bytes in 1 blocks
==8793==    indirectly lost: 16 bytes in 1 blocks
==8793==      possibly lost: 0 bytes in 0 blocks
==8793==    still reachable: 0 bytes in 0 blocks
==8793==         suppressed: 0 bytes in 0 blocks
User Comments: pooryorick added on 2018-05-09 07:02:07: (text/x-fossil-wiki)
Fixed in [6ea3d73ff094a7d8].