Package: libuhd4.8.0
Version: 4.8.0.0+ds1-2
Severity: normal
Tags: upstream
X-Debbugs-Cc: [email protected]

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,


-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.115+deb13.1-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libuhd4.8.0 depends on:
ii  libboost-chrono1.83.0t64      1.83.0-4.2
ii  libboost-filesystem1.83.0     1.83.0-4.2
ii  libboost-serialization1.83.0  1.83.0-4.2
ii  libboost-thread1.83.0         1.83.0-4.2
ii  libc6                         2.41-12+deb13u4
ii  libgcc-s1                     14.2.0-19
ii  libpython3.13                 3.13.5-2+deb13u5
ii  libstdc++6                    14.2.0-19
ii  libusb-1.0-0                  2:1.0.28-1

libuhd4.8.0 recommends no packages.

Versions of packages libuhd4.8.0 suggests:
ii  uhd-host  4.8.0.0+ds1-2

-- no debconf information

Reply via email to