Project

General

Profile

Actions

Bug #2402

closed

SCCP client segfaults when remote osmo-stp instance terminates

Added by neels almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
07/27/2017
Due date:
% Done:

100%

Spec Reference:

Description

reproduction: run a (new) osmo-msc, -bsc or -hnbgw connecting to an osmo-stp, then ctrl-C the osmo-stp. Result:

Program received signal SIGSEGV, Segmentation fault.
llist_del (entry=<optimized out>) at ../../include/osmocom/core/linuxlist.h:126
126        __llist_del(entry->prev, entry->next);
(gdb) bt
#0  llist_del (entry=<optimized out>) at ../../include/osmocom/core/linuxlist.h:126
#1  _osmo_fsm_inst_term (fi=0x742a50, cause=OSMO_FSM_TERM_ERROR, data=0x0, file=0x7ffff5deb038 "../../src/xua_default_lm_fsm.c", line=370) at ../../src/fsm.c:475
#2  0x00007ffff5dddebd in osmo_ss7_asp_use_default_lm (asp=0x742820, log_level=1) at ../../src/xua_default_lm_fsm.c:370
#3  0x00007ffff75545ed in _osmo_fsm_inst_dispatch (fi=0x742a50, event=7, data=0x100100, data@entry=0x73fe38, file=0x7ffff5deb038 "../../src/xua_default_lm_fsm.c", line=370, line@entry=355) at ../../src/fsm.c:426
#4  0x00007ffff5dddd8d in default_lm_prim_cb (oph=0x73fe38, _asp=<optimized out>) at ../../src/xua_default_lm_fsm.c:355
#5  0x00007ffff5de3315 in xua_asp_send_xlm_prim (asp=0x742820, prim=0x73fe38) at ../../src/xua_asp_fsm.c:120
#6  0x00007ffff5dde9b3 in xua_cli_close_and_reconnect (cli=<optimized out>) at ../../src/osmo_ss7.c:1452
#7  xua_cli_read_cb (conn=0x742c00) at ../../src/osmo_ss7.c:1520
#8  0x00007ffff4bbc403 in osmo_stream_cli_read (cli=0x742c00) at ../../src/stream.c:166
#9  osmo_stream_cli_fd_cb (ofd=0x742c00, what=1) at ../../src/stream.c:250
#10 0x00007ffff75514a2 in osmo_fd_disp_fds (_eset=0x7fffffffe570, _wset=0x7fffffffe4f0, _rset=0x7fffffffe470) at ../../src/select.c:195
#11 osmo_select_main (polling=<optimized out>) at ../../src/select.c:235
#12 0x0000000000406cd4 in main (argc=1, argv=0x692370) at ../../../src/osmo-msc/msc_main.c:568
(gdb) 
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)