Go to file
Andre Puschmann b20fefbe45 mac_nr_test: flush srslog at the end of test
fixes stack use after free detected by ASAN

2021-08-31T17:21:44.885938 [MAC-NR ] [D] [    0] Building new MAC PDU (9 B)
==10908==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffc481b5340 at pc 0x563c0486d489 bp 0x7ffc481b4470 sp 0x7ffc481b4460
READ of size 1 at 0x7ffc481b5340 thread T0
    #0 0x563c0486d488 in srsran::mac_sch_subpdu_nr::to_string(fmt::v7::basic_memory_buffer<char, 500ul, std::allocator<char> >&) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x139488)
    #1 0x563c0486db87 in srsran::mac_sch_pdu_nr::to_string(fmt::v7::basic_memory_buffer<char, 500ul, std::allocator<char> >&) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x139b87)
    #2 0x563c0481c127 in srsue::mux_nr::get_pdu(unsigned int) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0xe8127)
    #3 0x563c0484e62b in srsue::ul_harq_entity_nr::ul_harq_process_nr::new_grant_ul(srsue::mac_interface_phy_nr::mac_nr_grant_ul_t const&, bool const&, srsue::mac_interface_phy_nr::tb_action_ul_t*) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x11a62b)
    #4 0x563c04850de4 in srsue::ul_harq_entity_nr::new_grant_ul(srsue::mac_interface_phy_nr::mac_nr_grant_ul_t const&, srsue::mac_interface_phy_nr::tb_action_ul_t*) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x11cde4)
    #5 0x563c047bb004 in srsue::mac_nr::new_grant_ul(unsigned int, srsue::mac_interface_phy_nr::mac_nr_grant_ul_t const&, srsue::mac_interface_phy_nr::tb_action_ul_t*) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x87004)
    #6 0x563c04760cdc in msg3_test() (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x2ccdc)
    #7 0x563c0475f762 in main (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x2b762)
    #8 0x7fae1cf400b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
    #9 0x563c047601bd in _start (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x2c1bd)

Address 0x7ffc481b5340 is located in stack of thread T0 at offset 320 in frame
    #0 0x563c0486d78f in srsran::mac_sch_pdu_nr::to_string(fmt::v7::basic_memory_buffer<char, 500ul, std::allocator<char> >&) (/home/ubuntu/workspace/srslte_ubuntu_20.04_pull_request/srslte/build/srsue/src/stack/mac_nr/test/mac_nr_test+0x13978f)
2021-09-03 12:09:41 +02:00
.github rename srsLTE to srsRAN 2021-03-21 21:47:01 +01:00
cmake/modules Added new line to split the header from the actual code. 2021-08-03 10:37:42 +02:00
debian build: fix linking failure on RPi 32bit 2021-05-09 20:58:48 +02:00
lib mac_sch_pdu_nr: add to_string() helper to format MAC PDUs in logs 2021-09-03 12:09:41 +02:00
srsenb mac_nr: pretty-print received/transmitted MAC PDUs in logs 2021-09-03 12:09:41 +02:00
srsepc Moved lib GTPU to its own folder 2021-06-30 18:19:20 +01:00
srsue mac_nr_test: flush srslog at the end of test 2021-09-03 12:09:41 +02:00
test Set nr_phy_test scheduler logger to the level defined in the arguments 2021-08-31 18:56:41 +02:00
.clang-format Changed clang-format to remove newline at beggening of block. 2021-01-29 17:57:00 +01:00
.clang-tidy refactor - update of clang-tidy project file. automatic clang-tidy refactors 2021-03-18 17:04:45 +00:00
.gdbinit rename srsLTE to srsRAN 2021-03-21 21:47:01 +01:00
.lgtm.yml add basic lgtm config 2019-12-16 12:49:07 +01:00
.travis.yml Deleted all HAVE_5GNR in CC and h files 2021-02-22 21:16:04 +01:00
CHANGELOG update changelog and version for 21.04 2021-04-19 22:10:34 +02:00
CMakeLists.txt SIDEKIQ: Initial implementation 2021-07-23 12:57:30 +02:00
COPYRIGHT build: fix linking failure on RPi 32bit 2021-05-09 20:58:48 +02:00
CTestConfig.cmake ctestconfig: update valgrind parameters to track origins 2021-07-15 17:13:40 +02:00
CTestCustom.cmake.in SRSUE: avoid testing ue_phy_test 2019-12-23 22:57:37 +01:00
LICENSE change license header to agnostic version with hint to root LICENSE file 2020-12-12 15:59:25 +01:00
README.md readme: update list url 2021-04-30 15:52:11 +02:00
build_trial.sh rename srsLTE to srsRAN 2021-03-21 21:47:01 +01:00
cmake_uninstall.cmake.in Reorganized the directory structure. Added Graphics support. Added precoding/layer mapper. MIB detection now working with 1 or 2 tx antennas. Initial eNodeB implementation with PSS/SSS and PBCH generation 2014-03-03 19:09:26 +00:00
run-clang-format-diff.sh rename srsLTE to srsRAN 2021-03-21 21:47:01 +01:00

README.md

srsRAN

Build Status Language grade: C/C++ Coverity

srsRAN is a 4G/5G software radio suite developed by SRS.

See the srsRAN project pages for information, guides and project news.

The srsRAN suite includes:

  • srsUE - a full-stack SDR 4G/5G-NSA UE application (5G-SA coming soon)
  • srsENB - a full-stack SDR 4G eNodeB application (5G-NSA and 5G-SA coming soon)
  • srsEPC - a light-weight 4G core network implementation with MME, HSS and S/P-GW

For application features, build instructions and user guides see the srsRAN documentation.

For license details, see LICENSE file.

Support

Mailing list: http://www.srs.io/mailman/listinfo/srslte-users