flatpak / flatpak-xdg-utils

Simple portal-based commandline tools for use inside flatpak sandboxes
GNU Lesser General Public License v2.1
32 stars 14 forks source link

[Bug]: Unable to read struct signalfd_siginfo: Bad file descriptor #61

Closed chewywater closed 1 year ago

chewywater commented 2 years ago

Checklist

Flatpak version

1.12.7

What Linux distribution are you using?

Linux Mint

Linux distribution version

Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy

What architecture are you using?

x86_64

How to reproduce

This issue occurs with com.borgbase.Vorta which is a GUI frontend for the backup tool borg. Borg allows mounting a backup repository using fuse. For use in the flatpak distribution of Vorta libfuse is installed as configured here and wrapped with a small script that runs fusermount through flatpak-spawn. This usually works fine but not on my machine as reported on borgbase/vorta#1424.

Borg calls backups that are stored in the same repository archives. When the vorta application runs borg mount a warning is occurs:

** (flatpak-spawn:46): WARNING **: 12:49:29.683: Unable to read struct signalfd_siginfo: Bad file descriptor

For some archives mounting works nonetheless, for others it doesn't. Since this seems to be an issue of flatpak-spawn the vorta devs redirected me to this bug tracker. Thanks.

Expected Behavior

please see borgbase/vorta#1424

Actual Behavior

please see borgbase/vorta#1424

Additional Information

No response

smcv commented 1 year ago

flatpak-spawn is not actually part of flatpak, so I'm transferring the issue.

smcv commented 1 year ago

This actually looks like a bug in the script bundled with the Flatpak packaging of vorta, which assumes that fd 3 is a valid fd, but it isn't necessarily.

Previously seen in https://github.com/flatpak/flatpak-xdg-utils/issues/55 which was caused by https://github.com/flathub/org.flatpak.Builder/issues/42 and fixed by https://github.com/flathub/org.flatpak.Builder/pull/47.