Project

General

Profile

Actions

Bug #3498

closed

osmo-bts-trx (and others?) crash when omitting an IPA ID GET upon first connection on RSL link

Added by neels over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
08/24/2018
Due date:
% Done:

100%

Spec Reference:

Description

When https://gerrit.osmocom.org/10599 is applied to osmo-ttcn3-hacks, the "BSC" sends an IPA ID ACK to osmo-bts-trx when that first connects, on both OML and RSL.
The (apparently) RSL read cb then crashes in a segfault.

<0006> ../../../../src/osmo-bts/src/common/scheduler.c:591 Configuring multiframe with PDCH trx=0 ts=7
<0001> ../../../../src/osmo-bts/src/common/oml.c:313 OC=CHANNEL INST=(00,00,07) Tx STATE CHG REP
<0001> ../../../../src/osmo-bts/src/common/oml.c:348 OC=CHANNEL INST=(00,00,07) AVAIL STATE Dependency -> OK
<0001> ../../../../src/osmo-bts/src/common/oml.c:355 OC=CHANNEL INST=(00,00,07) OPER STATE Disabled -> Enabled
<0001> ../../../../src/osmo-bts/src/common/oml.c:313 OC=CHANNEL INST=(00,00,07) Tx STATE CHG REP
<0006> ../../../../src/osmo-bts/src/osmo-bts-trx/scheduler_trx.c:1640 TRX Clock Ind: elapsed_us= 462107, elapsed_fn=102, error_us=-8623
<0006> ../../../../src/osmo-bts/src/osmo-bts-trx/scheduler_trx.c:1653 GSM clock skew: old fn=0, new fn=102
<0009> ../../../../src/osmo-bts/src/common/pcu_sock.c:899 PCU socket connected to external PCU
../../../src/libosmo-abis/src/e1_input.c:511:2: runtime error: member access within null pointer of type 'struct e1inp_sign_link'
../../../src/libosmo-abis/src/e1_input.c:512:11: runtime error: member access within null pointer of type 'struct e1inp_sign_link'
ASAN:SIGSEGV
=================================================================
==5702==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000038 (pc 0x7f28a379ea34 sp 0x7ffd7d8933f0 bp 0x62e000000a98 T0)
    #0 0x7f28a379ea33 in e1inp_lookup_sign_link ../../../src/libosmo-abis/src/e1_input.c:512
    #1 0x7f28a37b97d4 in ipaccess_bts_read_cb ../../../src/libosmo-abis/src/input/ipaccess.c:778
    #2 0x7f28a37b0277 in ipa_client_read ../../../src/libosmo-abis/src/input/ipa.c:76
    #3 0x7f28a37b0277 in ipa_client_fd_cb ../../../src/libosmo-abis/src/input/ipa.c:139
    #4 0x7f28a2ac1a34 in osmo_fd_disp_fds ../../../src/libosmocore/src/select.c:217
    #5 0x7f28a2ac1a34 in osmo_select_main ../../../src/libosmocore/src/select.c:257
    #6 0x444ba3 in bts_main ../../../../src/osmo-bts/src/common/main.c:364
    #7 0x7f28a17ddb44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
    #8 0x405e54 (/usr/local/bin/osmo-bts-trx+0x405e54)

Related issues

Related to libosmo-sccp + libosmo-sigtran - Bug #3500: changing ipa_asp_fsm to expect IPA ID ACK instead of IPA ID GET has broken the ttcn3-bsc-test,SCCPlite test suiteResolvedneels08/24/2018

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)