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
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
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