Package: crimson
Version: 0.5.2-1.1+b1
Followup-For: Bug #765929

Dear Maintainer,

With recent version, this has a lot of memory leak mainly 
caused by fluidsynth via libSDL_mixer1.2.

I run crimson with valgrind --leak-check=full. 

Best regards,
Ohta.

--- LOG is below: ---
==22565== Memcheck, a memory error detector
==22565== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==22565== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==22565== Command: crimson
==22565== 
==22565== Conditional jump or move depends on uninitialised value(s)
==22565==    at 0x508C167: X11_SetKeyboardState (SDL_x11events.c:1344)
==22565==    by 0x508C863: X11_DispatchEvent (SDL_x11events.c:508)
==22565==    by 0x508CF6A: X11_PumpEvents (SDL_x11events.c:933)
==22565==    by 0x5062F6B: SDL_PumpEvents (SDL_events.c:376)
==22565==    by 0x5062FD8: SDL_WaitEvent (SDL_events.c:406)
==22565==    by 0x1488B7: View::FetchEvent(SDL_Event&) (view.cpp:284)
==22565==    by 0x149850: Window::EventLoop() (window.cpp:286)
==22565==    by 0x1130CB: main (main.cpp:124)
==22565== 
==22565== Conditional jump or move depends on uninitialised value(s)
==22565==    at 0x508C188: X11_SetKeyboardState (SDL_x11events.c:1347)
==22565==    by 0x508C863: X11_DispatchEvent (SDL_x11events.c:508)
==22565==    by 0x508CF6A: X11_PumpEvents (SDL_x11events.c:933)
==22565==    by 0x5062F6B: SDL_PumpEvents (SDL_events.c:376)
==22565==    by 0x5062FD8: SDL_WaitEvent (SDL_events.c:406)
==22565==    by 0x1488B7: View::FetchEvent(SDL_Event&) (view.cpp:284)
==22565==    by 0x149850: Window::EventLoop() (window.cpp:286)
==22565==    by 0x1204A4: Game::StartTurn() (game.cpp:470)
==22565==    by 0x12100A: Game::EndTurn() (game.cpp:832)
==22565==    by 0x12051A: Game::StartTurn() (game.cpp:513)
==22565==    by 0x12100A: Game::EndTurn() (game.cpp:832)
==22565==    by 0x1217F3: Game::WidgetActivated(Widget*, Window*) 
(game.cpp:2001)
==22565== 
==22565== 
==22565== HEAP SUMMARY:
==22565==     in use at exit: 791,437,547 bytes in 24,947,095 blocks
==22565==   total heap usage: 37,873,116 allocs, 12,926,021 frees, 
1,438,700,702 bytes allocated
==22565== 
==22565== 2 bytes in 2 blocks are possibly lost in loss record 3 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x7C4AEA0: fluid_track_set_name (fluid_midi.c:1083)
==22565==    by 0x7C4B483: fluid_midi_file_read_event (fluid_midi.c:565)
==22565==    by 0x7C4B8BA: fluid_midi_file_read_track (fluid_midi.c:368)
==22565==    by 0x7C4B9FC: fluid_midi_file_load_tracks (fluid_midi.c:265)
==22565==    by 0x7C4C20A: fluid_player_load (fluid_midi.c:1519)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565== 
==22565== 10 bytes in 1 blocks are definitely lost in loss record 10 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x6D45084: _XlcDefaultMapModifiers (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D45465: XSetLocaleModifiers (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x509299F: create_aux_windows (SDL_x11video.c:498)
==22565==    by 0x50939F1: X11_VideoInit (SDL_x11video.c:704)
==22565==    by 0x5085285: SDL_VideoInit (SDL_video.c:246)
==22565==    by 0x505CCEB: SDL_InitSubSystem (SDL.c:89)
==22565==    by 0x505CD63: SDL_Init (SDL.c:162)
==22565==    by 0x112514: init (main.cpp:223)
==22565==    by 0x112514: main (main.cpp:89)
==22565== 
==22565== 16 bytes in 2 blocks are definitely lost in loss record 22 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x60611D9: strdup (strdup.c:42)
==22565==    by 0x6D53996: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D56ACD: _XimEncodeICATTRIBUTE (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D48C9D: _XimProtoCreateIC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D35B0B: XCreateIC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x5092A4C: create_aux_windows (SDL_x11video.c:533)
==22565==    by 0x50939F1: X11_VideoInit (SDL_x11video.c:704)
==22565==    by 0x5085285: SDL_VideoInit (SDL_video.c:246)
==22565==    by 0x505CCEB: SDL_InitSubSystem (SDL.c:89)
==22565==    by 0x505CD63: SDL_Init (SDL.c:162)
==22565==    by 0x112514: init (main.cpp:223)
==22565==    by 0x112514: main (main.cpp:89)
==22565== 
==22565== 96 bytes in 2 blocks are possibly lost in loss record 163 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x7C4AE0C: new_fluid_track (fluid_midi.c:1039)
==22565==    by 0x7C4B8A1: fluid_midi_file_read_track (fluid_midi.c:361)
==22565==    by 0x7C4B9FC: fluid_midi_file_load_tracks (fluid_midi.c:265)
==22565==    by 0x7C4C20A: fluid_player_load (fluid_midi.c:1519)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565==    by 0x54FEF03: mix_channels (mixer.c:304)
==22565== 
==22565== 192 (16 direct, 176 indirect) bytes in 1 blocks are definitely lost 
in loss record 177 of 225
==22565==    at 0x4C2DDCF: realloc (vg_replace_malloc.c:785)
==22565==    by 0x6D3B69C: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3BC01: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3D50E: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3DD27: _XlcCreateLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D5A9CF: _XlcDefaultLoader (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D452BD: _XOpenLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D45407: _XlcCurrentLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D4543D: XSetLocaleModifiers (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x5092976: create_aux_windows (SDL_x11video.c:486)
==22565==    by 0x50939F1: X11_VideoInit (SDL_x11video.c:704)
==22565==    by 0x5085285: SDL_VideoInit (SDL_video.c:246)
==22565== 
==22565== 728 (56 direct, 672 indirect) bytes in 1 blocks are definitely lost 
in loss record 189 of 225
==22565==    at 0x4C2DDCF: realloc (vg_replace_malloc.c:785)
==22565==    by 0x6D3B69C: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3BC01: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3D50E: ??? (in /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D3DD27: _XlcCreateLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D5EA0F: _XlcUtf8Loader (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D452BD: _XOpenLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D45407: _XlcCurrentLC (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x6D4543D: XSetLocaleModifiers (in 
/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0)
==22565==    by 0x509299F: create_aux_windows (SDL_x11video.c:498)
==22565==    by 0x50939F1: X11_VideoInit (SDL_x11video.c:704)
==22565==    by 0x5085285: SDL_VideoInit (SDL_video.c:246)
==22565== 
==22565== 960 bytes in 30 blocks are possibly lost in loss record 191 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x7C4AC2A: new_fluid_midi_event (fluid_midi.c:775)
==22565==    by 0x7C4B569: fluid_midi_file_read_event (fluid_midi.c:588)
==22565==    by 0x7C4B8BA: fluid_midi_file_read_track (fluid_midi.c:368)
==22565==    by 0x7C4B9FC: fluid_midi_file_load_tracks (fluid_midi.c:265)
==22565==    by 0x7C4C20A: fluid_player_load (fluid_midi.c:1519)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565== 
==22565== 2,048 bytes in 1 blocks are definitely lost in loss record 197 of 225
==22565==    at 0x4C2BADF: malloc (vg_replace_malloc.c:298)
==22565==    by 0x4C2DE5F: realloc (vg_replace_malloc.c:785)
==22565==    by 0x7C3B2BE: fluid_rvoice_mixer_set_polyphony 
(fluid_rvoice_mixer.c:385)
==22565==    by 0x7C3A63E: fluid_rvoice_eventhandler_dispatch_all 
(fluid_rvoice_event.c:275)
==22565==    by 0x7C446BA: new_fluid_synth (fluid_synth.c:756)
==22565==    by 0x550DFFA: fluidsynth_loadsong_common (fluidsynth.c:85)
==22565==    by 0x550DFFA: fluidsynth_loadsong_RW (fluidsynth.c:145)
==22565==    by 0x5501252: Mix_LoadMUSType_RW (music.c:696)
==22565==    by 0x5501384: Mix_LoadMUS (music.c:576)
==22565==    by 0x143974: Audio::PlayMusic(char const*) (sound.cpp:235)
==22565==    by 0x120382: Game::StartTurn() (game.cpp:456)
==22565==    by 0x125309: InitWindow::StartGame(char const*) 
(initwindow.cpp:521)
==22565==    by 0x12864E: InitWindow::WidgetActivated(Widget*, Window*) 
(initwindow.cpp:286)
==22565== 
==22565== 39,680 bytes in 1,240 blocks are possibly lost in loss record 219 of 
225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x7C4AC2A: new_fluid_midi_event (fluid_midi.c:775)
==22565==    by 0x7C4B186: fluid_midi_file_read_event (fluid_midi.c:737)
==22565==    by 0x7C4B8BA: fluid_midi_file_read_track (fluid_midi.c:368)
==22565==    by 0x7C4B9FC: fluid_midi_file_load_tracks (fluid_midi.c:265)
==22565==    by 0x7C4C20A: fluid_player_load (fluid_midi.c:1519)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565== 
==22565== 81,429 bytes in 1 blocks are definitely lost in loss record 220 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x550E093: fluidsynth_loadsong_RW_internal (fluidsynth.c:124)
==22565==    by 0x550E093: fluidsynth_loadsong_common (fluidsynth.c:88)
==22565==    by 0x550E093: fluidsynth_loadsong_RW (fluidsynth.c:145)
==22565==    by 0x5501252: Mix_LoadMUSType_RW (music.c:696)
==22565==    by 0x5501384: Mix_LoadMUS (music.c:576)
==22565==    by 0x143974: Audio::PlayMusic(char const*) (sound.cpp:235)
==22565==    by 0x120382: Game::StartTurn() (game.cpp:456)
==22565==    by 0x125309: InitWindow::StartGame(char const*) 
(initwindow.cpp:521)
==22565==    by 0x12864E: InitWindow::WidgetActivated(Widget*, Window*) 
(initwindow.cpp:286)
==22565==    by 0x1497C0: Window::HandleEvent(SDL_Event const&) (window.cpp:253)
==22565==    by 0x148A15: View::HandleEvents() (view.cpp:260)
==22565==    by 0x11301B: main (main.cpp:132)
==22565== 
==22565== 168,080 bytes in 1,910 blocks are definitely lost in loss record 221 
of 225
==22565==    at 0x4C2DBC5: calloc (vg_replace_malloc.c:711)
==22565==    by 0x7C4AA28: new_fluid_midi_file (fluid_midi.c:56)
==22565==    by 0x7C4C1D7: fluid_player_load (fluid_midi.c:1508)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565==    by 0x54FEF03: mix_channels (mixer.c:304)
==22565==    by 0x505D868: SDL_RunAudio (SDL_audio.c:198)
==22565==    by 0x5066F37: SDL_RunThread (SDL_thread.c:204)
==22565== 
==22565== 790,963,974 (23,103,264 direct, 767,860,710 indirect) bytes in 
481,318 blocks are definitely lost in loss record 225 of 225
==22565==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==22565==    by 0x7C4AE0C: new_fluid_track (fluid_midi.c:1039)
==22565==    by 0x7C4B8A1: fluid_midi_file_read_track (fluid_midi.c:361)
==22565==    by 0x7C4B9FC: fluid_midi_file_load_tracks (fluid_midi.c:265)
==22565==    by 0x7C4C20A: fluid_player_load (fluid_midi.c:1519)
==22565==    by 0x7C4C2C9: fluid_player_playlist_load (fluid_midi.c:1568)
==22565==    by 0x7C4C47A: fluid_player_callback (fluid_midi.c:1607)
==22565==    by 0x7C3F54B: fluid_sample_timer_process (fluid_synth.c:484)
==22565==    by 0x7C3F5CF: fluid_synth_render_blocks (fluid_synth.c:2774)
==22565==    by 0x7C425D6: fluid_synth_write_s16 (fluid_synth.c:2632)
==22565==    by 0x550E37B: fluidsynth_playsome (fluidsynth.c:197)
==22565==    by 0x54FEF03: mix_channels (mixer.c:304)
==22565== 
==22565== LEAK SUMMARY:
==22565==    definitely lost: 23,354,919 bytes in 483,235 blocks
==22565==    indirectly lost: 767,861,558 bytes in 24,461,942 blocks
==22565==      possibly lost: 40,738 bytes in 1,274 blocks
==22565==    still reachable: 180,332 bytes in 644 blocks
==22565==         suppressed: 0 bytes in 0 blocks
==22565== Reachable blocks (those to which a pointer was found) are not shown.
==22565== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==22565== 
==22565== For counts of detected and suppressed errors, rerun with: -v
==22565== Use --track-origins=yes to see where uninitialised values come from
==22565== ERROR SUMMARY: 34 errors from 14 contexts (suppressed: 0 from 0)
--- End LOG ---

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ja_JP.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages crimson depends on:
ii  libc6            2.24-10
ii  libgcc1          1:7.1.0-5
ii  libsdl-mixer1.2  1.2.12-11+b3
ii  libsdl-ttf2.0-0  2.0.11-3+b1
ii  libsdl1.2debian  1.2.15+dfsg1-4
ii  libstdc++6       7.1.0-5
ii  zlib1g           1:1.2.8.dfsg-5

crimson recommends no packages.

crimson suggests no packages.

-- no debconf information

Reply via email to