Open sochotnicky opened 2 years ago
xdg-desktop-portal version 1.10.1
What distribution? Any distro patches applied?
register_document()
assumes that the global documents
object is non-NULL, but in your case it's NULL. This means the xdp_documents_proxy_new_sync()
call in init_document_proxy
failed. There should be error-checking for that, but at the moment there isn't.
kernel 5.15.4 (I had a weird kernel crash when running the same flatpak on 5.15.3 but that might be a red herring - if interested some details about that are in https://bugs.gentoo.org/826878)
I wonder whether this is the same kernel regression mentioned in https://github.com/flatpak/flatpak/issues/4595.
xdg-desktop-portal should have error-handling for xdp_documents_proxy_new_sync()
having failed, but it's possible that a fixed kernel would mean that xdp_documents_proxy_new_sync()
didn't fail in practice.
xdg-desktop-portal version 1.10.1
What distribution? Any distro patches applied?
Gentoo - no patches are being applied, there's a minor tweak to locales: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/flatpak/flatpak-1.10.5.ebuild
Edit: Bah, it's getting late - no patches applied here: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.10.1.ebuild
register_document()
assumes that the globaldocuments
object is non-NULL, but in your case it's NULL. This means thexdp_documents_proxy_new_sync()
call ininit_document_proxy
failed. There should be error-checking for that, but at the moment there isn't.kernel 5.15.4 (I had a weird kernel crash when running the same flatpak on 5.15.3 but that might be a red herring - if interested some details about that are in https://bugs.gentoo.org/826878)
I wonder whether this is the same kernel regression mentioned in flatpak/flatpak#4595.
Huh, the fuse_file_aops
does appear in my backtrace too and the whole situation indeed looks very similar. From reading the RHBZ I guess the patch is just in fedora kernel for now, I'll see if I can dig it up and apply to my kernel to see if that will fix things.
So I am now running kernel 5.15.6 (+ gentoo patches) and the behavior is unchanged/broken so guessing this is separate from the fix that landed there.
Is this still reproducible with xdg-desktop-portal 1.18 or git?
I was playing with https://github.com/bottlesdevs/Bottles flatpak, and noticed that xdg-desktop-portal coredumps.
Traceback:
xdg-desktop-portal version 1.10.1 xdg-desktop-portal-wlr 0.5.0 (on sway) xdg-desktop-portal-gtk 1.8.0 kernel 5.15.4 (I had a weird kernel crash when running the same flatpak on 5.15.3 but that might be a red herring - if interested some details about that are in https://bugs.gentoo.org/826878)
This might be a duplicate/similar to https://github.com/flatpak/xdg-desktop-portal/issues/664 but in my case it's not crashing in libglib so filed a separate issue.
I can reproduce quite reliably and can provide actual coredump somewhere (it is 60MB so I didn't attach it)