aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
758 stars 316 forks source link

./nr-ue return Segmentation fault #283

Open lyx623 opened 3 years ago

lyx623 commented 3 years ago

Hi,

I run ./nr-ue: sudo ./nr-ue -c ~/UERANSIM/config/custom-ue.yaml and I only got Segmentation fault. My gcc & g++ version is 9.3.0 and cmake is 3.17.5. But it's ok on ./nr-gnb: sudo ./nr-gnb -c ~/UERANSIM/config/custom-gnb.yaml, gnb is work. I can execute gnb but not ue in UERANSIMv3.1.5. Maybe I need to make or build something else?

Thank you,

aligungr commented 3 years ago

Hi @lyx623

It may be related to the config file. Please send your ~/UERANSIM/config/custom-ue.yaml config file.

lyx623 commented 3 years ago

Hi @aligungr ,

Thank you for reply, it's the file:custom-ue.yaml If my gnbSearchList is 127.0.0.1, It will return Segmentation fault too. Also, I got same result in sudo ./nr-ue -c ~/UERANSIM/config/free5gc-ue.yaml.

I use gdb to trace, and I think the problem happened yaml::GetString(config, "mcc", 3, 3);.

aligungr commented 3 years ago

I see @lyx623. Do you have some additional information such as log messages? It could help to figure out the problem

lyx623 commented 3 years ago

Hi @aligungr, it seems that there is only cmake log file: CmakeOutput What kind of related log message could I provide? It looks okay in the version3.1.6.

Thank you,

aligungr commented 3 years ago

Thanks @lyx623, I mean output of the nr-ue command apart from segmentation fault

lyx623 commented 3 years ago

@aligungr Oh I see, but it just output segmentation fault. Nothing else.