Project

General

Profile

Actions

Bug #4055

closed

osmo-trx-lms: segfault on start with lime mini/usb

Added by roh almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/11/2019
Due date:
% Done:

100%

Spec Reference:

Description

setup is debian stable, packages from nightly freshly updated.
hardware is limesdr mini v1.2 - internal clock
i tried a limesdr usb too, but the result is the same

root@test123:/etc/osmocom# gdb --args /usr/bin/osmo-trx-lms -C /etc/osmocom/osmo-trx-lms.cfg
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/osmo-trx-lms...Reading symbols from /usr/lib/debug/.build-id/e4/3c22501c8dce35452481683c82f3c6608fac28.debug...done.
done.
(gdb) r
Starting program: /usr/bin/osmo-trx-lms -C /etc/osmocom/osmo-trx-lms.cfg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Info: SSE3 support compiled in and supported by CPU
Info: SSE4.1 support compiled in and supported by CPU
Tue Jun 11 17:36:06 2019 DLGLOBAL <0004> telnet_interface.c:104 Available via telnet 127.0.0.1 4237
Tue Jun 11 17:36:06 2019 DLCTRL <000b> control_if.c:911 CTRL at 127.0.0.1 4236
Tue Jun 11 17:36:06 2019 DMAIN <0000> osmo-trx.cpp:478 [tid=140737353853760] Config Settings
   Log Level............... 0
   Device args............. 
   TRX Base Port........... 5700
   TRX Address............. 127.0.0.1
   GSM BTS Address......... 127.0.0.1
   Channels................ 1
   Tx Samples-per-Symbol... 4
   Rx Samples-per-Symbol... 4
   EDGE support............ 0
   Extended RACH support... 0
   Reference............... 0
   C0 Filler Table......... 1
   Multi-Carrier........... 0
   Tuning offset........... 0
   RSSI to dBm offset...... 0
   Swap channels........... 0
   Tx Antennas............. 'BAND1'
   Rx Antennas............. 'LNAW'

Tue Jun 11 17:36:06 2019 DMAIN <0000> osmo-trx.cpp:434 [tid=140737353853760] Setting SCHED_RR priority 18
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:52 [tid=140737353853760] creating LMS device...
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:139 [tid=140737353853760] Opening LMS device..
[New Thread 0x7ffff425a700 (LWP 757)]
[New Thread 0x7ffff3a59700 (LWP 758)]
[New Thread 0x7ffff3258700 (LWP 759)]
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:145 [tid=140737353853760] Devices found: 1
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:155 [tid=140737353853760] Device [0]: LimeSDR Mini, media=USB 2.0, module=FT601, addr=24607:1027, serial=1D3B7AA1A9F5CC
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:164 [tid=140737353853760] Using device[0]
Tue Jun 11 17:36:06 2019 DLMS <0003> LMSDevice.cpp:92 [tid=140737353853760] Reference clock 40.00 MHz
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:190 [tid=140737353853760] Init LMS device
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:97 [tid=140737353853760] Sample Rate: Min=100000 Max=3.072e+07 Step=0
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:226 [tid=140737353853760] Setting sample rate to 1.08333e+06 4
Tue Jun 11 17:36:06 2019 DDEV <0002> LMSDevice.cpp:232 [tid=140737353853760] Sample Rate: Host=1.08333e+06 RF=3.46667e+07
Tue Jun 11 17:36:06 2019 DMAIN <0000> LMSDevice.cpp:209 [tid=140737353853760] Antennas configured successfully
[New Thread 0x7ffff7ff7700 (LWP 760)]
Tue Jun 11 17:36:06 2019 DMAIN <0000> Threads.cpp:116 [tid=140737354102528] Thread 140737354102528 (task 760) set name: CtrlService0
Tue Jun 11 17:36:06 2019 DMAIN <0000> osmo-trx.cpp:526 [tid=140737353853760] -- Transceiver active with 1 channel(s)
Tue Jun 11 17:36:08 2019 DTRXCTRL <0001> Transceiver.cpp:717 [tid=140737354102528][chan=0] command is 'POWERON'
Tue Jun 11 17:36:08 2019 DMAIN <0000> Transceiver.cpp:244 [tid=140737354102528] Starting the transceiver
Tue Jun 11 17:36:08 2019 DMAIN <0000> radioInterface.cpp:177 [tid=140737354102528] Starting radio device
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:260 [tid=140737354102528] starting LMS...
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:409 [tid=140737354102528][chan=0] Setting TX gain to 66 dB
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:424 [tid=140737354102528][chan=0] Setting RX gain to 36.5 dB
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:360 [tid=140737354102528][chan=0] Setting filters
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:97 [tid=140737354102528] LPFBWRange Rx: Min=1.4001e+06 Max=1.3e+08 Step=0
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:97 [tid=140737354102528] LPFBWRange Tx: Min=1.4001e+06 Max=1.3e+08 Step=0
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:371 [tid=140737354102528][chan=0] LPFBW: Rx=1.4001e+06 Tx=5.2e+06
Tue Jun 11 17:36:08 2019 DDEV <0002> LMSDevice.cpp:373 [tid=140737354102528][chan=0] Setting LPFBW

Thread 5 "CtrlService0" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7ff7700 (LWP 760)]
0x00007ffff5e1dd4e in _IO_vfprintf_internal (s=s@entry=0x7ffff7ff00f0, format=format@entry=0x7ffff5f40580 <format> "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", ap=ap@entry=0x7ffff7ff0258) at vfprintf.c:1267
1267    vfprintf.c: No such file or directory.
(gdb) bt
#0  0x00007ffff5e1dd4e in _IO_vfprintf_internal (s=s@entry=0x7ffff7ff00f0, format=format@entry=0x7ffff5f40580 <format> "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", ap=ap@entry=0x7ffff7ff0258) at vfprintf.c:1267
#1  0x00007ffff5e46e89 in _IO_vsnprintf (string=0x7ffff61729c0 <result> "", maxlen=<optimized out>, format=0x7ffff5f40580 <format> "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", args=args@entry=0x7ffff7ff0258) at vsnprintf.c:114
#2  0x00007ffff5e262c2 in __snprintf (s=s@entry=0x7ffff61729c0 <result> "", maxlen=maxlen@entry=114, format=format@entry=0x7ffff5f40580 <format> "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n") at snprintf.c:33
#3  0x00007ffff5e7ee81 in asctime_internal (tp=<optimized out>, buf=buf@entry=0x7ffff61729c0 <result> "", buflen=buflen@entry=114) at asctime.c:56
#4  0x00007ffff5e7ef11 in __GI_asctime (tp=<optimized out>) at asctime.c:87
#5  0x00007ffff5e7ef85 in ctime (t=t@entry=0x7ffff7ff03d0) at ctime.c:27
#6  0x00007ffff6cee528 in _output (target=target@entry=0x5555557d65d0, subsys=subsys@entry=3, level=level@entry=5, file=file@entry=0x555555592e39 "LMSDevice.cpp", line=line@entry=92, cont=cont@entry=0, format=0x555555595e00 "%s\n", 
    ap=0x7ffff7ff14a0) at logging.c:365
#7  0x00007ffff6cee84d in osmo_vlogp (subsys=<optimized out>, level=5, file=0x555555592e39 "LMSDevice.cpp", line=92, cont=0, format=0x555555595e00 "%s\n", ap=0x7ffff7ff1510) at logging.c:544
#8  0x00007ffff6cee9b7 in logp2 (subsys=<optimized out>, level=<optimized out>, file=<optimized out>, line=<optimized out>, cont=cont@entry=0, format=format@entry=0x555555595e00 "%s\n") at logging.c:577
#9  0x000055555558ee27 in Log::~Log (this=0x7ffff7ff17d0, __in_chrg=<optimized out>) at Logger.cpp:55
#10 0x000055555555fbee in lms_log_callback (lvl=<optimized out>, msg=0x7ffff7ff19b0 "Rx LPF min bandwidth is 4MHz when TIA gain is set to -12 dB") at LMSDevice.cpp:92
#11 0x00007ffff6a3d59a in lime::log (level=level@entry=lime::LOG_LEVEL_WARNING, format=format@entry=0x7fffe8000a50 "Rx LPF min bandwidth is 4MHz when TIA gain is set to -12 dB", argList=argList@entry=0x7ffff7ff29e0) at ./src/Logger.cpp:76
#12 0x00007ffff6a4c711 in lime::warning (format=format@entry=0x7fffe8000a50 "Rx LPF min bandwidth is 4MHz when TIA gain is set to -12 dB") at ./src/Logger.h:98
#13 0x00007ffff6a4c9ca in lime::LMS7002M::Log (this=0x55555585da50, text=0x7fffe8000a50 "Rx LPF min bandwidth is 4MHz when TIA gain is set to -12 dB", type=<optimized out>) at ./src/lms7002m/LMS7002M.cpp:59
#14 0x00007ffff6a4cbf4 in lime::LMS7002M::Log (this=0x55555585da50, type=lime::LMS7002M::LOG_WARNING, format=<optimized out>, argList=argList@entry=0x7ffff7ff2b50) at ./src/lms7002m/LMS7002M.cpp:92
#15 0x00007ffff6a60e6f in lime::LMS7002M::Log (this=this@entry=0x55555585da50, type=type@entry=lime::LMS7002M::LOG_WARNING, format=format@entry=0x7ffff6ab5bd8 "Rx LPF min bandwidth is 4MHz when TIA gain is set to -12 dB")
    at ./src/lms7002m/LMS7002M.h:488
#16 0x00007ffff6a6078d in lime::LMS7002M::TuneRxFilter (this=this@entry=0x55555585da50, rx_lpf_freq_RF=4000000) at ./src/lms7002m/LMS7002M_filtersCalibration.cpp:87
#17 0x00007ffff6a7eb55 in lime::LMS7_Device::SetLPF (this=<optimized out>, tx=<optimized out>, chan=chan@entry=0, en=en@entry=true, bandwidth=<optimized out>, bandwidth@entry=6.9533491739302031e-310) at ./src/API/lms7_device.cpp:756
#18 0x00007ffff6a78c3a in LMS_SetLPFBW (device=<optimized out>, dir_tx=dir_tx@entry=false, chan=chan@entry=0, bandwidth=6.9533491739302031e-310, bandwidth@entry=1400100) at ./src/API/lms7_api.cpp:395
#19 0x0000555555563bc5 in LMSDevice::do_filters (this=this@entry=0x55555585ab00, chan=chan@entry=0) at LMSDevice.cpp:374
#20 0x0000555555563f0d in LMSDevice::start (this=0x55555585ab00) at LMSDevice.cpp:278
#21 0x000055555556e34b in RadioInterface::start (this=0x55555585df50) at radioInterface.cpp:183
#22 0x000055555557414b in Transceiver::start (this=this@entry=0x55555585e1e0) at Transceiver.cpp:251
#23 0x0000555555578fdd in Transceiver::driveControl (this=this@entry=0x55555585e1e0, chan=chan@entry=0) at Transceiver.cpp:723
#24 0x0000555555579cb3 in ControlServiceLoopAdapter (chan=<optimized out>) at Transceiver.cpp:1098
#25 0x00007ffff7bc34a4 in start_thread (arg=0x7ffff7ff7700) at pthread_create.c:456
#26 0x00007ffff5ebfd0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
root@test123:/etc/osmocom# osmo-trx-lms --version
Info: SSE3 support compiled in and supported by CPU
Info: SSE4.1 support compiled in and supported by CPU
OsmoTRX version 1.0.0.44-bde5

Copyright (C) 2007-2014 Free Software Foundation, Inc.
Copyright (C) 2013 Thomas Tsou <tom@tsou.cc>
Copyright (C) 2015 Ettus Research LLC
Copyright (C) 2017-2018 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@test123:/etc/osmocom# LimeUtil --make
Make device 
  Device name: LimeSDR-Mini
  Expansion name: UNSUPPORTED
  Firmware version: 6
  Hardware version: 2
  Protocol version: 1
  Gateware version: 1
  Gateware revision: 30
  Gateware target: LimeSDR-Mini
  Serial number: 0x1d3b7aa1a9f5cc
  Free connection... OK
root@test123:/etc/osmocom# LimeUtil --make
Make device 
  Device name: LimeSDR-USB
  Expansion name: UNSUPPORTED
  Firmware version: 4
  Hardware version: 4
  Protocol version: 1
  Gateware version: 2
  Gateware revision: 21
  Gateware target: LimeSDR-USB
  Serial number: 0x9060b00472227
  Free connection... OK

Files

osmo-trx-lms.cfg osmo-trx-lms.cfg 361 Bytes roh, 06/12/2019 02:01 PM
osmo-bsc.cfg osmo-bsc.cfg 3.41 KB roh, 06/12/2019 02:01 PM

Related issues

Related to OsmoTRX - Support #4059: osmo-trx-lms: segfault on start LimeSDR-USBResolvedpespin06/12/2019

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)