Project

General

Profile

Actions

Bug #5248

closed

Memory leaks across A-bis/RSL connection

Added by fixeria over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
10/06/2021
Due date:
% Done:

100%

Spec Reference:

Description

While working on ttcn3-bts-test, I left osmo-bts running for a while and ran out of memory. Below are the biggest talloc chunks:

OsmoBTS# show talloc-context application full tree 0x608000000380
full talloc report on 'OsmoBTS context' (total 25932818 bytes in 2379 blocks)
  abis                           contains 197460 bytes in 1481 blocks (ref 0) 0x608000000380
    unixsocket                     contains      1 bytes in   1 blocks (ref 0) 0x60b00014f060
    ipa                            contains   1213 bytes in  13 blocks (ref 0) 0x60b00014efb0
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x6120000501a0
        127.0.1.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b000190350
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x6120000405a0
        127.0.2.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b00018b0d0
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x61200003bda0
        127.0.1.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b00018a1b0
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x61200000e920
        127.0.1.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b000184170
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x612000029620
        127.0.1.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b00017d6e0
      struct ipa_client_conn         contains    202 bytes in   2 blocks (ref 0) 0x612000018220
        127.0.1.1                      contains     10 bytes in   1 blocks (ref 0) 0x60b000176620
...

OsmoBTS# show talloc-context application 2 tree 0x627000000160                                                                                                           
talloc report on 'OsmoBTS context' (total 598284656 bytes in 48753 blocks)                                                                                               
  struct gsm_bts                 contains 598181420 bytes in 48417 blocks (ref 0) 0x627000000160
    struct tlv_parsed              contains   4131 bytes in  16 blocks (ref 0) 0x6210016a4560
    struct tlv_parsed              contains   4106 bytes in   3 blocks (ref 0) 0x6210016a3160
    struct tlv_parsed              contains   4117 bytes in   7 blocks (ref 0) 0x6210016a1d60
    struct tlv_parsed              contains   4116 bytes in   4 blocks (ref 0) 0x6210016a0960    
    struct tlv_parsed              contains   4098 bytes in   3 blocks (ref 0) 0x62100169f560
...
    struct gsm_bts_trx             contains 111271976 bytes in 8983 blocks (ref 0) 0x7fcd7df16860
    struct gsm_bts_trx             contains 111271976 bytes in 8983 blocks (ref 0) 0x7fcd7e116860
    struct gsm_bts_trx             contains 111271976 bytes in 8983 blocks (ref 0) 0x7fcd7e316860
    struct gsm_bts_trx             contains 111271976 bytes in 8983 blocks (ref 0) 0x7fcd7e816860

How to reproduce?

In ttcn3-bts-test environment start everything except the testsuite, so that osmo-bts can establish A-bis/OML connections, but not the A-bis/RSL.

Software versions

libosmocore   ca5ce0d84966c998e353b606a7054f8bc8366cae
libosmo-abis  d2d28d83a437f7478a4dfff0c6cae5305801b881
osmo-bts      93fbcdfb39674eb3b5b7768919e14fbc8c455fc4
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)