[srslte-users] srsUE Segmentation fault after long runtimes?

Patrick Cutno PCutno at girdsystems.com
Wed Dec 7 15:00:40 UTC 2016


Hello world,

I'm new to srsLTE and this mailing list type forum (please bear with me if I do or say something silly).

I am currently trying to perform long iperf3 tests to measure bandwidth between a b210 with srsLTE UE and a PicoLTE with Amarisoft. Every now and again, the ue side of my system will segfault and it seems to occur randomly to me. Sometime I see the segfault after 30 mins. and other times, I can run the system for 10 hours without a problem. (Nothing else is running on the computers aside from srsLTE/Amarisoft and iperf3)

According to gdb, the fault happens in ../srsLTE/srslte/lib/ue/ue_dl.c:399 'current_ss->format = SRSLTE_DCI_FORMAT0;'. In gdb, when I try to print current_ss->format, it reports the memory is not accessible. I have pasted my back trace below if anyone could potentially give me some insight of why this randomly happens and how to fix it? If you need any other info, just let me know.

Thanks
Patrick

Starting program: /home/gird/srsUE/build/ue/src/ue ue_custom_1_4.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_003.010.001.000-release

[New Thread 0x7fffe03ec700 (LWP 5395)]
[New Thread 0x7fffdfbeb700 (LWP 5396)]
---  Software Radio Systems LTE UE  ---

Reading configuration file ue_custom_1_4.conf...
Using srsLTE version 001.004.000
[New Thread 0x7fffddaed700 (LWP 5397)]
[New Thread 0x7fffdd2ec700 (LWP 5398)]
[New Thread 0x7fffdcaeb700 (LWP 5399)]
[Thread 0x7fffdcaeb700 (LWP 5399) exited]
[Thread 0x7fffdd2ec700 (LWP 5398) exited]
[New Thread 0x7fffdd2ec700 (LWP 5400)]
[New Thread 0x7fffdcaeb700 (LWP 5401)]
[Thread 0x7fffdcaeb700 (LWP 5401) exited]
[Thread 0x7fffdd2ec700 (LWP 5400) exited]
[New Thread 0x7fffdd2ec700 (LWP 5402)]
[New Thread 0x7fffdcaeb700 (LWP 5403)]
[Thread 0x7fffdcaeb700 (LWP 5403) exited]
[Thread 0x7fffdd2ec700 (LWP 5402) exited]
[New Thread 0x7fffdd2ec700 (LWP 5404)]
[New Thread 0x7fffdcaeb700 (LWP 5405)]
[Thread 0x7fffdcaeb700 (LWP 5405) exited]
[Thread 0x7fffdd2ec700 (LWP 5404) exited]
Opening USRP with args: type=b200
[New Thread 0x7fffdd2ec700 (LWP 5406)]
[New Thread 0x7fffdcaeb700 (LWP 5407)]
[Thread 0x7fffdcaeb700 (LWP 5407) exited]
[Thread 0x7fffdd2ec700 (LWP 5406) exited]
[New Thread 0x7fffdd2ec700 (LWP 5408)]
[New Thread 0x7fffdcaeb700 (LWP 5409)]
[Thread 0x7fffdcaeb700 (LWP 5409) exited]
[Thread 0x7fffdd2ec700 (LWP 5408) exited]
[New Thread 0x7fffdd2ec700 (LWP 5410)]
[New Thread 0x7fffdcaeb700 (LWP 5411)]
-- Detected Device: B210
-- Operating over USB 3.
[New Thread 0x7fffd7fff700 (LWP 5412)]
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Setting master clock rate selection to 'automatic'.
-- Asking for clock rate 16.000000 MHz...
-- Actually got clock rate 16.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- Asking for clock rate 32.000000 MHz...
-- Actually got clock rate 32.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
[New Thread 0x7fffd77fe700 (LWP 5413)]
[New Thread 0x7fffd6ffd700 (LWP 5414)]
[New Thread 0x7fffd67fc700 (LWP 5415)]
Setting frequency: DL=375.0 Mhz, UL=325.0 MHz
[New Thread 0x7fffd5693700 (LWP 5416)]
[New Thread 0x7fffd4e92700 (LWP 5417)]
[New Thread 0x7fffcbfff700 (LWP 5418)]
Searching for cell...
Found CELL ID: 1 CP: Normal  , CFO: 0.3 KHz.
Trying to decode MIB...
- Cell ID:         1
- Nof ports:       1
- CP:              Normal
 - PRB:             6
- PHICH Length:    Normal
- PHICH Resources: 1
- SFN:             0
MIB received BW=1.4 MHz
[New Thread 0x7fffcb7fe700 (LWP 5419)]
Initializating cell configuration...
Setting Sampling frequency 1.92 MHz
Setting TX/RX offset 54 samples, 28.12 us
SIB1 received, CellID=257,  PLMN Id: MCC 1 MNC 1
SIB2 received
[Thread 0x7fffcb7fe700 (LWP 5419) exited]
Random Access Transmission: seq=1, ra-rnti=10
Random Access Complete.     c-rnti=257, ta=10
RRC Connected
Network attach successful.   IP: 192.168.2.2
[New Thread 0x7fffcaffd700 (LWP 5421)]
RRC Connection released.
Random Access Transmission: seq=1, ra-rnti=10
Random Access Complete.     c-rnti=258, ta=9
RRC Connected
RRC Connection released.
Random Access Transmission: seq=1, ra-rnti=10
Random Access Complete.     c-rnti=259, ta=9
RRC Connected
Invalid Frequency Hopping parameters. Offset: 2, n_prb_1: 0
Invalid Frequency Hopping parameters. Offset: 2, n_prb_1: 0
Invalid Frequency Hopping parameters. Offset: 2, n_prb_1: 0
RRC Connection released.

Thread 21 "ue" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd6ffd700 (LWP 5414)]
srslte_ue_dl_find_ul_dci (q=0x7ffff7f47240, cfi=0, sf_idx=<optimized out>,
    rnti=<optimized out>, dci_msg=0x7fffd6ffc8a0)
    at /home/gird/srsLTE/srslte/lib/ue/ue_dl.c:399
399            current_ss->format = SRSLTE_DCI_FORMAT0;
(gdb) bt full
#0  srslte_ue_dl_find_ul_dci (q=0x7ffff7f47240, cfi=0, sf_idx=<optimized out>,
    rnti=<optimized out>, dci_msg=0x7fffd6ffc8a0)
    at /home/gird/srsLTE/srslte/lib/ue/ue_dl.c:399
        search_space = {format = 3607086992, loc = {{L = 32767,
              ncce = 3607086832}, {L = 32767, ncce = 4764800}, {L = 0,
              ncce = 4007973720}, {L = 32767, ncce = 3607086992}, {L = 32767,
              ncce = 3607086848}, {L = 32767, ncce = 4764800}, {L = 0,
              ncce = 4979944}, {L = 0, ncce = 4294967295}, {L = 4294967295,
              ncce = 3099525120}, {L = 32767, ncce = 3607086824}, {L = 32767,
              ncce = 3607086864}, {L = 32767, ncce = 42}, {L = 0, ncce = 53}, {
              L = 0, ncce = 2952822816}, {L = 32767, ncce = 42}, {L = 0,
              ncce = 42}, {L = 0, ncce = 3220809265}, {L = 1041867344,
              ncce = 2952818992}, {L = 32767, ncce = 53}, {L = 0, ncce = 53}, {
              L = 0, ncce = 4058310079}, {L = 32767, ncce = 1686670400}},
          nof_locations = 3214023806}
        current_ss = 0x872ff7f54a54
#1  0x00000000004b003c in srsue::phch_worker::decode_pdcch_ul(srsue::mac_interface_phy::mac_grant_t*) ()
No symbol table info available.
#2  0x00000000004b591a in srsue::phch_worker::work_imp() ()
No symbol table info available.
#3  0x00000000004e5031 in srslte::thread_pool::worker::run_thread() [clone .localalias.78] ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#4  0x000000000046bdc9 in thread::thread_function_entry(void*) ()
No symbol table info available.
#5  0x00007ffff7bc16fa in start_thread (arg=0x7fffd6ffd700)
    at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fffd6ffd700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736800478976,
                7185695482018004286, 1, 140737488346351, 140736800479680,
                140737201361408, -7185746060066685634, -7185677373655352002},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#6  0x00007ffff35fab5d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20161207/0c56c94e/attachment.htm>


More information about the srsran-users mailing list