root@3e37f5125a35 [Fri Jan 08 07:29 PM] /sw/src/modules/mod_infrastructure/test (droneenvironment) <160>:./test_r test_leak [DEBUG] 19:29:33 #00004652 ks_thread.c:419 __ks_thread_create_ex Allocating new thread, current active and attached count: 0, current active and detatched count: 1 test_leak ......................................................... [DEBUG] 19:29:33 #0000466D ks_thread.c:123 thread_launch Thread has launched with address: 0x6110000056e8, tid: 00000000 [DEBUG] 19:29:33 #0000466D ks_thread.c:151 thread_launch START call user thread callback with address: 0x6110000056e8, tid: 0000466d test ================================================================= ==18030==ERROR: LeakSanitizer: detected memory leaks Indirect leak of 242 byte(s) in 1 object(s) allocated from: #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28) #1 0x7f4732125974 in alloc_mem /sw/src/libs/libks/src/ks_pool.c:275 #2 0x7f4732126cb0 in __ks_pool_alloc_ex /sw/src/libs/libks/src/ks_pool.c:965 #3 0x7f4732126fc5 in __ks_pool_alloc /sw/src/libs/libks/src/ks_pool.c:1008 #4 0x7f4732131e1c in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:402 #5 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84 #6 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206 #7 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19 #8 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0) Indirect leak of 112 byte(s) in 1 object(s) allocated from: #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28) #1 0x7f47321260be in ks_pool_raw_open /sw/src/libs/libks/src/ks_pool.c:436 #2 0x7f47321262d7 in ks_pool_tagged_open /sw/src/libs/libks/src/ks_pool.c:484 #3 0x7f4732131dfd in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:400 #4 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84 #5 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206 #6 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19 #7 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0) Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28) #1 0x7f4732124322 in __ks_mutex_create /sw/src/libs/libks/src/ks_mutex.c:222 #2 0x7f4732126311 in ks_pool_tagged_open /sw/src/libs/libks/src/ks_pool.c:488 #3 0x7f4732131dfd in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:400 #4 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84 #5 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206 #6 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19 #7 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0) SUMMARY: AddressSanitizer: 410 byte(s) leaked in 3 allocation(s). PASS [DEBUG] 19:29:33 #0000466D ks_thread.c:153 thread_launch STOP call user thread callback with address: 0x6110000056e8, tid: 0000466d [DEBUG] 19:29:33 #0000466D ks_thread.c:284 ks_thread_destroy Thread destroy complete, deleting os primitives for thread address 0x6110000056e8, tid: 0000466d [DEBUG] 19:29:33 #0000466D ks_thread.c:293 ks_thread_destroy Current active and attached count: 0, current active and detatched count: 1 [DEBUG] 19:29:33 #00004652 ks_thread.c:419 __ks_thread_create_ex Allocating new thread, current active and attached count: 0, current active and detatched count: 1 [DEBUG] 19:29:33 #00004672 ks_thread.c:123 thread_launch Thread has launched with address: 0x6110000051e8, tid: 00000000 [DEBUG] 19:29:33 #00004672 ks_thread.c:151 thread_launch START call user thread callback with address: 0x6110000051e8, tid: 00004672 [DEBUG] 19:29:33 #00004672 ks_thread.c:153 thread_launch STOP call user thread callback with address: 0x6110000051e8, tid: 00004672 [DEBUG] 19:29:33 #00004672 ks_thread.c:284 ks_thread_destroy Thread destroy complete, deleting os primitives for thread address 0x6110000051e8, tid: 00004672 [DEBUG] 19:29:33 #00004672 ks_thread.c:293 ks_thread_destroy Current active and attached count: 0, current active and detatched count: 1 ---------------------------------------------------------------------------- PASSED (1/1 tests in 0.129567s)