Hi

With 1 window, 1 pane and ~100 lines of history and resizing the window
about quite a bit, I do not see any unreachable memory at exit.

==1253== LEAK SUMMARY:
==1253==    definitely lost: 40 bytes in 1 blocks
==1253==    indirectly lost: 120 bytes in 10 blocks
==1253==      possibly lost: 0 bytes in 0 blocks
==1253==    still reachable: 76,088 bytes in 1,095 blocks
==1253==         suppressed: 0 bytes in 0 blocks

This is with:

valgrind --leak-check=full --trace-children=yes --trace-children-skip=*sh 
--log-file=out ./tmux new

How are you running valgrind?

Are you sure you are using a clean, unmodified checkout from latest git?

What are you doing to test?


On Sat, Feb 16, 2013 at 09:25:45PM +0100, Romain Francoise wrote:
> Nicholas Marriott <nicholas.marri...@gmail.com> writes:
> 
> > So you don't see this if you comment out the screen_reflow call? Or do
> > the leaked allocations move somewhere else?
> 
> Without the screen_reflow call I get only this one:
> 
> ==19895== 127,862 bytes in 481 blocks are definitely lost in loss record 196 
> of 197
> ==19895==    at 0x4C2C47E: realloc (in 
> /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==19895==    by 0x451094: xrealloc (xmalloc.c:79)
> ==19895==    by 0x41D2C3: grid_expand_line (grid.c:227)
> ==19895==    by 0x41D489: grid_set_cell (grid.c:264)
> ==19895==    by 0x41C550: grid_view_set_cell (grid-view.c:52)
> ==19895==    by 0x42E2C5: screen_write_cell (screen-write.c:1125)
> ==19895==    by 0x41EF25: input_print (input.c:883)
> ==19895==    by 0x41EBB3: input_parse (input.c:781)
> ==19895==    by 0x44FF86: window_pane_read_callback (window.c:820)
> ==19895==    by 0x549C4BC: ??? (in 
> /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.7)
> ==19895==    by 0x5491CCB: event_base_loop (in 
> /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5.1.7)
> ==19895==    by 0x433B7D: server_loop (server.c:204)

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to