luvit/luvit — Issue #49: memcheck
Author: dvv
Created: 2011-12-26 19:17:06+00:00
State: open

Below is the log of `valgrind --trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes luvit -e 'print(1)'`:

==19119== Memcheck, a memory error detector
==19119== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==19119== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info
==19119== Command: luvit -e print(1)
==19119==
==19119== Conditional jump or move depends on uninitialised value(s)
==19119== at 0x805E207: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80627A5: lua_pushlstring (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8070A3A: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8070EEE: luaL_pushresult (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8070FB1: luaL_gsub (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F508: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809FB65: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F07E: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8063D0D: lua_pcall (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8051BA9: main (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== Uninitialised value was created by a stack allocation
==19119== at 0x8070F14: luaL_gsub (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== Conditional jump or move depends on uninitialised value(s)
==19119== at 0x805E207: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x805E757: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80799B2: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8073AB2: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F147: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8063D0D: lua_pcall (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8051BA9: main (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== Uninitialised value was created by a stack allocation
==19119== at 0x805E730: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== Conditional jump or move depends on uninitialised value(s)
==19119== at 0x805E207: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8062F09: lua_getfield (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8058127: luv_write (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F147: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8063D0D: lua_pcall (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8051BA9: main (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== Uninitialised value was created by a stack allocation
==19119== at 0x8052011: luv_checkudata (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119==
==19119== HEAP SUMMARY:
==19119== in use at exit: 1,008 bytes in 10 blocks
==19119== total heap usage: 11 allocs, 1 frees, 1,100 bytes allocated
==19119==
==19119== 8 bytes in 1 blocks are still reachable in loss record 1 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x4028900: realloc (vg_replace_malloc.c:525)
==19119== by 0x80B3A40: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3A6A: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3CD6: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B421D: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B84C6: ev_io_start (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B492E: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B8FD4: ev_signal_start (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B7403: ev_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80A76C0: uv_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8059C27: luv_activate_signal_handler (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== 16 bytes in 1 blocks are still reachable in loss record 2 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x4028900: realloc (vg_replace_malloc.c:525)
==19119== by 0x80B3A40: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3A6A: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3CD6: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3DE1: ev_feed_event (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80AF920: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80AFD6C: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B0E92: uv_write2 (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B0F1F: uv_write (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80581D4: luv_write (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== 16 bytes in 2 blocks are still reachable in loss record 3 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x805968D: luv_new_tty (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F147: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8063D0D: lua_pcall (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8051BA9: main (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== 20 bytes in 1 blocks are still reachable in loss record 4 of 7
==19119== at 0x402732C: calloc (vg_replace_malloc.c:467)
==19119== by 0x40683AD: _dlerror_run (dlerror.c:142)
==19119== by 0x423317F: ???
==19119==
==19119== 84 bytes in 3 blocks are still reachable in loss record 5 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x8059BE4: luv_activate_signal_handler (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F147: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8063D0D: lua_pcall (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8051BA9: main (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== 96 bytes in 1 blocks are still reachable in loss record 6 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x4028900: realloc (vg_replace_malloc.c:525)
==19119== by 0x80B3A40: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3A6A: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3CD6: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B8439: ev_io_start (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B492E: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B8FD4: ev_signal_start (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B7403: ev_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80A76C0: uv_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8059C27: luv_activate_signal_handler (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== 768 bytes in 1 blocks are still reachable in loss record 7 of 7
==19119== at 0x4028876: malloc (vg_replace_malloc.c:236)
==19119== by 0x4028900: realloc (vg_replace_malloc.c:525)
==19119== by 0x80B3A40: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B3A6A: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B555F: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B63F8: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80B739F: ev_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x80A76C0: uv_default_loop (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8059C27: luv_activate_signal_handler (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x809F147: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119== by 0x8074959: ??? (in /home/dvv/.luvm/0.1.4/bin/luvit)
==19119==
==19119== LEAK SUMMARY:
==19119== definitely lost: 0 bytes in 0 blocks
==19119== indirectly lost: 0 bytes in 0 blocks
==19119== possibly lost: 0 bytes in 0 blocks
==19119== still reachable: 1,008 bytes in 10 blocks
==19119== suppressed: 0 bytes in 0 blocks
==19119==
==19119== For counts of detected and suppressed errors, rerun with: -v
==19119== ERROR SUMMARY: 9 errors from 3 contexts (suppressed: 21 from 6)

Wonder if it's luvit specific?