[srsran-users] Modifying srsue to send my own RRC messages
Karim Baccar
karim.baccar at inria.fr
Tue Aug 23 08:42:03 UTC 2022
Hello,
My setup is composed of an USRP B210 and an Amarisoft callbox configured in SA mode. I have been trying to modify srsue library in order to send my own RRC packets I have created in the UPER format. My main problem is that I have not been able to forward none of the messages as I was getting a segmentation fault error message (Note that using the write_pdu function in rrc_nr wouldnt give me a problem but the messages were not forwarded to the sdr but were considered instead to be DL-DCCH). Any help in debugging the error would be greatly apperciated.
/srsue/src/stack/rrc_nr/rrc_nr.cc:
void rrc_nr::send_ul_dcch_bytes(size_t size, uint8_t *msg)
{
srslog::basic_logger& logger = srslog::fetch_basic_logger("RRC-NR");
logger.set_level(srslog::basic_levels::debug);
logger.set_hex_dump_max_size(-1);
memcpy(pdu->msg, msg, size);
pdu->N_bytes = size;
if (pdu == nullptr) {
logger.error("Couldn't allocate PDU in %s().", __FUNCTION__);
return;
}
uint32_t lcid = 1;
printf("sending....");
pdcp->write_sdu(lcid, std::move(pdu));
}
--- command='srsue ue_offline.conf' version=22.04.0 signal=11 date='23/08/2022 08:27:20' ---
srsue(+0x330e1f) [0x5573677f9e1f]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f797b996090]
srsue(+0x2cf172) [0x557367798172]
srsue(+0xab8c3) [0x5573675748c3]
srsue(+0x91f2f) [0x55736755af2f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f797b977083]
srsue(+0x94b7e) [0x55736755db7e]
srsRAN crashed. Please send this backtrace to the developers ...
--- exiting ---
terminate called without an active exception
--- command='srsue ue_offline.conf' version=22.04.0 signal=6 date='23/08/2022 08:27:20' ---
srsue(+0x330e1f) [0x5573677f9e1f]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f797b996090]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb) [0x7f797b99600b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b) [0x7f797b975859]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9e911) [0x7f797bd4f911]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa38c) [0x7f797bd5b38c]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xaa3f7) [0x7f797bd5b3f7]
/usr/local/lib/libsrsran_rf_uhd.so(+0x15f38) [0x7f797b81bf38]
/usr/local/lib/libsrsran_rf_uhd.so(+0x2b352) [0x7f797b831352]
/lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0xce) [0x7f797b999fde]
/usr/local/lib/libsrsran_rf_uhd.so(+0xe117) [0x7f797b814117]
srsRAN crashed. Please send this backtrace to the developers ...
--- exiting ---
--- command='srsue ue_offline.conf' version=22.04.0 signal=11 date='23/08/2022 08:27:20' ---
srsue(+0x330e1f) [0x5573677f9e1f]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f797b996090]
srsue(+0x1861c5) [0x55736764f1c5]
srsue(+0x12a072) [0x5573675f3072]
srsue(+0x1280d2) [0x5573675f10d2]
srsue(+0x971bd) [0x5573675601bd]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609) [0x7f797c1cf609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f797ba72133]
srsRAN crashed. Please send this backtrace to the developers ...
--- exiting ---
Segmentation fault
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20220823/54d47347/attachment.htm>
More information about the srsran-users
mailing list