* bug#35591: Segfault on flatpak remote-add @ 2019-05-05 20:05 Jonathan Frederickson 2019-05-05 22:36 ` Mark H Weaver 2019-10-31 10:50 ` Ben Sturmfels 0 siblings, 2 replies; 7+ messages in thread From: Jonathan Frederickson @ 2019-05-05 20:05 UTC (permalink / raw) To: 35591 I'm attempting to use Flatpak on my Guix system, and I'm experiencing segfaults when attempting to add a remote repo. Provided below are the output of the command I'm attempting to run, as well as some info about my system. ===== jfred@lambdacrypt ~$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo Note that the directories '/var/lib/flatpak/exports/share' '/home/jfred/.local/share/flatpak/exports/share' are not in the search path set by the XDG_DATA_DIRS environment variable, so applications installed by Flatpak may not appear on your desktop until the session is restarted. Segmentation fault ===== Current guix commit: jfred@lambdacrypt ~$ guix describe -f channels (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "187f9636f176d62bf869b787ad410e3a528aa1a0"))) ===== Current user package manifest: jfred@lambdacrypt ~$ cat guix.scm (specifications->manifest '("glibc-utf8-locales" ;;# Dotfiles management "stow" "rofi" "gnupg" "emacs-password-store" "pcsc-lite" ;;# Hacking "emacs" "git" "guile@2.2" "font-adobe-source-code-pro" "emacs-guix" ;;# Devops "docker" "docker-cli" "docker-compose" ;; System Administration "htop" "curl" ;;# Desktop "gnome-tweak-tool" "icecat" "luakit" "flatpak" "evolution" ;; Gaming "tintin++" "powwow")) ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2019-05-05 20:05 bug#35591: Segfault on flatpak remote-add Jonathan Frederickson @ 2019-05-05 22:36 ` Mark H Weaver 2019-05-05 22:47 ` Jonathan Frederickson 2019-10-31 10:50 ` Ben Sturmfels 1 sibling, 1 reply; 7+ messages in thread From: Mark H Weaver @ 2019-05-05 22:36 UTC (permalink / raw) To: Jonathan Frederickson; +Cc: 35591 Hi Jonathan, "Jonathan Frederickson" <jonathan@terracrypt.net> writes: > I'm attempting to use Flatpak on my Guix system, and I'm experiencing > segfaults when attempting to add a remote repo. Provided below are the > output of the command I'm attempting to run, as well as some info > about my system. My knowledge of Flatpak is weak, but in general, foreign pre-compiled binaries will not work on Guix unless they are statically linked. Traditional dynamically-linked executables expect to find a dynamic linker and system shared libraries in /lib or /lib64, which do not exist on a Guix system. It is also fairly common for foreign binaries to depend on standard files and programs in /usr, /bin, and /sbin, none of which are present on a Guix system except for /bin/sh. Having said that, if you must run foreign pre-compiled binaries on Guix, there are various hacks to do it. One approach is to install symlinks in /lib*, /usr, /bin, /sbin, etc, pointing to the needed components in /run/current-system. Another is to modify the pre-compiled binaries to look for components in the right place using 'patchelf'. We use the latter approach to bootstrap GHC (Glasgow Haskell Compiler), which can only be compiled by itself. I'm sorry I don't have a better answer for you, but Guix was not designed to run foreign pre-compiled binaries. If that's important to you, it might be that Guix is not a good fit for you. However, if your goal is to run Guix-compiled programs in a sandbox, that's something we are certainly very interested in, and we could use help. We have "guix container" as a building block, and I know that some Guix users have experimented with running e.g. GNU IceCat within a container. I don't know the current status of those efforts. Hopefully someone more knowledgable in this area will chime in. Regards, Mark ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2019-05-05 22:36 ` Mark H Weaver @ 2019-05-05 22:47 ` Jonathan Frederickson 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Frederickson @ 2019-05-05 22:47 UTC (permalink / raw) To: Mark H Weaver; +Cc: 35591 [-- Attachment #1: Type: text/plain, Size: 1879 bytes --] On Sunday, May 5, 2019 6:36:06 PM EDT Mark H Weaver wrote: > My knowledge of Flatpak is weak, but in general, foreign pre-compiled > binaries will not work on Guix unless they are statically linked. > Traditional dynamically-linked executables expect to find a dynamic > linker and system shared libraries in /lib or /lib64, which do not exist > on a Guix system. It is also fairly common for foreign binaries to > depend on standard files and programs in /usr, /bin, and /sbin, none of > which are present on a Guix system except for /bin/sh. I believe Flatpak applications are statically linked. (Or rather, individual applications may be dynamically linked, but they are eventually combined with a full OS image similarly to how Docker works.) > I'm sorry I don't have a better answer for you, but Guix was not > designed to run foreign pre-compiled binaries. If that's important to > you, it might be that Guix is not a good fit for you. It's not the most important thing to me; it may end up being one more reason for me to start attempting to package things for Guix! But it would still be nice to be able to run the same tooling that e.g. some Gnome developers are using to publish their apps across distros. (And the fact that Flatpak is packaged for Guix seems to imply that it should be possible to use it here.) > However, if your goal is to run Guix-compiled programs in a sandbox, > that's something we are certainly very interested in, and we could use > help. We have "guix container" as a building block, and I know that > some Guix users have experimented with running e.g. GNU IceCat within a > container. I don't know the current status of those efforts. Hopefully > someone more knowledgable in this area will chime in. While this isn't my immediate goal, this is also something that I'm interested in, if someone else knows more about this! [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2019-05-05 20:05 bug#35591: Segfault on flatpak remote-add Jonathan Frederickson 2019-05-05 22:36 ` Mark H Weaver @ 2019-10-31 10:50 ` Ben Sturmfels 2020-05-11 20:23 ` Ricardo Wurmus 1 sibling, 1 reply; 7+ messages in thread From: Ben Sturmfels @ 2019-10-31 10:50 UTC (permalink / raw) To: Jonathan Frederickson; +Cc: 35591 [-- Attachment #1: Type: text/plain, Size: 689 bytes --] On Sun, 05 May 2019, Jonathan Frederickson wrote: > I'm attempting to use Flatpak on my Guix system, and I'm experiencing > segfaults when attempting to add a remote repo. Provided below are the > output of the command I'm attempting to run, as well as some info > about my system. I learnt on #guix IRC that flatpak works when run with the --user flag: $ flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $ flatpak install flathub org.gnome.Builder $ flatpak run org.gnome.Builder The segfaulting behaviour is still a bug in my opinion, because it's extremely user un-friendly, and the requirement for --user is not obvious. Regards, Ben [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 832 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2019-10-31 10:50 ` Ben Sturmfels @ 2020-05-11 20:23 ` Ricardo Wurmus 2020-05-11 21:38 ` Ricardo Wurmus 0 siblings, 1 reply; 7+ messages in thread From: Ricardo Wurmus @ 2020-05-11 20:23 UTC (permalink / raw) To: 35591; +Cc: jonathan Ben Sturmfels <ben@sturm.com.au> writes: > On Sun, 05 May 2019, Jonathan Frederickson wrote: > >> I'm attempting to use Flatpak on my Guix system, and I'm experiencing >> segfaults when attempting to add a remote repo. Provided below are the >> output of the command I'm attempting to run, as well as some info >> about my system. > > I learnt on #guix IRC that flatpak works when run with the --user flag: > > $ flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo > $ flatpak install flathub org.gnome.Builder > $ flatpak run org.gnome.Builder > > The segfaulting behaviour is still a bug in my opinion, because it's > extremely user un-friendly, and the requirement for --user is not > obvious. Yes, segfaults are always bugs, unless you forced the program to load garbage. I traced the execution of flatpak and saw that it segfaults right after failing to created /var/lib/flatpak. Sure enough, after creating it manually the program no longer segfaults. -- Ricardo ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2020-05-11 20:23 ` Ricardo Wurmus @ 2020-05-11 21:38 ` Ricardo Wurmus 2020-05-14 5:26 ` Ricardo Wurmus 0 siblings, 1 reply; 7+ messages in thread From: Ricardo Wurmus @ 2020-05-11 21:38 UTC (permalink / raw) To: 35591; +Cc: Jonathan Frederickson Ricardo Wurmus <rekado@elephly.net> writes: > Ben Sturmfels <ben@sturm.com.au> writes: > >> On Sun, 05 May 2019, Jonathan Frederickson wrote: >> >>> I'm attempting to use Flatpak on my Guix system, and I'm experiencing >>> segfaults when attempting to add a remote repo. Provided below are the >>> output of the command I'm attempting to run, as well as some info >>> about my system. >> >> I learnt on #guix IRC that flatpak works when run with the --user flag: >> >> $ flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo >> $ flatpak install flathub org.gnome.Builder >> $ flatpak run org.gnome.Builder >> >> The segfaulting behaviour is still a bug in my opinion, because it's >> extremely user un-friendly, and the requirement for --user is not >> obvious. > > Yes, segfaults are always bugs, unless you forced the program to > load garbage. > > I traced the execution of flatpak and saw that it segfaults right after > failing to created /var/lib/flatpak. Sure enough, after creating it > manually the program no longer segfaults. I reported this here: https://github.com/flatpak/flatpak/issues/3612 I’d say we close this issue here, because the segfault isn’t our fault. Thoughts? -- Ricardo ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#35591: Segfault on flatpak remote-add 2020-05-11 21:38 ` Ricardo Wurmus @ 2020-05-14 5:26 ` Ricardo Wurmus 0 siblings, 0 replies; 7+ messages in thread From: Ricardo Wurmus @ 2020-05-14 5:26 UTC (permalink / raw) To: 35591-done; +Cc: Jonathan Frederickson Ricardo Wurmus <rekado@elephly.net> writes: > I reported this here: > > https://github.com/flatpak/flatpak/issues/3612 > > I’d say we close this issue here, because the segfault isn’t our fault. Upstream has acknowledged and addressed the bug. Closing. -- Ricardo ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-05-14 5:27 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-05-05 20:05 bug#35591: Segfault on flatpak remote-add Jonathan Frederickson 2019-05-05 22:36 ` Mark H Weaver 2019-05-05 22:47 ` Jonathan Frederickson 2019-10-31 10:50 ` Ben Sturmfels 2020-05-11 20:23 ` Ricardo Wurmus 2020-05-11 21:38 ` Ricardo Wurmus 2020-05-14 5:26 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.