Project

General

Profile

Bug #4300

osmo-bsc segfaults when logging is enabled

Added by roh about 2 months ago. Updated about 2 months ago.

Status:
Feedback
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
12/03/2019
Due date:
% Done:

0%

Spec Reference:

Description

to reproduce:

run osmo-bsc in terminal (to see the segfault)

telnet localhost 4242
enable
logging enable
logging filter all 1
logging level force-all debug
close connection via <ctrl-d>

usr/bin/osmo-bsc -c /etc/osmocom/osmo-bsc.cfg -s
logging level cc (debug|info|notice|error|fatal)
logging level mgcp (debug|info|notice|error|fatal)
% dyn_ts_allow_tch_f is deprecated, rather use msc/codec-list to pick codecs
<0013> ../../../git/src/vty/telnet_interface.c:104 Available via telnet 127.0.0.1 4242
<0015> ../../git/src/input/ipaccess.c:859 enabling ipaccess BSC mode on 0.0.0.0 with OML 3002 and RSL 3003 TCP ports
<001a> ../../../git/src/ctrl/control_if.c:911 CTRL at 127.0.0.1 4249
<0023> ../../../git/src/libosmo-mgcp-client/mgcp_client.c:777 MGCP client: using endpoint domain '@mgw'
<0007> ../../../git/src/osmo-bsc/osmo_bsc_sigtran.c:494 Initializing SCCP connection to MSC msc-0
...
BTS 0 reported connected PCU version 0.7.0
BTS 0 reported connected PCU version 0.7.0
BTS 0 reported connected PCU version 0.7.0
Segmentation fault (core dumped)

the same happens when 'set-all' is used (not only with 'force-all'

History

#1 Updated by laforge about 2 months ago

  • Assignee set to pespin
  • Priority changed from Normal to High

can you please always make sure to include the exact version of the program used when making bug reports? Otherwise it's guesswork to try to reproduce it.

#2 Updated by laforge about 2 months ago

just did a very quick attempt with master of a few days ago, couldn't reproduce.

 > ./osmo-bsc --version
OsmoBSC version 1.4.0-dirty

#4 Updated by roh about 2 months ago

  • Assignee deleted (pespin)
  • Priority changed from High to Normal
OsmoBSC version 1.5.0

on a sysmobts2100 image 201705-testing from november this year

#5 Updated by roh about 2 months ago

  • Assignee set to pespin
  • Priority changed from Normal to High

#6 Updated by pespin about 2 months ago

  • Status changed from New to Feedback
  • Assignee changed from pespin to roh

Can you try running following binary in the sysmobts and see if you can still reproduce the issue?
https://jenkins.osmocom.org/jenkins/view/osmo-gsm-tester/job/osmo-gsm-tester_build-osmo-bsc/lastSuccessfulBuild/artifact/osmo-bsc.build-7737.tgz

It contains all required deps, so simply uncompress it and set LD_LIBRARY_PATH to $untared_dir/lib.

#7 Updated by pespin about 2 months ago

Ah nevermind, that one is not built for ARM like we do for osmo-bts-sysmo ;)

#8 Updated by pespin about 2 months ago

You can use the libosmocore from here however (Current master), this way we may be lucky and don't see the crash, which means it's fixed in master (probably neel's link):
https://jenkins.osmocom.org/jenkins/view/osmo-gsm-tester/job/osmo-gsm-tester_build-osmo-bts-sysmo/3608/artifact/osmo-bts-sysmo.build-3608.tgz

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)