toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
471 stars 36 forks source link

[CLI] Memory leak trying to encode taf #252

Closed marco79cgn closed 5 days ago

marco79cgn commented 1 week ago

Hardware:

Raspberry Pi 4
Debian GNU/Linux 12 (bookworm)
Docker version 27.3.1, build ce12230
teddycloud 0.6.2 (latest)
ffmpeg version 5.1.6-0+deb12u1+rpt1

Problem: Each time I try to encode an audio file to TAF, I get a memory leak at the end of the (successful) ffmpeg conversion. Tried with different input files and formats (mp3, m4b).

Command: root@teddycloud:/# teddycloud --encode th-spot.taf /teddycloud/data/library/th-spot.mp3

Result:

Input #0, mp3, from '/teddycloud/data/library/th-spot.mp3':
  Metadata:
    encoded_by      : Fission
    TLEN            : 24084
  Duration: 00:00:24.08, start: 0.000000, bitrate: 128 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, s16le, to 'pipe:':
  Metadata:
    encoded_by      : Fission
    TLEN            : 24084
    encoder         : Lavf60.16.100
  Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc60.31.102 pcm_s16le
[out#0/s16le @ 0x559ff3d070] video:0kB audio:4516kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
size=    4516kB time=00:00:24.08 bitrate=1536.0kbits/s speed=11.7x    
INFO |toniefile.c:0762:ffmpeg_stream()| Encoded all sources
INFO |toniefile.c:0622:ffmpeg_decode_audio_end()| Stopped ffmpeg with code=0...
INFO |toniefile.c:0806:ffmpeg_stream()| TAF encoding successful

=================================================================
==183==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 454 byte(s) in 59 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557ded9cdc in settings_init_opt src/settings.c:661
    #2 0x557dee9320 in settings_init src/settings.c:687
    #3 0x557dea7918 in main_init_settings src/main.c:159
    #4 0x557dd2fd5c in main src/main.c:358
    #5 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #6 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #7 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede5c8 in settings_generate_internal_dirs src/settings.c:517
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede610 in settings_generate_internal_dirs src/settings.c:519
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede520 in settings_generate_internal_dirs src/settings.c:512
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede5a8 in settings_generate_internal_dirs src/settings.c:516
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede4e0 in settings_generate_internal_dirs src/settings.c:510
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede584 in settings_generate_internal_dirs src/settings.c:515
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede500 in settings_generate_internal_dirs src/settings.c:511
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede564 in settings_generate_internal_dirs src/settings.c:514
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede540 in settings_generate_internal_dirs src/settings.c:513
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557ddbcee4 in malloc (/usr/local/bin/teddycloud+0x67cee4)
    #1 0x557dede5ec in settings_generate_internal_dirs src/settings.c:518
    #2 0x557dee5df4 in settings_changed_id src/settings.c:552
    #3 0x557dee9540 in settings_changed src/settings.c:544
    #4 0x557dee9540 in settings_init src/settings.c:720
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 115 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9484 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9484 in settings_set_string src/settings.c:1388
    #4 0x557dee9484 in settings_init src/settings.c:703
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 93 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9504 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9504 in settings_set_string src/settings.c:1388
    #4 0x557dee9504 in settings_init src/settings.c:712
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 81 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee946c in settings_set_string_id src/settings.c:1396
    #3 0x557dee946c in settings_set_string src/settings.c:1388
    #4 0x557dee946c in settings_init src/settings.c:702
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 60 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee94f4 in settings_set_string_id src/settings.c:1396
    #3 0x557dee94f4 in settings_set_string src/settings.c:1388
    #4 0x557dee94f4 in settings_init src/settings.c:711
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 41 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee93e8 in settings_set_string_id src/settings.c:1396
    #3 0x557dee93e8 in settings_set_string src/settings.c:1388
    #4 0x557dee93e8 in settings_init src/settings.c:695
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 41 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee94b4 in settings_set_string_id src/settings.c:1396
    #3 0x557dee94b4 in settings_set_string src/settings.c:1388
    #4 0x557dee94b4 in settings_init src/settings.c:707
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee940c in settings_set_string_id src/settings.c:1396
    #3 0x557dee940c in settings_set_string src/settings.c:1388
    #4 0x557dee940c in settings_init src/settings.c:697
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee94d4 in settings_set_string_id src/settings.c:1396
    #3 0x557dee94d4 in settings_set_string src/settings.c:1388
    #4 0x557dee94d4 in settings_init src/settings.c:709
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 22 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee94e4 in settings_set_string_id src/settings.c:1396
    #3 0x557dee94e4 in settings_set_string src/settings.c:1388
    #4 0x557dee94e4 in settings_init src/settings.c:710
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 18 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9458 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9458 in settings_set_string src/settings.c:1388
    #4 0x557dee9458 in settings_init src/settings.c:701
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee93d8 in settings_set_string_id src/settings.c:1396
    #3 0x557dee93d8 in settings_set_string src/settings.c:1388
    #4 0x557dee93d8 in settings_init src/settings.c:694
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9448 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9448 in settings_set_string src/settings.c:1388
    #4 0x557dee9448 in settings_init src/settings.c:700
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee94a4 in settings_set_string_id src/settings.c:1396
    #3 0x557dee94a4 in settings_set_string src/settings.c:1388
    #4 0x557dee94a4 in settings_init src/settings.c:706
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee93c8 in settings_set_string_id src/settings.c:1396
    #3 0x557dee93c8 in settings_set_string src/settings.c:1388
    #4 0x557dee93c8 in settings_init src/settings.c:693
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9494 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9494 in settings_set_string src/settings.c:1388
    #4 0x557dee9494 in settings_init src/settings.c:705
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 6 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9420 in settings_set_string_id src/settings.c:717
    #3 0x557dee9420 in settings_set_string src/settings.c:1388
    #4 0x557dee9420 in settings_init src/settings.c:698
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 2 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee95d0 in settings_set_string_id src/settings.c:684
    #3 0x557dee95d0 in settings_set_string src/settings.c:1388
    #4 0x557dee95d0 in settings_init src/settings.c:690
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee93a8 in settings_set_string_id src/settings.c:1396
    #3 0x557dee93a8 in settings_set_string src/settings.c:1388
    #4 0x557dee93a8 in settings_init src/settings.c:691
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x557dd6ba40 in __interceptor_strdup (/usr/local/bin/teddycloud+0x62ba40)
    #1 0x557dee7788 in settings_set_string_id src/settings.c:1410
    #2 0x557dee9438 in settings_set_string_id src/settings.c:1396
    #3 0x557dee9438 in settings_set_string src/settings.c:1388
    #4 0x557dee9438 in settings_init src/settings.c:699
    #5 0x557dea7918 in main_init_settings src/main.c:159
    #6 0x557dd2fd5c in main src/main.c:358
    #7 0x7fa99384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fa9938594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557dd3a16c in _start (/usr/local/bin/teddycloud+0x5fa16c)

SUMMARY: AddressSanitizer: 3585 byte(s) leaked in 88 allocation(s).
SciLor commented 1 week ago

Related to https://github.com/toniebox-reverse-engineering/teddycloud/issues/222

Please check the develop version if it fixes this.

marco79cgn commented 1 week ago

Unfortunately it still exists in the develop tag.

root@teddycloud:/teddycloud/data/library# teddycloud --encode th-spot.taf th-spot.mp3
TeddyCloud vX.X.X (0a95c00) - 2024-11-10 11:26:11 +0000 ubuntu linux-aarch64(64)

[options] specified 'encode' as 'th-spot.taf'
INFO |settings.c:0848:settings_load_ovl()| Load settings from /teddycloud/data/library/config/config.overlay.ini
WARN |settings.c:0856:settings_load_ovl()| Config file does not exist, creating it...
INFO |settings.c:0744:settings_save_ovl()| Save settings to /teddycloud/data/library/config/config.overlay.ini
ERROR|settings.c:0748:settings_save_ovl()| Failed to open config file for writing
INFO |settings.c:0848:settings_load_ovl()| Load settings from /teddycloud/data/library/config/config.ini
WARN |settings.c:0856:settings_load_ovl()| Config file does not exist, creating it...
INFO |settings.c:0744:settings_save_ovl()| Save settings to /teddycloud/data/library/config/config.ini
ERROR|settings.c:0748:settings_save_ovl()| Failed to open config file for writing
INFO |settings.c:0848:settings_load_ovl()| Load settings from /etc/teddycloud/config/config.overlay.ini
INFO |settings.c:0848:settings_load_ovl()| Load settings from /etc/teddycloud/config/config.ini
INFO |settings.c:0848:settings_load_ovl()| Load settings from /etc/teddycloud/config/config.overlay.ini
WARN |main.c:0439:main()| Encode 1 files to 'th-spot.taf'
INFO |toniefile.c:0673:ffmpeg_stream()| Encode 1 sources: 
INFO |toniefile.c:0676:ffmpeg_stream()|  th-spot.mp3
INFO |toniefile.c:0678:ffmpeg_stream()| as TAF to th-spot.taf
INFO |toniefile.c:0555:ffmpeg_decode_audio_start_skip()| Start ffmpeg for decoding...
INFO |toniefile.c:0568:ffmpeg_decode_audio_start_skip()| FFmpeg command: ffmpeg -i "th-spot.mp3" -f s16le -acodec pcm_s16le -ar 48000 -ac 2 -ss 0 -
INFO |toniefile.c:0139:toniefile_create()| Create TAF: th-spot.taf
INFO |toniefile.c:0389:toniefile_new_chapter()| new chapter at 0x00000000
ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[mp3 @ 0x55a3e10bd0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'th-spot.mp3':
  Metadata:
    encoded_by      : Fission
    TLEN            : 24084
  Duration: 00:00:24.08, start: 0.000000, bitrate: 128 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, s16le, to 'pipe:':
  Metadata:
    encoded_by      : Fission
    TLEN            : 24084
    encoder         : Lavf60.16.100
  Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc60.31.102 pcm_s16le
[out#0/s16le @ 0x55a3e120c0] video:0kB audio:4516kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
size=    4516kB time=00:00:24.08 bitrate=1536.0kbits/s speed=11.7x    
INFO |toniefile.c:0762:ffmpeg_stream()| Encoded all sources
INFO |toniefile.c:0622:ffmpeg_decode_audio_end()| Stopped ffmpeg with code=0...
INFO |toniefile.c:0806:ffmpeg_stream()| TAF encoding successful

=================================================================
==127==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 454 byte(s) in 59 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e10e57c in settings_init_opt src/settings.c:661
    #2 0x557e11dbc0 in settings_init src/settings.c:687
    #3 0x557e0dc188 in main_init_settings src/main.c:159
    #4 0x557df6025c in main src/main.c:365
    #5 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #6 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #7 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112e68 in settings_generate_internal_dirs src/settings.c:517
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112eb0 in settings_generate_internal_dirs src/settings.c:519
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112e24 in settings_generate_internal_dirs src/settings.c:515
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112e48 in settings_generate_internal_dirs src/settings.c:516
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112da0 in settings_generate_internal_dirs src/settings.c:511
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112d80 in settings_generate_internal_dirs src/settings.c:510
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112e04 in settings_generate_internal_dirs src/settings.c:514
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112de0 in settings_generate_internal_dirs src/settings.c:513
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112dc0 in settings_generate_internal_dirs src/settings.c:512
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x557dfee3e4 in __interceptor_malloc (/usr/local/bin/teddycloud+0x67e3e4)
    #1 0x557e112e8c in settings_generate_internal_dirs src/settings.c:518
    #2 0x557e11a694 in settings_changed_id src/settings.c:552
    #3 0x557e11dde4 in settings_changed src/settings.c:544
    #4 0x557e11dde4 in settings_init src/settings.c:720
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 115 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd24 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd24 in settings_set_string src/settings.c:1388
    #4 0x557e11dd24 in settings_init src/settings.c:703
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 93 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dda8 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dda8 in settings_set_string src/settings.c:1388
    #4 0x557e11dda8 in settings_init src/settings.c:712
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 81 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd0c in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd0c in settings_set_string src/settings.c:1388
    #4 0x557e11dd0c in settings_init src/settings.c:702
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 60 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd98 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd98 in settings_set_string src/settings.c:1388
    #4 0x557e11dd98 in settings_init src/settings.c:711
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 41 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dc90 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dc90 in settings_set_string src/settings.c:1388
    #4 0x557e11dc90 in settings_init src/settings.c:695
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 41 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd58 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd58 in settings_set_string src/settings.c:1388
    #4 0x557e11dd58 in settings_init src/settings.c:707
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd78 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd78 in settings_set_string src/settings.c:1388
    #4 0x557e11dd78 in settings_init src/settings.c:709
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dcb0 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dcb0 in settings_set_string src/settings.c:1388
    #4 0x557e11dcb0 in settings_init src/settings.c:697
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 25 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11de74 in settings_set_string_id src/settings.c:684
    #3 0x557e11de74 in settings_set_string src/settings.c:1388
    #4 0x557e11de74 in settings_init src/settings.c:690
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 22 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd88 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd88 in settings_set_string src/settings.c:1388
    #4 0x557e11dd88 in settings_init src/settings.c:710
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 18 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dcf8 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dcf8 in settings_set_string src/settings.c:1388
    #4 0x557e11dcf8 in settings_init src/settings.c:701
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dc80 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dc80 in settings_set_string src/settings.c:1388
    #4 0x557e11dc80 in settings_init src/settings.c:694
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dce8 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dce8 in settings_set_string src/settings.c:1388
    #4 0x557e11dce8 in settings_init src/settings.c:700
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd48 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dd48 in settings_set_string src/settings.c:1388
    #4 0x557e11dd48 in settings_init src/settings.c:706
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dc6c in settings_set_string_id src/settings.c:1396
    #3 0x557e11dc6c in settings_set_string src/settings.c:1388
    #4 0x557e11dc6c in settings_init src/settings.c:693
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dd38 in settings_set_string_id src/settings.c:717
    #3 0x557e11dd38 in settings_set_string src/settings.c:1388
    #4 0x557e11dd38 in settings_init src/settings.c:705
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 6 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dcc0 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dcc0 in settings_set_string src/settings.c:1388
    #4 0x557e11dcc0 in settings_init src/settings.c:698
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dc48 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dc48 in settings_set_string src/settings.c:1388
    #4 0x557e11dc48 in settings_init src/settings.c:691
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x557df9cf40 in strdup (/usr/local/bin/teddycloud+0x62cf40)
    #1 0x557e11c028 in settings_set_string_id src/settings.c:1410
    #2 0x557e11dcd8 in settings_set_string_id src/settings.c:1396
    #3 0x557e11dcd8 in settings_set_string src/settings.c:1388
    #4 0x557e11dcd8 in settings_init src/settings.c:699
    #5 0x557e0dc188 in main_init_settings src/main.c:159
    #6 0x557df6025c in main src/main.c:365
    #7 0x7fbb6384c0  (/lib/aarch64-linux-gnu/libc.so.6+0x284c0)
    #8 0x7fbb638594 in __libc_start_main (/lib/aarch64-linux-gnu/libc.so.6+0x28594)
    #9 0x557df6a66c in _start (/usr/local/bin/teddycloud+0x5fa66c)

SUMMARY: AddressSanitizer: 3608 byte(s) leaked in 88 allocation(s).
SciLor commented 5 days ago

I cannot reproduce this error on x64

marco79cgn commented 5 days ago

I double-checked and even though there is always this huge memory leak exception at the end, the taf file is written anyway and it's also playable.

→ Closed.