Article View: linux.debian.bugs.rc
Article #1972Bug#1123793: bluez-obexd: depends to Evolution libs breaks receiving files
From: bobdoledoesntneedthis
Date: Thu, 29 Oct 2026 19:40
Date: Thu, 29 Oct 2026 19:40
47 lines
4227 bytes
4227 bytes
Control: found -1 bluez/5.82-1.1
Hi,
I ran into this on trixie (bluez and bluez-obexd 5.82-1.1, MATE, no evolution-data-server, receiving from a Pixel 8a) and traced it. Evolution isn't actually needed to receive files: the cause is an ordering bug in obexd, and upstream fixed it yesterday:
https://github.com/bluez/bluez/commit/7e12693031d131412f3b2996efcf6a5d73c74d9b
("obexd/bluetooth: Register profiles added after org.bluez appeared", on master after 5.87)
What happens: obexd registers its server profiles (Object Push, FTP, MAS, MNS) with bluetoothd only from its org.bluez name-watch callback. With the ebook backend, irmc_init() and pbap_init() call e_source_registry_new_sync() during plugin_init(). When EDS isn't available that call fails, and disposing the half-built registry iterates obexd's default main context. That dispatches the pending org.bluez name-owner reply early, before obex_server_init() has created the profiles, so nothing is registered and the callback doesn't run again. bluetoothd ends up with no OPP SDP record, and the phone just reports the transfer as failed.
This fits the earlier messages in this bug: installing evolution-data-server makes the call succeed, and disabling only pbap isn't enough, because irmc calls the same function. Excluding both works. Here, `/usr/libexec/bluetooth/obexd -n -d -P irmc,pbap` registers all the server profiles and the transfer succeeds. Restarting bluetooth.service while obexd is running also works, since that fires the callback again.
Upstream reports with logs and analysis: https://github.com/bluez/bluez/issues/2315, https://github.com/bluez/bluez/issues/2641 and https://github.com/bluez/bluez/issues/2694.
Suggestion: cherry-pick 7e12693031 (one small change to obexd/plugins/bluetooth.c) into unstable, and consider it for a trixie point release, since receiving files over Bluetooth is broken by default on trixie desktops without evolution-data-server. One hunk touches bluetooth_exit_cb(), which came with the logind changes after 5.82, so the trixie backport would need to clear the new flag in bluetooth_exit() instead. That would also remove the need for the evolution-data-server dependency that was added and reverted in this bug.
Thanks.
Sent with Proton Mail secure email.
Technical Details
Message-ID:
<NTE8G-8FUG-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<M4wvv-4Dzv-11@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: bobdoledoesntneedthis <bobdoledoesntneedthis@proton.me> Newsgroups: linux.debian.bugs.rc Subject: Bug#1123793: bluez-obexd: depends to Evolution libs breaks receiving files Date: Thu, 29 Oct 2026 20:40:02 +0100 Message-ID: <NTE8G-8FUG-7@gated-at.bofh.it> References: <M4wvv-4Dzv-11@gated-at.bofh.it> X-Original-To: "1123793@bugs.debian.org" <1123793@bugs.debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Thu Oct 29 19:37:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: bobdoledoesntneedthis <bobdoledoesntneedthis@proton.me>, 1123793@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+pkg-bluetooth@tracker.debian.org X-Debian-Pr-Message: followup 1123793 X-Debian-Pr-Package: bluez-obexd X-Debian-Pr-Source: bluez Feedback-ID: 231478095:user:proton X-Pm-Message-ID: 13cfdd30a3caf0f9d5499a6f3ba66dd48593b3a7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/836524 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 29 Oct 2026 19:33:56 +0000 X-Original-Message-ID: <rticc1Lvd7rUpuKUVsQ0IKGi_jCCeK3PUJMSlumjOZRjo7OZsSgoltXgE0yF9nGIlGz0B6UbUY4JdhrQMnd0PFU6QjUKQkAA8D0H-CDPfFg=@proton.me> X-Original-References: <20251221222016.59a94b48@programist.ru>