#1153796 libuhd4.8.0: UHD device discovery, probing and creation take a very long time to complete

Package:
libuhd4.8.0
Source:
libuhd4.8.0
Submitter:
Adrian Musceac
Date:
2026-11-12 06:29:02 UTC
Severity:
normal
Tags:
#1153796#5
Date:
2026-11-12 06:27:38 UTC
From:
To:
Dear Maintainer,

After upgrading from libuhd4.3.0 to libuhd4.8.0 in Trixie, "SoapySDRUtil
--find", "SoapySDRUtil --make", "uhd_find_devices" and "uhd_usrp_probe" do not
return within a reasonable amount of time. This issue occurs both when an UHD
device is attached or no device is present.

The device::find and device::make functions in UHD host launch an async thread
to discover devices (uhd/host/lib/device.cpp). These functions take an
extremely long amount of time to complete on a wait condition.

This breaks other device types discovery by SoapySDR if soapysdr0.8-module-uhd
is installed, as well as third party programs that depend on this Soapy API.

To reproduce, run "uhd_find_devices" or "SoapySDRUtil --find" with libuhd4.8.0

$ time uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 14.2.0; Boost_108300; UHD_4.8.0.0+ds1-2
No UHD Devices Found

real    2m15.470s
user    0m0.046s
sys     0m0.072s

$ strace SoapySDRUtil --find
...
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
child_tid=0x7fa5a48a8990, parent_tid=0x7fa5a48a8990, exit_signal=0,
stack=0x7fa5a40a8000, stack_size=0x7ffb40, tls=0x7fa5a48a86c0} =>
{parent_tid=[8396]}, 88) = 8396
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x7fa5a70ad990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 8390, NULL,
FUTEX_BITSET_MATCH_ANY[INFO] [UHD] linux; GNU C++ version 14.2.0; Boost_108300;
UHD_4.8.0.0+ds1-2
) = 0
futex(0x5563fb61c558, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x5563fb61c868, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x5563fb61cc08, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7fa5a58aa990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 8394, NULL,
FUTEX_BITSET_MATCH_ANY) = 0
munmap(0x7fa59e7fd000, 8392704)         = 0
futex(0x5563fb61cfa8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
munmap(0x7fa59dffc000, 8392704)         = 0
futex(0x5563fb61d318, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7fa5a48a8990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 8396, NULL,
FUTEX_BITSET_MATCH_ANY
...
waits here

Thank you,