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

AddressSanitizer: 8025001 byte(s) leaked in 87927 allocation(s). #304

Open
Strubbl opened this issue Feb 11, 2025 · 1 comment
Open

AddressSanitizer: 8025001 byte(s) leaked in 87927 allocation(s). #304

Strubbl opened this issue Feb 11, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Strubbl
Copy link
Contributor

Strubbl commented Feb 11, 2025

Bytes were leaked. I am using TeddyCloud v0.6.3 (39b2f89).

  1. I just added some custom tonie models
  2. I did use the "Load Tonies.json" link in the settings menu
  3. That did not work and i could not assign my custom tonie
  4. I used the server restart button in the settings

Now i got the following log about leaked bytes.

teddycloud  | INFO |cloud_request.c:0453:web_request| Binary data, not dumping body
teddycloud  | INFO |handler_api.c:0394:handleApiTrigger| Triggered Restart
teddycloud  | INFO |server.c:0986:server_init| Exiting TeddyCloud with returncode -2
teddycloud  | 
teddycloud  | =================================================================
teddycloud  | ==8==ERROR: LeakSanitizer: detected memory leaks
teddycloud  | 
teddycloud  | Direct leak of 526176 byte(s) in 10962 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #6 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #7 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 263088 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 263088 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #5 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 1530 byte(s) in 6 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85399312e7 in httpSendResponseStreamUnsafe src/cyclone/cyclone_tcp/http/http_server.c:1068
teddycloud  |     #2 0x5c8539754743 in handleCloudContent src/handler_cloud.c:695
teddycloud  |     #3 0x5c8539736627 in handleApiContentDownload src/handler_api.c:1821
teddycloud  |     #4 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #5 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #6 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 1104 byte(s) in 23 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #5 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #6 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #7 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #8 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 523 byte(s) in 20 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c8539788c70 in mqtt_init src/mqtt.c:953
teddycloud  |     #3 0x5c85395e0526 in main src/main.c:609
teddycloud  |     #4 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #5 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #6 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 443 byte(s) in 20 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853977fecb in mqtt_topic_str src/mqtt.c:87
teddycloud  |     #2 0x5c8539788cd2 in mqtt_init src/mqtt.c:955
teddycloud  |     #3 0x5c85395e0526 in main src/main.c:609
teddycloud  |     #4 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #5 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #6 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 423 byte(s) in 20 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853977fecb in mqtt_topic_str src/mqtt.c:87
teddycloud  |     #2 0x5c8539788ca1 in mqtt_init src/mqtt.c:954
teddycloud  |     #3 0x5c85395e0526 in main src/main.c:609
teddycloud  |     #4 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #5 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #6 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 290 byte(s) in 5 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396d755f in load_content_json src/contentJson.c:24
teddycloud  |     #3 0x5c853970e45b in getTonieInfo src/handler.c:640
teddycloud  |     #4 0x5c8539711a58 in getTonieInfoFromRuid src/handler.c:609
teddycloud  |     #5 0x5c8539711a58 in setLastRuid src/handler.c:851
teddycloud  |     #6 0x5c85397127c3 in setLastUid src/handler.c:835
teddycloud  |     #7 0x5c85397d0e4f in tbs_tag_placed src/toniebox_state.c:30
teddycloud  |     #8 0x5c85397636f1 in rtnlEvent src/handler_rtnl.c:344
teddycloud  |     #9 0x5c853976bea5 in handleRtnl src/handler_rtnl.c:136
teddycloud  |     #10 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #11 0x5c8539932c31 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:464
teddycloud  |     #12 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 223 byte(s) in 20 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853977fd41 in mqtt_settingname_clean src/mqtt.c:59
teddycloud  |     #2 0x5c8539788bed in mqtt_init src/mqtt.c:951
teddycloud  |     #3 0x5c85395e0526 in main src/main.c:609
teddycloud  |     #4 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #5 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #6 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 210 byte(s) in 6 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c853973f590 in handleApiTonieboxJson src/handler_api.c:2371
teddycloud  |     #3 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #4 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #5 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 116 byte(s) in 2 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396d755f in load_content_json src/contentJson.c:24
teddycloud  |     #3 0x5c853970e45b in getTonieInfo src/handler.c:640
teddycloud  |     #4 0x5c8539711a58 in getTonieInfoFromRuid src/handler.c:609
teddycloud  |     #5 0x5c8539711a58 in setLastRuid src/handler.c:851
teddycloud  |     #6 0x5c8539751572 in handleCloudContent src/handler_cloud.c:451
teddycloud  |     #7 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #8 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #9 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 96 byte(s) in 2 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #6 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #7 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Direct leak of 48 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #5 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 48 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c85396bf51c in cache_add src/cache.c:192
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 38 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85397e3c77 in tonies_init src/toniesJson.c:54
teddycloud  |     #3 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #4 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #5 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #6 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #7 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 35 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85397e3c98 in tonies_init src/toniesJson.c:55
teddycloud  |     #3 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #4 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #5 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #6 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #7 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 33 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85397e3c56 in tonies_init src/toniesJson.c:53
teddycloud  |     #3 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #4 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #5 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #6 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #7 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Direct leak of 21 byte(s) in 21 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85397b8d7d in settings_save_ovl src/settings.c:814
teddycloud  |     #3 0x5c85397bbe8b in settings_save src/settings.c:733
teddycloud  |     #4 0x5c85397239e7 in handleApiTrigger src/handler_api.c:409
teddycloud  |     #5 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #6 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #7 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 1638460 byte(s) in 10962 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #6 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #7 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 1008504 byte(s) in 10962 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #7 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #8 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 833112 byte(s) in 10962 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #7 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #8 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 819230 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #5 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 819230 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 504252 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #6 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 504252 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 416556 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 416556 byte(s) in 5481 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #6 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 2628 byte(s) in 23 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #4 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #5 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #6 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #7 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #8 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 2116 byte(s) in 23 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 1748 byte(s) in 23 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3c14 in tonies_init src/toniesJson.c:46
teddycloud  |     #5 0x5c853979ba67 in server_init src/server.c:881
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 184 byte(s) in 2 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #7 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #8 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 152 byte(s) in 2 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #7 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #8 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | 
teddycloud  | Indirect leak of 92 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #6 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 92 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6a2 in cache_add src/cache.c:196
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 76 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #6 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 76 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c8539675c47 in malloc (/usr/local/bin/teddycloud+0x6aac47)
teddycloud  |     #1 0x5c853979d571 in custom_asprintf src/server_helpers.c:40
teddycloud  |     #2 0x5c85396bf6f2 in cache_add src/cache.c:197
teddycloud  |     #3 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #4 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #5 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #6 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #7 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #8 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #9 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #10 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 76 byte(s) in 2 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c85397929d4 in httpServerRequestCallback src/server.c:483
teddycloud  |     #6 0x5c8539932e26 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
teddycloud  |     #7 0x72ce77a91a93  (/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
teddycloud  | /
teddycloud  | Indirect leak of 38 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e88a3 in tonieboxes_update src/toniesJson.c:240
teddycloud  |     #5 0x5c853979bad5 in server_init src/server.c:885
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | Indirect leak of 38 byte(s) in 1 object(s) allocated from:
teddycloud  |     #0 0x5c853961cd87 in __interceptor_strdup (/usr/local/bin/teddycloud+0x651d87)
teddycloud  |     #1 0x5c85396bf646 in cache_add src/cache.c:195
teddycloud  |     #2 0x5c85397e21db in tonies_readJson src/toniesJson.c:376
teddycloud  |     #3 0x5c85397e3bfa in tonies_init src/toniesJson.c:45
teddycloud  |     #4 0x5c85397e6d6f in tonies_update src/toniesJson.c:126
teddycloud  |     #5 0x5c853979bace in server_init src/server.c:884
teddycloud  |     #6 0x5c85395e0553 in main src/main.c:610
teddycloud  |     #7 0x72ce77a1f1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
teddycloud  |     #8 0x72ce77a1f28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a)
teddycloud  |     #9 0x5c85395e5ef4 in _start (/usr/local/bin/teddycloud+0x61aef4)
teddycloud  | 
teddycloud  | SUMMARY: AddressSanitizer: 8025001 byte(s) leaked in 87927 allocation(s).
@SciLor
Copy link
Contributor

SciLor commented Feb 12, 2025

The leaks have nothing to do with your tonies.custom.json nor there are a direct problem. Indeed, those are worth to be investigated.

Regarding your issue with the tonies.custom.json itself, I would suggest you to ask in the telegram chat or in our forum, as the json just have an invalid syntax.

@toniebox-reverse-engineering toniebox-reverse-engineering locked and limited conversation to collaborators Feb 12, 2025
@SciLor SciLor added the bug Something isn't working label Feb 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants