Changes:
------------------------------------------ [...truncated 109.65 KB...] make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' Making all in tests make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' CXX pcu_emu.o CXX test_replay_gprs_attach.o CC openbsc_clone.o CXX test_pdp_activation.o CXXLD emu/pcu_emu make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' Making all in contrib make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' Making all in systemd make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib/systemd' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib/systemd' make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[1]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[1]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' Making dvi in include make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/include' make[2]: Nothing to be done for 'dvi'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/include' Making dvi in src make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/src' make[2]: Nothing to be done for 'dvi'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/src' Making dvi in doc make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' Making dvi in examples make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/examples' make[3]: Nothing to be done for 'dvi'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/examples' Making dvi in manuals make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/manuals' make[3]: Nothing to be done for 'dvi'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/manuals' make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' make[3]: Nothing to be done for 'dvi-am'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' Making dvi in tests make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' make[2]: Nothing to be done for 'dvi'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' Making dvi in contrib make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' Making dvi in systemd make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib/systemd' make[3]: Nothing to be done for 'dvi'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib/systemd' make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[3]: Nothing to be done for 'dvi-am'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/contrib' make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[2]: Nothing to be done for 'dvi-am'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[1]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[1]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' Making check in include make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/include' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/include' Making check in src make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/src' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/src' Making check in doc make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' Making check in examples make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/examples' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/examples' Making check in manuals make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/manuals' make[3]: Nothing to be done for 'check'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc/manuals' make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' make[3]: Nothing to be done for 'check-am'. make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/doc' Making check in tests make[2]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' make rlcmac/RLCMACTest alloc/AllocTest alloc/MslotTest tbf/TbfTest types/TypesTest ms/MsTest llist/LListTest llc/LlcTest codel/codel_test edge/EdgeTest bitcomp/BitcompTest fn/FnTest app_info/AppInfoTest ulc/PdchUlcTest make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' CXX RLCMACTest.o CXX AllocTest.o CXX MslotTest.o CXX TbfTest.o CXX TypesTest.o CXX MsTest.o CXX LListTest.o CXX LlcTest.o CC codel_test.o CXX EdgeTest.o CXX BitcompTest.o CXX egprs_rlc_compression.o CXX FnTest.o CXX AppInfoTest.o CXX PdchUlcTest.o CXXLD rlcmac/RLCMACTest CXXLD alloc/AllocTest CXXLD alloc/MslotTest CXXLD tbf/TbfTest CXXLD types/TypesTest CXXLD llist/LListTest CXXLD ms/MsTest CXXLD llc/LlcTest CCLD codel/codel_test CXXLD edge/EdgeTest CXXLD bitcomp/BitcompTest CXXLD app_info/AppInfoTest CXXLD fn/FnTest CXXLD ulc/PdchUlcTest make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' make check-local make[3]: Entering directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' /bin/bash '../../../tests/testsuite' ## ---------------------------------- ## ## osmo-pcu 1.0.0.13-0bda test suite. ## ## ---------------------------------- ##
Regression tests
1: rlcmac ok 2: multi_slot ok 3: ts_alloc ok 4: tbf FAILED (testsuite.at:28) 5: bitcomp ok 6: edge ok 7: types ok 8: ms ok 9: llc ok 10: llist ok 11: codel ok 12: fn ok 13: app_info ok 14: ulc ok
## ------------- ## ## Test results. ## ## ------------- ##
ERROR: All 14 tests were run, 1 failed unexpectedly. ## -------------------------- ## ## testsuite.log was created. ## ## -------------------------- ##
Please send `tests/testsuite.log' and all information you think might help:
To: osmocom-net-gprs@lists.osmocom.org Subject: [osmo-pcu 1.0.0.13-0bda] testsuite: 4 failed
You may investigate any problem if you feel able to do so, in which case the test suite provides a good starting point. Its output may be found below `tests/testsuite.dir'.
make[3]: *** [check-local] Error 1 make[2]: *** [check-am] Error 2 Makefile:1400: recipe for target 'check-local' failed make[3]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' Makefile:1193: recipe for target 'check-am' failed make[2]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests' Makefile:419: recipe for target 'check-recursive' failed make[1]: Leaving directory '/build/osmo-pcu-1.0.0.13-0bda/_build/sub' make[1]: *** [check-recursive] Error 1 Makefile:624: recipe for target 'distcheck' failed make: *** [distcheck] Error 1 + cat-testlogs.sh
======================== ./osmo-pcu-1.0.0.13-0bda/_build/sub/tests/testsuite.dir/04/testsuite.log
# -*- compilation -*- 4. testsuite.at:25: testing tbf ... ../../../tests/testsuite.at:28: $OSMO_QEMU $abs_top_builddir/tests/tbf/TbfTest --- experr 2022-05-06 00:12:16.383377168 +0000 +++ /build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/testsuite.dir/at-groups/4/stderr 2022-05-06 00:12:24.423181086 +0000 @@ -9154,4 +9154,56 @@ TBF(UL-TFI_-1){ASSIGN}: Deallocated UL_ASS_TBF(UL-TFI_-1){NONE}: Deallocated DL_ASS_TBF(UL-TFI_-1){NONE}: Deallocated -=== end test_packet_access_rej_prr_no_other_tbfs === +TBF(TFI=1 TLLI=0xf1223344 DIR=DL STATE=FINISHED) T3191 timeout expired, freeing TBF: |Assignment was on PACCH|No downlink ACK received yet| +================================================================= +==19647==ERROR: AddressSanitizer: heap-use-after-free on address 0xb3e53e0c at pc 0x005d9129 bp 0xbe8fd518 sp 0xbe8fd51c +READ of size 4 at 0xb3e53e0c thread T0 + #0 0x5d9127 in bts_do_rate_ctr_inc (/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/tbf/TbfTest+0x169127) + #1 0x5e14d7 in tbf_free (/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/tbf/TbfTest+0x1714d7) + #2 0x5e68d3 in tbf_timeout_free(gprs_rlcmac_tbf*, tbf_timers, bool) (/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/tbf/TbfTest+0x1768d3) + #3 0x5e693f in cb_T3191(void*) (/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/tbf/TbfTest+0x17693f) + +0xb3e53e0c is located 23564 bytes inside of 23720-byte region [0xb3e4e200,0xb3e53ea8) +freed by thread T0 here: + #0 0xb6a5d47d in free (/usr/lib/arm-linux-gnueabihf/libasan.so.3+0x9247d) + +previously allocated by thread T0 here: + #0 0xb6a5d69b in __interceptor_malloc (/usr/lib/arm-linux-gnueabihf/libasan.so.3+0x9269b) + #1 0x1d (<unknown module>) + #2 0x1 (<unknown module>) + +SUMMARY: AddressSanitizer: heap-use-after-free (/build/osmo-pcu-1.0.0.13-0bda/_build/sub/tests/tbf/TbfTest+0x169127) in bts_do_rate_ctr_inc +Shadow bytes around the buggy address: + 0x367ca770: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd + 0x367ca780: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd + 0x367ca790: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd + 0x367ca7a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd + 0x367ca7b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd +=>0x367ca7c0: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd + 0x367ca7d0: fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa + 0x367ca7e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa + 0x367ca7f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa + 0x367ca800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa + 0x367ca810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa +Shadow byte legend (one shadow byte represents 8 application bytes): + Addressable: 00 + Partially addressable: 01 02 03 04 05 06 07 + Heap left redzone: fa + Heap right redzone: fb + Freed heap region: fd + Stack left redzone: f1 + Stack mid redzone: f2 + Stack right redzone: f3 + Stack partial redzone: f4 + Stack after return: f5 + Stack use after scope: f8 + Global redzone: f9 + Global init order: f6 + Poisoned by user: f7 + Container overflow: fc + Array cookie: ac + Intra object redzone: bb + ASan internal: fe + Left alloca redzone: ca + Right alloca redzone: cb +==19647==ABORTING stdout: ../../../tests/testsuite.at:28: exit code was 1, expected 0 4. testsuite.at:25: 4. tbf (testsuite.at:25): FAILED (testsuite.at:28) Build step 'Execute shell' marked build as failure