TbfTest fails sanitizer build, please take a look @tbf-folks

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Wed Nov 30 03:14:19 UTC 2016


Dear authors of Tbf,

can you make sense of this build failure?
https://jenkins.osmocom.org/jenkins/job/Osmocom_Sanitizer/373/console

It shows that the expected stderr output of the TbfTest deviates,
and the test exits prematurely.

interesting output:

+tbf_dl.cpp:766:65: runtime error: load of value 32767, which is not a valid value for type 'egprs_puncturing_values'

-- got ack for BSN=1258
-- got ack for BSN=1259
-- got ack for BSN=1260
+- got NACK for BSN=1258
+- got NACK for BSN=1259
+- got NACK for BSN=1260

To help reproducing it, find below the jenkins script that runs this sanitizer
build.

Thanks for any patches that could fix our sanitizer build!

~Neels



#!/bin/sh

set -ex

export BUILDDIR=$PWD/build/
export PKG_CONFIG_PATH=$BUILDDIR/lib/pkgconfig
export LD_LIBRARY_PATH=$BUILDDIR/lib/
export PATH="$PATH:$HOME/osmo-ci/scripts"

build() {
        RET=$PWD
	git clone git://git.osmocom.org/$1 source/$1
	cd source/$1
        git checkout -b build-branch origin/$2
        cd $3
	autoreconf --install --force
	./configure --prefix=$BUILDDIR $4
	make check CFLAGS+="-fsanitize=address -fsanitize=undefined" CXXFLAGS+="-fsanitize=address -fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0" UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" \
      || cat-testlogs.sh
	make install CFLAGS+="-fsanitize=address -fsanitize=undefined" CXXFLAGS+="-fsanitize=address -fsanitize=undefined"
	cd $RET
}

rm -rf $BUILDDIR
rm -rf source
mkdir -p source
mkdir -p $BUILDDIR/include/sysmocom/femtobts

git clone git://git.sysmocom.de/sysmo-bts/layer1-api.git source/layer1-api/
cp source/layer1-api/include/* $BUILDDIR/include/sysmocom/femtobts/

build libosmocore $LIBOSMOCORE_BRANCH ./
build libosmo-abis $LIBOSMOABIS_BRANCH ./
build libosmo-netif $LIBOSMONETIF_BRANCH ./
build libosmo-sccp $LIBOSMOSCCP_BRANCH ./
# gcc ice's
#build libsmpp34 $LIBSMPP_BRANCH
build openggsn $OPENGGSN_BRANCH ./
build openbsc $OPENBSC_BRANCH ./openbsc "--enable-nat --enable-osmo-bsc --enable-vty-tests --enable-external-tests"
build osmo-pcu $OSMOPCU_BRANCH ./ "--enable-sysmocom-dsp --enable-vty-tests"
build osmo-bts $OSMOBTS_BRANCH ./ "--enable-sysmocom-bts --enable-trx"


-- 
- Neels Hofmeyr <nhofmeyr at sysmocom.de>          http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschäftsführer / Managing Directors: Harald Welte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20161130/eaacae3b/attachment.bin>


More information about the OpenBSC mailing list