Skip to content

[agw] Memory leak: decode_esm_message_container #8573

@ardzoht

Description

@ardzoht

Running the spirent test to switch between Active and Idle modes on UEs, on the magma version 1.5.2 produces following memory leak:

Aug 04 16:16:39 phy-u6 mme[2960376]: Direct leak of 208 byte(s) in 13 object(s) allocated from:
Aug 04 16:16:39 phy-u6 mme[2960376]:     #0 0x7f15cdfef9d1 in malloc (/lib/x86_64-linux-gnu/liblsan.so.0+0xf9d1)
Aug 04 16:16:39 phy-u6 mme[2960376]:     #1 0x560ad1d28b34 in blk2bstr /home/vagrant/magma/lte/gateway/c/core/oai/lib/bstr/bstrlib.c:314
Aug 04 16:16:39 phy-u6 mme[2960376]:     #2 0x560ad21844b4 in decode_bstring /home/vagrant/magma/lte/gateway/c/core/oai/common/TLVDecoder.c:41
Aug 04 16:16:39 phy-u6 mme[2960376]:     #3 0x560ad216d0a5 in decode_esm_message_container /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/ies/EsmMessageContainer.c:45
Aug 04 16:16:39 phy-u6 mme[2960376]:     #4 0x560ad216ac73 in decode_attach_request /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/msg/AttachRequest.c:71
Aug 04 16:16:39 phy-u6 mme[2960376]:     #5 0x560ad215fef8 in emm_msg_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/msg/emm_msg.c:143
Aug 04 16:16:39 phy-u6 mme[2960376]:     #6 0x560ad215f03b in nas_message_plain_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/api/network/nas_message.c:771
Aug 04 16:16:39 phy-u6 mme[2960376]:     #7 0x560ad215fbf3 in nas_message_protected_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/api/network/nas_message.c:831
Aug 04 16:16:39 phy-u6 mme[2960376]:     #8 0x560ad215fbf3 in nas_message_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/api/network/nas_message.c:495
Aug 04 16:16:39 phy-u6 mme[2960376]:     #9 0x560ad215a625 in emm_as_establish_req /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_as.c:787
Aug 04 16:16:39 phy-u6 mme[2960376]:     #10 0x560ad215b0ac in emm_as_send /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_as.c:185
Aug 04 16:16:39 phy-u6 mme[2960376]:     #11 0x560ad214a6b9 in emm_sap_send /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_sap.c:105
Aug 04 16:16:39 phy-u6 mme[2960376]:     #12 0x560ad2128285 in nas_proc_establish_ind /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/nas_proc.c:185
Aug 04 16:16:39 phy-u6 mme[2960376]:     #13 0x560ad1df307a in mme_app_handle_initial_ue_message /home/vagrant/magma/lte/gateway/c/core/oai/tasks/mme_app/mme_app_bearer.c:742
Aug 04 16:16:39 phy-u6 mme[2960376]:     #14 0x560ad1df1b49 in handle_message /home/vagrant/magma/lte/gateway/c/core/oai/tasks/mme_app/mme_app_main.c:219
Aug 04 16:16:39 phy-u6 mme[2960376]:     #15 0x7f15cd1c65c6 in zloop_start (/lib/x86_64-linux-gnu/libczmq.so.4+0x295c6)
Aug 04 16:16:39 phy-u6 mme[2960376]: Direct leak of 48 byte(s) in 1 object(s) allocated from:
Aug 04 16:16:39 phy-u6 mme[2960376]:     #0 0x7f15cdfef722  (/lib/x86_64-linux-gnu/liblsan.so.0+0xf722)
Aug 04 16:16:39 phy-u6 mme[2960376]:     #1 0x7f15cd1c1c0f in zlist_new (/lib/x86_64-linux-gnu/libczmq.so.4+0x24c0f)
Aug 04 16:16:39 phy-u6 mme[2960376]: Indirect leak of 1712 byte(s) in 214 object(s) allocated from:
Aug 04 16:16:39 phy-u6 mme[2960376]:     #0 0x7f15cdfef9d1 in malloc (/lib/x86_64-linux-gnu/liblsan.so.0+0xf9d1)
Aug 04 16:16:39 phy-u6 mme[2960376]:     #1 0x560ad1d28b57 in blk2bstr /home/vagrant/magma/lte/gateway/c/core/oai/lib/bstr/bstrlib.c:323
Aug 04 16:16:39 phy-u6 mme[2960376]:     #2 0x560ad21844b4 in decode_bstring /home/vagrant/magma/lte/gateway/c/core/oai/common/TLVDecoder.c:41
Aug 04 16:16:39 phy-u6 mme[2960376]:     #3 0x560ad216d0a5 in decode_esm_message_container /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/ies/EsmMessageContainer.c:45
Aug 04 16:16:39 phy-u6 mme[2960376]:     #4 0x560ad216ac73 in decode_attach_request /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/msg/AttachRequest.c:71
Aug 04 16:16:39 phy-u6 mme[2960376]:     #5 0x560ad215fef8 in emm_msg_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/msg/emm_msg.c:143
Aug 04 16:16:39 phy-u6 mme[2960376]:     #6 0x560ad215f03b in nas_message_plain_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/api/network/nas_message.c:771
Aug 04 16:16:39 phy-u6 mme[2960376]:     #7 0x560ad215fcb4 in nas_message_decode /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/api/network/nas_message.c:502
Aug 04 16:16:39 phy-u6 mme[2960376]:     #8 0x560ad215a625 in emm_as_establish_req /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_as.c:787
Aug 04 16:16:39 phy-u6 mme[2960376]:     #9 0x560ad215b0ac in emm_as_send /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_as.c:185
Aug 04 16:16:39 phy-u6 mme[2960376]:     #10 0x560ad214a6b9 in emm_sap_send /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/emm/sap/emm_sap.c:105
Aug 04 16:16:39 phy-u6 mme[2960376]:     #11 0x560ad2128285 in nas_proc_establish_ind /home/vagrant/magma/lte/gateway/c/core/oai/tasks/nas/nas_proc.c:185
Aug 04 16:16:39 phy-u6 mme[2960376]:     #12 0x560ad1df307a in mme_app_handle_initial_ue_message /home/vagrant/magma/lte/gateway/c/core/oai/tasks/mme_app/mme_app_bearer.c:742
Aug 04 16:16:39 phy-u6 mme[2960376]:     #13 0x560ad1df1b49 in handle_message /home/vagrant/magma/lte/gateway/c/core/oai/tasks/mme_app/mme_app_main.c:219

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions