Project

General

Profile

Bug #4029

osmo-pcu: several runtime errors detected by ASan

Added by pespin about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/27/2019
Due date:
% Done:

0%

Spec Reference:

Description

Seen today while operating my network locally (master as of date of today, osmo-pcu eb64d43922f48901ea4fc872b5c2d65b9e334221)

osmo-pcu/src/tbf_ul.cpp:392 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xd6f1f98f DIR=UL STATE=FLOW) len=16
include/osmocom/core/msgb.h:543:2: runtime error: variable length array bound evaluates to non-positive value -1

And another different one:

20190527190229251 DTBFUL <000a> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf_ul.cpp:295 TBF(TFI=0 TLLI=0x00000000 DIR=UL STATE=FLOW) Decoded premier TLLI=0x00000000 of UL DATA TFI=0.
20190527190229251 DBSSGP <000c> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf_ul.cpp:392 LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xcf38987f DIR=UL STATE=FLOW) len=10
20190527190229252 DBSSGP <000c> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_bssgp_pcu.cpp:189 LLC [SGSN -> PCU] = TLLI: 0xcf38987f IMSI: 901700000015254 len: 8
20190527190229252 DTBF <0008> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf.cpp:1071 Allocating DL TBF: MS_CLASS=0/0
20190527190229252 DTBF <0008> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf.cpp:540 TBF(TFI=0 TLLI=0x00000000 DIR=DL STATE=NULL) Setting Control TS 6
20190527190229252 DTBF <0008> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf.cpp:925 TBF(TFI=0 TLLI=0xcf38987f DIR=DL STATE=NULL) Allocated: trx = 0, ul_slots = 40, dl_slots = 40
20190527190229252 DTBF <0008> /home/pespin/dev/sysmocom/git/osmo-pcu/src/bts.cpp:814 TBF(TFI=0 TLLI=0xcf38987f DIR=DL STATE=ASSIGN) TX: START Immediate Assignment Downlink (PCH)
20190527190229270 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229293 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229311 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229328 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229352 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229371 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229390 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229413 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229430 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_ms.cpp:645 Unable to update UL (M)CS CS-2 because we don't have link quality measurements.
20190527190229490 DRLCMACMEAS <0007> /home/pespin/dev/sysmocom/git/osmo-pcu/src/gprs_rlcmac_meas.cpp:106 UL RSSI of TLLI=0xcf38987f: -35 dBm
20190527190229490 DTBF <0008> /home/pespin/dev/sysmocom/git/osmo-pcu/src/tbf.cpp:484 TBF(TFI=0 TLLI=0xcf38987f DIR=UL STATE=FINISHED) free
/home/pespin/dev/sysmocom/git/osmo-pcu/src/bts.cpp:554:19: runtime error: left shift of 220 by 28 places cannot be represented in type 'int'

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)