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
Error in compilation, possible regression with flatpak 0.11.8.1 #1770
Comments
Further to this, even the instructions from building your first Flatpak fail with the same error. |
Stack trace:
|
Looks like |
diff --git a/app/flatpak-builtins-build.c b/app/flatpak-builtins-build.c
index 96b9ef2b..d13f7b43 100644
--- a/app/flatpak-builtins-build.c
+++ b/app/flatpak-builtins-build.c
@@ -421,6 +421,13 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError
if (custom_usr)
run_flags |= FLATPAK_RUN_FLAG_WRITABLE_ETC;
+
+ app_context = flatpak_app_compute_permissions (metakey,
+ runtime_metakey,
+ error);
+ if (app_context == NULL)
+ return FALSE;
+
run_flags |= flatpak_context_get_run_flags (app_context);
/* Unless manually specified, we disable dbus proxy */
@@ -496,12 +503,6 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError
"--bind", flatpak_file_get_path_cached (var_tmp), "/var/tmp",
NULL);
- app_context = flatpak_app_compute_permissions (metakey,
- runtime_metakey,
- error);
- if (app_context == NULL)
- return FALSE;
-
flatpak_context_allow_host_fs (app_context);
flatpak_context_merge (app_context, arg_context); While it "fixes" the sigserv, it still fails to launch the command with |
alexlarsson
added a commit
to alexlarsson/flatpak
that referenced
this issue
Jun 11, 2018
This fixes a crash dereferencing a null app_context. Fixes flatpak#1770
Adding to the fire, this is causing the fwupd CI to fail. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux distribution and version
Arch Linux
and Ubuntu 18.04
Flatpak version
0.11.8.1
Description of the problem
Error compiling this manifest https://github.com/flathub/org.gnome.Keysign/blob/master/org.gnome.Keysign.yml
With flatpak 0.11.7 I was able to successfully build it.
Steps to reproduce
$ flatpak-builder -v --force-clean --repo=~/fb.repo ~/fpbuilder org.gnome.Keysign.yml
The text was updated successfully, but these errors were encountered: