analogdevicesinc / libad9361-iio

IIO AD9361 library for filter design and handling, multi-chip sync, etc.
http://analogdevicesinc.github.io/libad9361-iio/
GNU Lesser General Public License v2.1
76 stars 48 forks source link

Segmentation fault on any radio program #56

Closed rsubtil closed 4 years ago

rsubtil commented 4 years ago

I'm using an ADALM-PLUTO device, and have installed this driver to use with programs such as SigDigger. However, I get a segmentation fault in those programs.

Looking at the core dump and by compilling some libraries, I found out that the code responsible for finding devices (in SoapyPlutoSDR) is returning null values:

dev = iio_context_find_device(ctx, "ad9361-phy");
rx_dev = iio_context_find_device(ctx, "cf-ad9361-lpc");
tx_dev = iio_context_find_device(ctx, "cf-ad9361-dds-core-lpc");
this->setAntenna(SOAPY_SDR_RX, 0, "A_BALANCED");
this->setAntenna(SOAPY_SDR_TX, 0, "A");

Both dev, rx_dev and tx_dev are initialized to 0x00, causing the crash.

I'm using Arch Linux, and installed soapyplutosdr which should include everything needed AFAIK.

tfcollins commented 4 years ago

None of these calls are related to libad9361. I would suggest contacting Josh the maintainer of soapyplutosdr.

-Travis

rsubtil commented 4 years ago

Alright, I assumed by the string's content it was some sort of driver failure. I'll post on SoapyPlutoSDR then.