Closed marco79cgn closed 5 days ago
Related to https://github.com/toniebox-reverse-engineering/teddycloud/issues/222
Please check the develop version if it fixes this.
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).
I cannot reproduce this error on x64
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.
Hardware:
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: