From Abrupt Parakeet, 3 Years ago, written in Plain Text.
- view diff
Embed
  1. root@3e37f5125a35 [Fri Jan 08 07:29 PM]  /sw/src/modules/mod_infrastructure/test (droneenvironment)
  2. <160>:./test_r test_leak
  3.  [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
  4. test_leak ......................................................... [DEBUG] 19:29:33 #0000466D                      ks_thread.c:123   thread_launch                                    Thread has launched with address: 0x6110000056e8, tid: 00000000
  5.  [DEBUG] 19:29:33 #0000466D                      ks_thread.c:151   thread_launch                                    START call user thread callback with address: 0x6110000056e8, tid: 0000466d
  6. test
  7.  
  8. =================================================================
  9. ==18030==ERROR: LeakSanitizer: detected memory leaks
  10.  
  11. Indirect leak of 242 byte(s) in 1 object(s) allocated from:
  12.     #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
  13.     #1 0x7f4732125974 in alloc_mem /sw/src/libs/libks/src/ks_pool.c:275
  14.     #2 0x7f4732126cb0 in __ks_pool_alloc_ex /sw/src/libs/libks/src/ks_pool.c:965
  15.     #3 0x7f4732126fc5 in __ks_pool_alloc /sw/src/libs/libks/src/ks_pool.c:1008
  16.     #4 0x7f4732131e1c in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:402
  17.     #5 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84
  18.     #6 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206
  19.     #7 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19
  20.     #8 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
  21.  
  22. Indirect leak of 112 byte(s) in 1 object(s) allocated from:
  23.     #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
  24.     #1 0x7f47321260be in ks_pool_raw_open /sw/src/libs/libks/src/ks_pool.c:436
  25.     #2 0x7f47321262d7 in ks_pool_tagged_open /sw/src/libs/libks/src/ks_pool.c:484
  26.     #3 0x7f4732131dfd in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:400
  27.     #4 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84
  28.     #5 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206
  29.     #6 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19
  30.     #7 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
  31.  
  32. Indirect leak of 56 byte(s) in 1 object(s) allocated from:
  33.     #0 0x7f473241bd28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
  34.     #1 0x7f4732124322 in __ks_mutex_create /sw/src/libs/libks/src/ks_mutex.c:222
  35.     #2 0x7f4732126311 in ks_pool_tagged_open /sw/src/libs/libks/src/ks_pool.c:488
  36.     #3 0x7f4732131dfd in __ks_thread_create_ex /sw/src/libs/libks/src/ks_thread.c:400
  37.     #4 0x7f473213226e in check_queue /sw/src/libs/libks/src/ks_thread_pool.c:84
  38.     #5 0x7f473213278f in ks_thread_pool_create /sw/src/libs/libks/src/ks_thread_pool.c:206
  39.     #6 0x55614fe1edfd in main /sw/src/modules/mod_infrastructure/test/test_r.c:19
  40.     #7 0x7f473009d2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
  41.  
  42. SUMMARY: AddressSanitizer: 410 byte(s) leaked in 3 allocation(s).
  43.  PASS
  44.  [DEBUG] 19:29:33 #0000466D                      ks_thread.c:153   thread_launch                                    STOP call user thread callback with address: 0x6110000056e8, tid: 0000466d
  45.  [DEBUG] 19:29:33 #0000466D                      ks_thread.c:284   ks_thread_destroy                                Thread destroy complete, deleting os primitives for thread address 0x6110000056e8, tid: 0000466d
  46.  [DEBUG] 19:29:33 #0000466D                      ks_thread.c:293   ks_thread_destroy                                Current active and attached count: 0, current active and detatched count: 1
  47.  [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
  48.  [DEBUG] 19:29:33 #00004672                      ks_thread.c:123   thread_launch                                    Thread has launched with address: 0x6110000051e8, tid: 00000000
  49.  [DEBUG] 19:29:33 #00004672                      ks_thread.c:151   thread_launch                                    START call user thread callback with address: 0x6110000051e8, tid: 00004672
  50.  [DEBUG] 19:29:33 #00004672                      ks_thread.c:153   thread_launch                                    STOP call user thread callback with address: 0x6110000051e8, tid: 00004672
  51.  [DEBUG] 19:29:33 #00004672                      ks_thread.c:284   ks_thread_destroy                                Thread destroy complete, deleting os primitives for thread address 0x6110000051e8, tid: 00004672
  52.  [DEBUG] 19:29:33 #00004672                      ks_thread.c:293   ks_thread_destroy                                Current active and attached count: 0, current active and detatched count: 1
  53.  
  54. ----------------------------------------------------------------------------
  55.  
  56. PASSED (1/1 tests in 0.129567s)
  57.