Project

General

Profile

Actions

Bug #4119

closed

osmo-remsim-client-st2 leaking memory

Added by roh almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
remsim-client
Target version:
-
Start date:
07/18/2019
Due date:
% Done:

100%

Spec Reference:

Description

i just realized the client is leaking too:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     14138  0.1  1.7 191976 68708 ?        Ssl  Jul10  22:04 /usr/bin/osmo-remsim-client-st2 -s 10.9.99.10 -V 1d50 -P 4004 -C 1 -I 0 -H 2-1.1 -c 0 -n 0

after restart:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     28923  0.2  0.1  62816  4776 ?        Ssl  16:04   0:00 /usr/bin/osmo-remsim-client-st2 -s 10.9.99.10 -V 1d50 -P 4004 -C 1 -I 0 -H 2-1.1 -c 0 -n 0

talloc is also not interresting:

Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]: full talloc report on 'global' (total   2885 bytes in  22 blocks)
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:     struct bankd_client            contains   1996 bytes in  15 blocks (ref 0) 0x55d6e0b9cbe0
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:         struct osmo_fsm_inst           contains    240 bytes in   3 blocks (ref 0) 0x55d6e0b9d260
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             BANKD_CONN(bankd)[0x55d6e0b9d260] contains     34 bytes in   1 blocks (ref 0) 0x55d6e0b9d400
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             bankd                          contains      6 bytes in   1 blocks (ref 0) 0x55d6e0b9d390
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:         struct osmo_fsm_inst           contains    756 bytes in  10 blocks (ref 0) 0x55d6e0b92c20
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             struct osmo_fd                 contains     48 bytes in   1 blocks (ref 0) 0x55d6e0b926b0
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             struct ipa_client_conn         contains    464 bytes in   6 blocks (ref 0) 0x55d6e0b92590
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:                 struct osmo_fsm_inst           contains    277 bytes in   4 blocks (ref 0) 0x55d6e0b9d010
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:                     struct ipa_fsm_priv            contains     32 bytes in   1 blocks (ref 0) 0x55d6e0b9d1d0
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:                     IPA-KEEPALIVE(server)[0x55d6e0b9d010] contains     38 bytes in   1 blocks (ref 0) 0x55d6e0b9d140
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:                     server                         contains      7 bytes in   1 blocks (ref 0) 0x55d6e0b92dc0
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:                 10.9.99.10                     contains     11 bytes in   1 blocks (ref 0) 0x55d6e0b92750
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             RSPRO_CLIENT(server)[0x55d6e0b92c20] contains     37 bytes in   1 blocks (ref 0) 0x55d6e0b92500
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             server                         contains      7 bytes in   1 blocks (ref 0) 0x55d6e0b92d50
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:         ClientSlot_t                   contains     40 bytes in   1 blocks (ref 0) 0x55d6e0b80d70
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:     logging                        contains    889 bytes in   5 blocks (ref 0) 0x55d6e0b80200
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:         struct log_target              contains    208 bytes in   2 blocks (ref 0) 0x55d6e0b805f0
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             struct log_category            contains     40 bytes in   1 blocks (ref 0) 0x55d6e0b80700
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:         struct log_info                contains    680 bytes in   2 blocks (ref 0) 0x55d6e0b80270
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:             struct log_info_cat            contains    640 bytes in   1 blocks (ref 0) 0x55d6e0b80300
Jul 18 16:03:12 remsimtest osmo-remsim-client-st2[14138]:     asn1                           contains      0 bytes in   1 blocks (ref 0) 0x55d6e0b80190

after restart:

Jul 18 16:04:02 remsimtest systemd[1]: Stopping Osmocom Remote SIM Client 0...
Jul 18 16:04:02 remsimtest systemd[1]: Stopped Osmocom Remote SIM Client 0.
Jul 18 16:04:02 remsimtest systemd[1]: Started Osmocom Remote SIM Client 0.
Jul 18 16:04:02 remsimtest osmo-remsim-client-st2[28923]: <0000> fsm.c:423 RSPRO_CLIENT(server)[0x558090c62b20]{INIT}: Allocated
Jul 18 16:04:02 remsimtest osmo-remsim-client-st2[28923]: <0000> fsm.c:423 BANKD_CONN(bankd)[0x558090c61800]{INIT}: Allocated
Jul 18 16:04:05 remsimtest osmo-remsim-client-st2[28923]: <0003> input/ipa.c:128 10.9.99.10:9998 connection done
Jul 18 16:04:05 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:105 RSPRO_CLIENT(server)[0x558090c62b20]{INIT}: RSPRO link to 10.9.99.10:9998 UP
Jul 18 16:04:05 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:107 RSPRO_CLIENT(server)[0x558090c62b20]{INIT}: Received Event SRVC_E_TCP_UP
Jul 18 16:04:05 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:210 RSPRO_CLIENT(server)[0x558090c62b20]{INIT}: state_chg to ESTABLISHED
Jul 18 16:04:05 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:78 RSPRO_CLIENT(server)[0x558090c62b20]{ESTABLISHED}: Tx RSPRO connectClientReq
Jul 18 16:04:06 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:141 RSPRO_CLIENT(server)[0x558090c62b20]{ESTABLISHED}: Received RSPRO [L1]> 00 40 ee 07 [L2]> 30 3d 80 01 02 81 02 09 26 a2 34 a3 32 30 2d 0a 01 01 16 0a 66 69 78 6d 65 2d 6e 61 6d 65 80 0d 72 65 6d 73 69 6d 2d 73 65 72 76 65 72 81 0d 30 2e 31 2e 30 2e 32 31 2d 63 38 62 63 0a 01 00
Jul 18 16:04:06 remsimtest osmo-remsim-client-st2[28923]: <0000> simtrace2-remsim_client.c:647 RSPRO_CLIENT(server)[0x558090c62b20]{ESTABLISHED}: Received Event SRVC_E_CLIENT_CONN_RES
Jul 18 16:04:06 remsimtest osmo-remsim-client-st2[28923]: <0000> rspro_client_fsm.c:254 RSPRO_CLIENT(server)[0x558090c62b20]{ESTABLISHED}: state_chg to CONNECTED
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]: full talloc report on 'global' (total   2885 bytes in  22 blocks)
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:     struct bankd_client            contains   1996 bytes in  15 blocks (ref 0) 0x558090c61110
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:         struct osmo_fsm_inst           contains    240 bytes in   3 blocks (ref 0) 0x558090c61800
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             BANKD_CONN(bankd)[0x558090c61800] contains     34 bytes in   1 blocks (ref 0) 0x558090c619a0
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             bankd                          contains      6 bytes in   1 blocks (ref 0) 0x558090c61930
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:         struct osmo_fsm_inst           contains    756 bytes in  10 blocks (ref 0) 0x558090c62b20
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             struct osmo_fd                 contains     48 bytes in   1 blocks (ref 0) 0x558090c625a0
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             struct ipa_client_conn         contains    464 bytes in   6 blocks (ref 0) 0x558090c62480
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:                 struct osmo_fsm_inst           contains    277 bytes in   4 blocks (ref 0) 0x558090c61540
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:                     struct ipa_fsm_priv            contains     32 bytes in   1 blocks (ref 0) 0x558090c61770
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:                     IPA-KEEPALIVE(server)[0x558090c61540] contains     38 bytes in   1 blocks (ref 0) 0x558090c616e0
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:                     server                         contains      7 bytes in   1 blocks (ref 0) 0x558090c61670
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:                 10.9.99.10                     contains     11 bytes in   1 blocks (ref 0) 0x558090c62640
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             RSPRO_CLIENT(server)[0x558090c62b20] contains     37 bytes in   1 blocks (ref 0) 0x558090c62c50
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             server                         contains      7 bytes in   1 blocks (ref 0) 0x558090c50600
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:         ClientSlot_t                   contains     40 bytes in   1 blocks (ref 0) 0x558090c50f30
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:     logging                        contains    889 bytes in   5 blocks (ref 0) 0x558090c3e200
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:         struct log_target              contains    208 bytes in   2 blocks (ref 0) 0x558090c3e5f0
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             struct log_category            contains     40 bytes in   1 blocks (ref 0) 0x558090c3e700
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:         struct log_info                contains    680 bytes in   2 blocks (ref 0) 0x558090c3e270
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:             struct log_info_cat            contains    640 bytes in   1 blocks (ref 0) 0x558090c3e300
Jul 18 16:04:19 remsimtest osmo-remsim-client-st2[28923]:     asn1                           contains      0 bytes in   1 blocks (ref 0) 0x558090c3e190

starting one of those in valgrind too (in screen)


Related issues

Related to osmo-remsim - Bug #4097: osmo-remsim-bankd leaking memoryResolvedroh07/10/2019

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)