True, you don't need to be aligned yourself, although it would be a
good idea for faster access.
The buffer you are reading from in uhd is aligned, so when you try to
read unaligned data in your own buffer, you force the bus error in the
uhd buffer.
To keep alignment the uhd buffer could send you more data than asked,
but that would result in your memory corrupted.
Or it could send you less (aligned) data. I don't know why it doesn't do this:)

HTH
Nikos

On Tue, Aug 16, 2022 at 5:01 AM <wozn...@gmail.com> wrote:
>
> 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.
>
> Thanks!
>
> Chris
>
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to