[USRP-users] Bus errors and UHD exceptions with simple I/Q recorder

2022-08-13 Thread woznych
Looked around on this mailing list and couldn’t find an explanation, but I’m running in to random exceptions being thrown sometimes in my C++ I/Q recorder application. I can’t seem to replicate it with the example code found in “rx_samples_to_file”. Using g++ (Ubuntu 9.4.0-1ubuntu1\~20.04.1) 9.4

[USRP-users] Re: Bus errors and UHD exceptions with simple I/Q recorder

2022-08-14 Thread woznych
Nikos, Thanks for the reply. I traced it to the “recv” call which has left me puzzled. I added a bunch of instrumentation to see if I was walking off the end of my memory that was allocated to the 16-bit I/Q buffer. `const std::int32_t startIndex = 2*num_accum_samps;` `const std::int32_t remai

[USRP-users] Re: Bus errors and UHD exceptions with simple I/Q recorder

2022-08-15 Thread woznych
I tweaked it to make sure the buffer size is a multiple of “rx_stream->get_max_num_samps()” and haven’t been able to get the issue to occur. Will require more exhaustive testing, but looks promising so far since I was able to reproduce the seg fault behavior just prior to trying this change out