-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flatpak-spawn: Unable to read struct signalfd_siginfo: Bad file descriptor #46
Comments
IIUC it's This is what I'm doing to get rclone mount working. I took the wrapper from Builder but added a test to make sure that the value There's a short explanation about fusermount here and for more details you gonna need to read the code. |
Well the thing is it does seem to work fine. Without the warning message I would not have guessed there is a problem at all. |
It only works because the app adds a flatpak-spwan wrapper. This sounds like something that should be reported to the maintainers of the Flatpak packaging of the app. |
This could be a bug in either https://github.com/flatpak/flatpak-xdg-utils (the implementation of flatpak-spawn), or the @sophie-h, please could you take a look at this from the I think what's going on here might be that If I'm right, then a solution in PikaBackup would look something like this (totally untested!): -exec flatpak-spawn --host --forward-fd=1 --forward-fd=2 --forward-fd=3 $FD_ARGS fusermount "$@"
+if [ -e /proc/self/fd/3 ] && [ 3 != "$_FUSE_COMMFD" ]; then
+ FD_ARGS="$FD_ARGS --forward-fd=3"
+fi
+
+exec flatpak-spawn --host --forward-fd=1 --forward-fd=2 $FD_ARGS fusermount "$@" |
Oh, also, you never need to |
@smcv thanks so much for all the details and the potential solution! And thanks @monreal for reporting this! Tbh I just copy pasted the script that everyone uses. Besides the warnings there are probably no other implications. I'm tracking this under https://gitlab.gnome.org/World/pika-backup/-/issues/118 If anyone else finds this issue but for another app: The identical |
I have verified that |
Let's leave the flatpak-xdg-utils bug open until flatpak-spawn handles this more gracefully and gives a better warning (I think I can see how, I just need to write the code). |
The other implications are: if you send a signal like |
Linux distribution and version
Fedora 34 beta
Flatpak version
1.10.2
Description of the problem
I use the flatpak of Pika backup. When I needed to check something on the command line I realized I do not have borgbackup installed on my client. So I tried using borg from the flatpak. It seems to work fine but I get multiple warnings from flatpak-spawn like this:
** (flatpak-spawn:6): WARNING **: 16:05:29.483: Unable to read struct signalfd_siginfo: Bad file descriptor
** (flatpak-spawn:6): WARNING **: 16:05:29.483: Unable to read struct signalfd_siginfo: Bad file descriptor
** (flatpak-spawn:6): WARNING **: 16:05:29.483: Unable to read struct signalfd_siginfo: Bad file descriptor
Steps to reproduce
The text was updated successfully, but these errors were encountered: