Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leak when playing a midi file through VLC #12

Open
chouquette opened this issue Mar 7, 2018 · 0 comments
Open

Leak when playing a midi file through VLC #12

chouquette opened this issue Mar 7, 2018 · 0 comments

Comments

@chouquette
Copy link
Contributor

This leaks are detected by asan when playing a midi file with VLC:

=================================================================
==20254==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a400e70f9  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1d0f9)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a400da493  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x10493)

Direct leak of 56 byte(s) in 1 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ebbfd7 in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2531
    #2 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #3 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #4 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #5 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #6 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #7 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #8 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #9 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #10 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #11 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #12 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #13 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #14 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #15 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #16 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #17 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #18 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #19 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #20 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #21 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #22 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #23 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #24 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95
    #25 0x7f4a475f02f0 in InitPrograms ../../src/input/input.c:1257
    #26 0x7f4a475f0d9b in Init ../../src/input/input.c:1332
    #27 0x7f4a475e944e in Run ../../src/input/input.c:499
    #28 0x7f4a4586d493 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7493)

Indirect leak of 35585376 byte(s) in 18082 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea9c9e in new_fluid_inst_zone /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1442
    #2 0x7f4a04ea9b4e in fluid_inst_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1373
    #3 0x7f4a04ea9549 in fluid_preset_zone_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1131
    #4 0x7f4a04ea90e1 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:977
    #5 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #6 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #7 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #8 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #9 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #10 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #11 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #12 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #13 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #14 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #15 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #16 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #17 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #18 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #19 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #20 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #21 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #22 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #23 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #24 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #25 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #26 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #27 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #28 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #29 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150

Indirect leak of 2074272 byte(s) in 1054 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea9213 in new_fluid_preset_zone /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1042
    #2 0x7f4a04ea90b2 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:973
    #3 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #4 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #5 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #6 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #7 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #8 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #9 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #10 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #11 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #12 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #13 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #14 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #15 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #16 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #17 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #18 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #19 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #20 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #21 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #22 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #23 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #24 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #25 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #26 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #27 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #28 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95
    #29 0x7f4a475f02f0 in InitPrograms ../../src/input/input.c:1257

Indirect leak of 259951 byte(s) in 18082 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea9cf3 in new_fluid_inst_zone /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1449
    #2 0x7f4a04ea9b4e in fluid_inst_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1373
    #3 0x7f4a04ea9549 in fluid_preset_zone_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1131
    #4 0x7f4a04ea90e1 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:977
    #5 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #6 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #7 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #8 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #9 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #10 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #11 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #12 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #13 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #14 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #15 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #16 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #17 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #18 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #19 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #20 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #21 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #22 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #23 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #24 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #25 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #26 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #27 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #28 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #29 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150

Indirect leak of 158816 byte(s) in 1418 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04eaa3e5 in new_fluid_sample /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1707
    #2 0x7f4a04ea7fca in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:388
    #3 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #4 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #5 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #6 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #7 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #8 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #9 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #10 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #11 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #12 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #13 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #14 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #15 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #16 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #17 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #18 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #19 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #20 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #21 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #22 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #23 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #24 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #25 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #26 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #27 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95
    #28 0x7f4a475f02f0 in InitPrograms ../../src/input/input.c:1257
    #29 0x7f4a475f0d9b in Init ../../src/input/input.c:1332

Indirect leak of 109104 byte(s) in 4546 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04eb1c82 in fluid_mod_new /home/chouquette/dev/FluidLite/src/fluid_mod.c:351
    #2 0x7f4a04ea9fe6 in fluid_inst_zone_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1549
    #3 0x7f4a04ea9b7d in fluid_inst_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1378
    #4 0x7f4a04ea9549 in fluid_preset_zone_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1131
    #5 0x7f4a04ea90e1 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:977
    #6 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #7 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #8 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #9 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #10 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #11 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #12 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #13 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #14 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #15 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #16 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #17 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #18 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #19 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #20 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #21 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #22 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #23 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #24 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #25 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #26 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #27 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #28 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #29 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141

Indirect leak of 37960 byte(s) in 949 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea9976 in new_fluid_inst /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1301
    #2 0x7f4a04ea94f0 in fluid_preset_zone_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1126
    #3 0x7f4a04ea90e1 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:977
    #4 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #5 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #6 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #7 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #8 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #9 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #10 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #11 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #12 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #13 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #14 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #15 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #16 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #17 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #18 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #19 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #20 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #21 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #22 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #23 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #24 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #25 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #26 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #27 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #28 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #29 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95

Indirect leak of 22688 byte(s) in 1418 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04eb0c53 in new_fluid_list /home/chouquette/dev/FluidLite/src/fluid_list.c:36
    #2 0x7f4a04eb0ce3 in fluid_list_append /home/chouquette/dev/FluidLite/src/fluid_list.c:67
    #3 0x7f4a04ea8156 in fluid_defsfont_add_sample /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:428
    #4 0x7f4a04ea800b in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:394
    #5 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #6 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #7 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #8 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #9 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #10 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #11 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #12 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #13 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #14 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #15 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #16 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #17 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #18 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #19 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #20 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #21 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #22 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #23 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #24 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #25 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #26 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #27 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #28 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #29 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95

Indirect leak of 13392 byte(s) in 1054 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea9268 in new_fluid_preset_zone /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:1049
    #2 0x7f4a04ea90b2 in fluid_defpreset_import_sfont /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:973
    #3 0x7f4a04ea8086 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:406
    #4 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #5 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #6 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #7 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #8 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #9 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #10 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #11 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #12 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #13 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #14 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #15 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #16 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #17 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #18 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #19 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #20 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #21 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #22 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #23 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #24 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #25 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #26 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #27 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #28 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95
    #29 0x7f4a475f02f0 in InitPrograms ../../src/input/input.c:1257

Indirect leak of 12096 byte(s) in 189 object(s) allocated from:
    #0 0x7f4a4830dd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
    #1 0x7f4a04ea87e6 in new_fluid_defpreset /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:641
    #2 0x7f4a04ea8060 in fluid_defsfont_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:403
    #3 0x7f4a04ea7a23 in fluid_defsfloader_load /home/chouquette/dev/FluidLite/src/fluid_defsfont.c:153
    #4 0x7f4a04ebc03f in fluid_synth_sfload /home/chouquette/dev/FluidLite/src/fluid_synth.c:2536
    #5 0x7f4a0513d914 in Open ../../modules/codec/fluidsynth.c:138
    #6 0x7f4a4752ca72 in generic_start ../../src/modules/modules.c:338
    #7 0x7f4a4752bce8 in module_load ../../src/modules/modules.c:185
    #8 0x7f4a4752c308 in vlc_module_load ../../src/modules/modules.c:262
    #9 0x7f4a4752cbc3 in module_need ../../src/modules/modules.c:353
    #10 0x7f4a4758df0a in module_need_var ../../include/vlc_modules.h:55
    #11 0x7f4a4758e2b8 in LoadDecoder ../../src/input/decoder.c:178
    #12 0x7f4a4759d749 in CreateDecoder ../../src/input/decoder.c:1747
    #13 0x7f4a4759f24f in decoder_New ../../src/input/decoder.c:1908
    #14 0x7f4a4759f9b1 in input_DecoderNew ../../src/input/decoder.c:1972
    #15 0x7f4a475bcbb7 in EsCreateDecoder ../../src/input/es_out.c:1685
    #16 0x7f4a475bda64 in EsSelect ../../src/input/es_out.c:1773
    #17 0x7f4a475bfe1d in EsOutSelect ../../src/input/es_out.c:1985
    #18 0x7f4a475c4847 in EsOutControlLocked ../../src/input/es_out.c:2316
    #19 0x7f4a475cbf50 in EsOutControl ../../src/input/es_out.c:2889
    #20 0x7f4a475d0b52 in es_out_vaControl ../../include/vlc_es_out.h:141
    #21 0x7f4a475d0c67 in es_out_Control ../../include/vlc_es_out.h:150
    #22 0x7f4a475e0094 in CmdExecuteControl ../../src/input/es_out_timeshift.c:1547
    #23 0x7f4a475d4e97 in ControlLocked ../../src/input/es_out_timeshift.c:664
    #24 0x7f4a475d6242 in Control ../../src/input/es_out_timeshift.c:764
    #25 0x7f4a475e4e98 in es_out_vaControl ../../include/vlc_es_out.h:141
    #26 0x7f4a475e4fad in es_out_Control ../../include/vlc_es_out.h:150
    #27 0x7f4a475e5d73 in es_out_SetMode ../../src/input/es_out.h:95
    #28 0x7f4a475f02f0 in InitPrograms ../../src/input/input.c:1257
    #29 0x7f4a475f0d9b in Init ../../src/input/input.c:1332

As far as I can see, some cleanup is not performed by delete_fluid_defsfont because some samples have non-0 refcount, but to be honest I'm a bit lost when it comes to investigate this further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant