Project

General

Profile

Bug #5079

osmo-bts crash on `gsmtap-remote-host` and `show running-config`

Added by lynxis about 1 month ago. Updated 4 days ago.

Status:
Stalled
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
03/17/2021
Due date:
% Done:

0%

Spec Reference:

Description

Using osmo-bts version

root@sysmobts-v2:~# opkg list_installed |grep osmo
libosmoabis10 - 1.1.1+gitr0+4aea11befc-r1.18.0.7
libosmoabis6 - 0.7.0+gitr0+30249a15d5-r0.18.0.0
libosmoabis9 - 0.8.0+gitr39+6e831b72d7-r1.18.0.1
libosmocodec0 - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
libosmocore - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
libosmoctrl0 - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
libosmogb12 - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
libosmogsm13 - 1.2.0+gitr0+c144f3a781-r0.18.0.0
libosmogsm15 - 1.3.0+gitr158+d01163a977-r2.18.0.0
libosmogsm16 - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
libosmotrau2 - 1.1.1+gitr0+4aea11befc-r1.18.0.7
libosmovty4 - 1.3.0+gitr158+d01163a977-r2.18.0.0
libosmovty9 - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
osmo-bts - 1.3.0+git5+29c4f3173f-r0.18.0
osmo-bts-remote - 1.3.0+git5+29c4f3173f-r0.18.0
osmo-config-merge - 1.5.1+gitr7+9e37bf4bbc-r2.18.0.0
osmo-pcu - 0.9.0+git11+c7cc4162e1-r0.18.0
packagegroup-osmocom - 1.0-r2.8
osmo-bts-sysmo --version
OsmoBTS version 1.3.0.9-29c4

connect to the vty

enable
configure terminal
bts 0
gsmtap-remote-host 127.0.0.2
end
show running-config

History

#1 Updated by fixeria 30 days ago

  • Status changed from New to In Progress
  • Assignee set to fixeria

Interesting, seems to work just fine with osmo-bts-trx. I am taking a look.

#2 Updated by fixeria 30 days ago

  • Status changed from In Progress to Feedback
  • Assignee changed from fixeria to lynxis

Interesting, seems to work just fine with osmo-bts-trx. I am taking a look.

I cannot reproduce this with osmo-bts-trx. Could you please attach a backtrace?

#3 Updated by lynxis 8 days ago

root@sysmobts-v2:~# opkg list_installed |grep osmo
libosmoabis-dbg - 1.1.1+gitr0+4aea11befc-r1.18.0.20
libosmoabis10 - 1.1.1+gitr0+4aea11befc-r1.18.0.20
libosmocore - 1.5.1+gitr20+d4393608a4-r2.18.0.0
libosmocore-dbg - 1.5.1+gitr20+d4393608a4-r2.18.0.0
libosmoctrl0 - 1.5.1+gitr20+d4393608a4-r2.18.0.0
libosmogsm13 - 1.2.0+gitr0+c144f3a781-r0.18.0.0
libosmotrau2 - 1.1.1+gitr0+4aea11befc-r1.18.0.20
osmo-bts - 1.3.0+git9+1adcc27eb9-r0.18.0
osmo-bts-dbg - 1.3.0+git9+1adcc27eb9-r0.18.0
osmo-pcu - 0.9.0+git16+86580e1966-r0.18.3
show running-config
#0  memcpy () at ../sysdeps/arm/memcpy.S:193
#1  0xb6ebb058 in osmo_strlcpy (dst=0xb6c8b1f8 "\001\b", src=0x484ec "BCCH", siz=<optimized out>)
    at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/utils.c:582
#2  0xb6ebc158 in osmo_str_tolower_buf (dest=0xb6c8b1f8 "\001\b", dest_len=<optimized out>, src=<optimized out>)
    at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/utils.c:1072
#3  0xb6ebc1dc in osmo_str_tolower (src=0x484ec "BCCH") at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/utils.c:1089
#4  0x000356d0 in config_write_bts_single (bts=0x4a090, vty=0x168868) at /usr/src/debug/osmo-bts/1.3.0+gitAUTOINC+1adcc27eb9-r0.18/git/src/common/vty.c:327
#5  config_write_bts (vty=0x168868) at /usr/src/debug/osmo-bts/1.3.0+gitAUTOINC+1adcc27eb9-r0.18/git/src/common/vty.c:381
#6  0xb6fbaf18 in config_write_terminal (self=<optimized out>, vty=vty@entry=0x168868, argc=<optimized out>, argv=argv@entry=0xbefff4b0)
    at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/command.c:3498
#7  0xb6fbe490 in cmd_execute_command_real (vty=vty@entry=0x168868, cmd=0x168868, cmd@entry=0x0, vline=<optimized out>, vline=<optimized out>)
    at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/command.c:2602
#8  0xb6fc0644 in cmd_execute_command (vline=vline@entry=0x169d78, vty=vty@entry=0x168868, cmd=cmd@entry=0x0, vtysh=vtysh@entry=0)
    at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/command.c:2654
#9  0xb6fc30d0 in vty_command (vty=0x168868) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/vty.c:438
#10 vty_execute (vty=0x168868) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/vty.c:702
#11 vty_read (vty=<optimized out>) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/vty.c:1428
#12 0xb6fc5854 in client_data (fd=0x1644dc, what=1) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/vty/telnet_interface.c:154
#13 0xb6eb4d50 in poll_disp_fds (n_fd=<optimized out>) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/select.c:350
#14 _osmo_select_main (polling=<optimized out>) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/select.c:378
#15 0xb6eb4df0 in osmo_select_main (polling=polling@entry=0) at /usr/src/debug/libosmocore/1.5.1+gitrAUTOINC+d4393608a4-r2.18.0/git/src/select.c:417
#16 0x00042fd4 in bts_main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/osmo-bts/1.3.0+gitAUTOINC+1adcc27eb9-r0.18/git/src/common/main.c:427
#17 0x43277c18 in __libc_start_main (main=0xbefffd44, argc=1127887872, argv=0x43277c18 <__libc_start_main+276>, init=<optimized out>, fini=0x4750c <__libc_csu_fini>, 
    rtld_fini=0x432307d0 <_dl_fini>, stack_end=0xbefffd44) at /usr/src/debug/glibc/2.25-r0/git/csu/libc-start.c:295
#18 0x00014ce0 in _start () at ../sysdeps/arm/start.S:124
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

#4 Updated by lynxis 8 days ago

I hope it matches the code.

        for (i = 0; i < sizeof(uint32_t) * 8; i++) {
                if (bts->gsmtap.sapi_mask & ((uint32_t) 1 << i)) {
                        sapi_buf = get_value_string_or_null(gsmtap_sapi_names, i);
                        if (sapi_buf == NULL)
                                continue;
           >>>          sapi_buf = osmo_str_tolower(sapi_buf);
                        vty_out(vty, " gsmtap-sapi %s%s", sapi_buf, VTY_NEWLINE);
                }
        }

#5 Updated by lynxis 8 days ago

  • Assignee changed from lynxis to fixeria

#6 Updated by fixeria 4 days ago

  • Status changed from Feedback to Stalled

I don't have access to sysmoBTS, so I cannot reproduce it. Will try next time I am in the office.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)