free5G / free5GRAN

free5GRAN is an open-source 5G RAN stack. The current version includes a receiver which decodes MIB & SIB1 data. It also acts as a cell scanner. free5GRAN works in SA mode.
Apache License 2.0
96 stars 40 forks source link

Segmentation fault (core dumped) when try to execute free5GRAN #14

Open gmg2719 opened 3 years ago

gmg2719 commented 3 years ago

The error message is :

[INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Asking for clock rate 30.720000 MHz... [INFO] [B200] Actually got clock rate 30.720000 MHz. Segmentation fault (core dumped)

It seems the application crashed just after initialized USRP B210. I want to give you some logs , but the free5GRAN writes logs in /var/log/free5GRAN/free5GRAN.log is empty file, no content at all.

adejavel commented 3 years ago

Hello, can you share the config file used ?

gmg2719 commented 3 years ago

Hi, please review cfg file, the file works fine on your formal code, but doesn't work on this code release.

gmg2719 commented 3 years ago

// Scan band for finding cells function: "BAND_SCAN";

// Reception gain (integer) gain: 80;

// Bands list bands: (41,78);

// SSB period in sec. (optional, default is 0.02) ssb_period: 0.02;

// Logging level. (Trace recommended in current version) logging: "trace";

adejavel commented 3 years ago

Could you try with only n78 band ?

gmg2719 commented 3 years ago

In fact, I already tried what you said, even only n78 band, the issue remains. For example , the following cfg does not work.

// Scan band for finding cells function: "BAND_SCAN";

// Reception gain (integer) gain: 90;

// Bands list bands: (78);

// SSB period in sec. (optional, default is 0.02) ssb_period: 0.02;

// Logging level. (Trace recommended in current version) logging: "trace";

gmg2719 commented 3 years ago

I paste the UHD version below, please check if there is known compatible issue with this UHD version.

Using configuration file $PWD/../config/scan_band.cfg

BAND SCAN

[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.1.1-release [INFO] [LOGGING] Fastpath logging disabled at runtime. Using USRP b200 device [INFO] [B200] Detected Device: B210 [INFO] [B200] Operating over USB 3. [INFO] [B200] Initialize CODEC control... [INFO] [B200] Initialize Radio control... [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Performing register loopback test... [INFO] [B200] Register loopback test passed [INFO] [B200] Asking for clock rate 30.720000 MHz... [INFO] [B200] Actually got clock rate 30.720000 MHz. Segmentation fault (core dumped)

adejavel commented 3 years ago

hello, did you install the cpufrequtils package ?

jimrains commented 1 year ago

Hi I'm experiencing a similar issue. Ubuntu 22 with libuhd-dev version 4.1.0.5-3. I've gotten this software to function in the past on a Ubuntu 18 system.