Issue817

Title editor: memleaks planting/overwriting waypoints
Priority minor Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2015-06-03 19h38 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2015-06-03   19h38
Direct leak of 88 byte(s) in 11 object(s) allocated from:
    #0 0x7faa5741eb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x452fdc in dynarray_init /home/matthias/vcs/git/freedroid/src/dynarray.c:37
    #2 0x587ecc in add_waypoint /home/matthias/vcs/git/freedroid/src/waypoint.c:55
    #3 0x5aa9d4 in action_create_waypoint lvledit/lvledit_actions.c:396
    #4 0x5eca24 in level_editor_paste_selection lvledit/lvledit_tool_select.c:1142
    #5 0x5137fa in input_key /home/matthias/vcs/git/freedroid/src/keyboard.c:753
    #6 0x5141f8 in input_key_event
/home/matthias/vcs/git/freedroid/src/keyboard.c:804
    #7 0x5144a4 in input_key_press
/home/matthias/vcs/git/freedroid/src/keyboard.c:821
    #8 0x50b1e8 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:119
    #9 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #10 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #11 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #12 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)


Direct leak of 56 byte(s) in 7 object(s) allocated from:
    #0 0x7faa5741eb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x452fdc in dynarray_init /home/matthias/vcs/git/freedroid/src/dynarray.c:37
    #2 0x587ecc in add_waypoint /home/matthias/vcs/git/freedroid/src/waypoint.c:55
    #3 0x5ded66 in do_waypoint_route lvledit/lvledit_tool_place.c:87
    #4 0x5e264e in leveleditor_place_input lvledit/lvledit_tool_place.c:708
    #5 0x5ee19d in forward_event lvledit/lvledit_widget_map.c:53
    #6 0x5ee75c in map_handle_event lvledit/lvledit_widget_map.c:94
    #7 0x58f2c8 in group_mouse_event widgets/widget_group.c:89
    #8 0x58f8e8 in widget_group_handle_event widgets/widget_group.c:183
    #9 0x58cd3a in handle_widget_event widgets/widgets.c:281
    #10 0x50b213 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:135
    #11 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #12 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #13 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #14 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)

Direct leak of 48 byte(s) in 2 object(s) allocated from:
    #0 0x7faa5741ed5a in __interceptor_realloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:59
    #1 0x4531fb in dynarray_resize
/home/matthias/vcs/git/freedroid/src/dynarray.c:66
    #2 0x453609 in dynarray_add /home/matthias/vcs/git/freedroid/src/dynarray.c:96
    #3 0x4886a8 in decode_waypoints /home/matthias/vcs/git/freedroid/src/map.c:927
    #4 0x48a0df in decode_level /home/matthias/vcs/git/freedroid/src/map.c:1127
    #5 0x48bc0d in LoadShip /home/matthias/vcs/git/freedroid/src/map.c:1298
    #6 0x49d000 in prepare_level_editor
/home/matthias/vcs/git/freedroid/src/init.c:791
    #7 0x41d2af in Startup_handle /home/matthias/vcs/git/freedroid/src/menu.c:809
    #8 0x41ce1f in RunSubMenu /home/matthias/vcs/git/freedroid/src/menu.c:746
    #9 0x41d18a in RunMenu /home/matthias/vcs/git/freedroid/src/menu.c:775
    #10 0x41d19f in StartupMenu /home/matthias/vcs/git/freedroid/src/menu.c:781
    #11 0x514b4f in main /home/matthias/vcs/git/freedroid/src/main.c:178
    #12 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)

Direct leak of 48 byte(s) in 2 object(s) allocated from:
    #0 0x7faa5741ed5a in __interceptor_realloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:59
    #1 0x4531fb in dynarray_resize
/home/matthias/vcs/git/freedroid/src/dynarray.c:66
    #2 0x453609 in dynarray_add /home/matthias/vcs/git/freedroid/src/dynarray.c:96
    #3 0x5ab179 in action_toggle_waypoint_connection lvledit/lvledit_actions.c:493
    #4 0x5def43 in do_waypoint_route lvledit/lvledit_tool_place.c:104
    #5 0x5e264e in leveleditor_place_input lvledit/lvledit_tool_place.c:708
    #6 0x5ee19d in forward_event lvledit/lvledit_widget_map.c:53
    #7 0x5ee75c in map_handle_event lvledit/lvledit_widget_map.c:94
    #8 0x58f2c8 in group_mouse_event widgets/widget_group.c:89
    #9 0x58f8e8 in widget_group_handle_event widgets/widget_group.c:183
    #10 0x58cd3a in handle_widget_event widgets/widgets.c:281
    #11 0x50b213 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:135
    #12 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #13 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #14 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #15 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)

Direct leak of 48 byte(s) in 2 object(s) allocated from:
    #0 0x7faa5741ed5a in __interceptor_realloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:59
    #1 0x4531fb in dynarray_resize
/home/matthias/vcs/git/freedroid/src/dynarray.c:66
    #2 0x453609 in dynarray_add /home/matthias/vcs/git/freedroid/src/dynarray.c:96
    #3 0x5ab179 in action_toggle_waypoint_connection lvledit/lvledit_actions.c:493
    #4 0x5def96 in do_waypoint_route lvledit/lvledit_tool_place.c:106
    #5 0x5e264e in leveleditor_place_input lvledit/lvledit_tool_place.c:708
    #6 0x5ee19d in forward_event lvledit/lvledit_widget_map.c:53
    #7 0x5ee75c in map_handle_event lvledit/lvledit_widget_map.c:94
    #8 0x58f2c8 in group_mouse_event widgets/widget_group.c:89
    #9 0x58f8e8 in widget_group_handle_event widgets/widget_group.c:183
    #10 0x58cd3a in handle_widget_event widgets/widgets.c:281
    #11 0x50b213 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:135
    #12 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #13 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #14 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #15 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)

Direct leak of 32 byte(s) in 4 object(s) allocated from:
    #0 0x7faa5741eb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x452fdc in dynarray_init /home/matthias/vcs/git/freedroid/src/dynarray.c:37
    #2 0x587ecc in add_waypoint /home/matthias/vcs/git/freedroid/src/waypoint.c:55
    #3 0x5aa9d4 in action_create_waypoint lvledit/lvledit_actions.c:396
    #4 0x5ab32e in lvledit_action_toggle_waypoint lvledit/lvledit_actions.c:530
    #5 0x51322d in input_key /home/matthias/vcs/git/freedroid/src/keyboard.c:738
    #6 0x5141f8 in input_key_event
/home/matthias/vcs/git/freedroid/src/keyboard.c:804
    #7 0x5144a4 in input_key_press
/home/matthias/vcs/git/freedroid/src/keyboard.c:821
    #8 0x50b1e8 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:119
    #9 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #10 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #11 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #12 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)



Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7faa5741eb79 in __interceptor_calloc
/build/gcc-multilib/src/gcc-5-20150519/libsanitizer/asan/asan_malloc_linux.cc:54
    #1 0x452fdc in dynarray_init /home/matthias/vcs/git/freedroid/src/dynarray.c:37
    #2 0x587ecc in add_waypoint /home/matthias/vcs/git/freedroid/src/waypoint.c:55
    #3 0x5ded66 in do_waypoint_route lvledit/lvledit_tool_place.c:87
    #4 0x5e221f in leveleditor_place_input lvledit/lvledit_tool_place.c:674
    #5 0x5ee19d in forward_event lvledit/lvledit_widget_map.c:53
    #6 0x5ee75c in map_handle_event lvledit/lvledit_widget_map.c:94
    #7 0x58f2c8 in group_mouse_event widgets/widget_group.c:89
    #8 0x58f8e8 in widget_group_handle_event widgets/widget_group.c:183
    #9 0x58cd3a in handle_widget_event widgets/widgets.c:281
    #10 0x50b213 in input_handle /home/matthias/vcs/git/freedroid/src/input.c:135
    #11 0x5b77dc in leveleditor_process_input lvledit/lvledit_input.c:186
    #12 0x5a22f2 in LevelEditor lvledit/lvledit.c:282
    #13 0x514bb7 in main /home/matthias/vcs/git/freedroid/src/main.c:188
    #14 0x7faa54dcf78f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)

@ f96377ec3b90dfacc5dcd3b19a9232f8998a71b7
History
Date User Action Args
2015-06-03 19:38:32matthiaskrgrcreate