Project

General

Profile

Actions

Bug #2779

closed

OsmoMSC not closing subscriber connection when calling unknown number (may appear like OsmoBSC memory leak on SCCP connections)

Added by laforge over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
12/22/2017
Due date:
% Done:

100%

Spec Reference:

Description

After one complete iteration of the TTCN-3 BSC_Tests.ttcn test suite, we have four leaked SCCP connections in the talloc report:

talloc report on 'vty' (total 205814 bytes in 12029 blocks)
    save_cwd                       contains     55 bytes in   1 blocks (ref 0) 0x84c44c0
    vty_command                    contains 120927 bytes in 7068 blocks (ref 0) 0x84a69a0
    vty_vector                     contains  84832 bytes in 4959 blocks (ref 0) 0x84a6900
full talloc report on 'openbsc' (total 690245 bytes in 299 blocks)
    telnet_connection              contains      1 bytes in   1 blocks (ref 0) 0x886d580
    struct osmo_ss7_instance       contains   5989 bytes in  43 blocks (ref 0) 0x8721ee0
        struct osmo_sccp_instance      contains   3884 bytes in  19 blocks (ref 0) 0x8872d60
            struct sccp_connection         contains    924 bytes in   4 blocks (ref 0) 0x9ab2d80
                struct osmo_fsm_inst           contains    220 bytes in   3 blocks (ref 0) 0x9ab30e0
                    SCCP-SCOC(19)[0x9ab30e0]       contains     25 bytes in   1 blocks (ref 0) 0x9ab32f0
                    19                             contains      3 bytes in   1 blocks (ref 0) 0x9ab3240
            struct sccp_connection         contains    924 bytes in   4 blocks (ref 0) 0x9a13a10
                struct osmo_fsm_inst           contains    220 bytes in   3 blocks (ref 0) 0x9a13d70
                    SCCP-SCOC(18)[0x9a13d70]       contains     25 bytes in   1 blocks (ref 0) 0x9a13f80
                    18                             contains      3 bytes in   1 blocks (ref 0) 0x9a13ed0
            struct sccp_connection         contains    924 bytes in   4 blocks (ref 0) 0x99746a0
                struct osmo_fsm_inst           contains    220 bytes in   3 blocks (ref 0) 0x9974a00
                    SCCP-SCOC(17)[0x9974a00]       contains     25 bytes in   1 blocks (ref 0) 0x9974c10
                    17                             contains      3 bytes in   1 blocks (ref 0) 0x9974b60
            struct sccp_connection         contains    922 bytes in   4 blocks (ref 0) 0x8c809e0
                struct osmo_fsm_inst           contains    218 bytes in   3 blocks (ref 0) 0x8c80d40
                    SCCP-SCOC(1)[0x8c80d40]        contains     24 bytes in   1 blocks (ref 0) 0x8c80f50
                    1                              contains      2 bytes in   1 blocks (ref 0) 0x8c80ea0
            struct osmo_sccp_user          contains     86 bytes in   2 blocks (ref 0) 0x8872e70
                msc-0                          contains      6 bytes in   1 blocks (ref 0) 0x8872f60

Files

mobile-two-calls-os2779.pcapng mobile-two-calls-os2779.pcapng 481 KB pcap file captured while mobile program was making two calls stsp, 02/20/2018 04:28 PM
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)