Project

General

Profile

Actions

Bug #5506

closed

Segmentation fault when osmo-bsc disconnects and then connects again

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

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/31/2022
Due date:
% Done:

100%

Spec Reference:

Description

How to reproduce?

$ telnet localhost 4242
OsmoBSC> en
OsmoBSC# configure terminal
OsmoBSC(config-cbc)#
OsmoBSC(config-cbc)# show running-config
cbc
 mode disabled
 client
  remote-ip 127.0.0.1
OsmoBSC(config-cbc)# mode client  ! osmo-cbc works
OsmoBSC(config-cbc)# mode disabled
OsmoBSC(config-cbc)# mode client  ! osmo-cbc crashes

What happens?

DLINP DEBUG stream.c:950 accept()ed new link from 127.0.0.1 to port 48049
DCBSP DEBUG fsm.c:456 CBSP-SERVER[0x555555620440]{INIT}: Allocated

Thread 1 "osmo-cbc" received signal SIGSEGV, Segmentation fault.
0x00007ffff7ac3e4d in __strcasecmp_l_avx () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff7ac3e4d in __strcasecmp_l_avx () from /usr/lib/libc.so.6
#1  0x000055555555921d in cbc_peer_by_addr_proto (remote_host=remote_host@entry=0x7fffffffdcf0 "127.0.0.1", remote_port=remote_port@entry=41777, 
    proto=proto@entry=CBC_PEER_PROTO_CBSP) at ../../../src/osmo-cbc/src/cbc_data.c:102
#2  0x000055555555a77b in cbsp_cbc_accept_cb (link=0x55555564c3c0, fd=<optimized out>) at ../../../src/osmo-cbc/src/cbsp_server.c:146
#3  0x00007ffff7f5c4c6 in osmo_stream_srv_fd_cb (ofd=<optimized out>, what=<optimized out>) at ../../../src/libosmo-netif/src/stream.c:980
#4  0x00007ffff7c97a2a in poll_disp_fds (n_fd=<optimized out>) at ../../../src/libosmocore/src/select.c:361
#5  _osmo_select_main (polling=polling@entry=0) at ../../../src/libosmocore/src/select.c:399
#6  0x00007ffff7c97aff in osmo_select_main (polling=polling@entry=0) at ../../../src/libosmocore/src/select.c:438
#7  0x0000555555558c05 in main (argc=<optimized out>, argv=<optimized out>) at ../../../src/osmo-cbc/src/cbc_main.c:277
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)