JPackage does very weird things and it doesn't work with SNAP
Davide Perini
perini.davide at dpsoftware.org
Sun Dec 8 18:56:59 UTC 2024
Hi there...
I have a JDK23 app that is packaged with jpackage.
I am running this app in Snapcraft.
It works well but I cannot restart it for a very weird problem.
When I try to restart it with a simple code like this:
```
ArrayList<String> cmdOutput = new ArrayList<>();
try {
**_ProcessBuilder processBuilder = new
ProcessBuilder("/bin/sh", "-c",
"/snap/myappid/bin/myappbinarygeneratedwithjpackage");_**
Process process = processBuilder.start();
if (waitForOutput > 0) {
if (process.waitFor(waitForOutput,
TimeUnit.MILLISECONDS)) {
int exitCode = process.exitValue();
log.info("Exit code: {}", exitCode);
BufferedReader reader = new BufferedReader(new
InputStreamReader(process.getInputStream()));
String line;
while ((line = reader.readLine()) != null) {
log.info(line);
}
BufferedReader errorReader = new BufferedReader(new
InputStreamReader(process.getErrorStream()));
while ((line = errorReader.readLine()) != null) {
log.error(line);
}
} else {
log.error("The command has exceeded the time limit
and has been terminated.");
process.destroy();
}
}
} catch (Exception e) {
log.error(e.getMessage());
}
```
This simple code should run
new ProcessBuilder("/bin/sh", "-c",
"/snap/myappid/bin/myappbinarygeneratedwithjpackage");
If I execute this code when running native, it works well and it spawn
another instance of my app.
if I execute this code inside a snap environment, the code return an
exit code 1 and it return this output:
```
Usage: java [options] <mainclass> [args...]
(to execute a class)
or java [options] -jar <jarfile> [args...]
(to execute a jar file)
or java [options] -m <module>[/<mainclass>] [args...]
java [options] --module <module>[/<mainclass>] [args...]
(to execute the main class in a module)
or java [options] <sourcefile> [args]
(to execute a source-file program)
Arguments following the main class, source file, -jar <jarfile>,
-m or --module <module>/<mainclass> are passed as the arguments to
main class.
where options include:
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
--class-path <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-p <module path>
--module-path <module path>...
A : separated list of elements, each element is a
file path
to a module or a directory containing modules. Each
module is either
a modular JAR or an exploded-module directory.
--upgrade-module-path <module path>...
A : separated list of elements, each element is a
file path
to a module or a directory containing modules to replace
upgradeable modules in the runtime image. Each module
is either
a modular JAR or an exploded-module directory.
--add-modules <module name>[,<module name>...]
root modules to resolve in addition to the initial
module.
<module name> can also be ALL-DEFAULT, ALL-SYSTEM,
ALL-MODULE-PATH.
--enable-native-access <module name>[,<module name>...]
allow code in modules to access code and data outside
the Java runtime.
<module name> can also be ALL-UNNAMED to indicate
code on the class path.
--list-modules
list observable modules and exit
-d <module name>
--describe-module <module name>
describe a module and exit
--dry-run create VM and load main class but do not execute main
method.
The --dry-run option may be useful for validating the
command-line options such as the module system
configuration.
--validate-modules
validate all modules and exit
The --validate-modules option may be useful for finding
conflicts and other errors with modules on the module
path.
-D<name>=<value>
set a system property
-verbose:[class|module|gc|jni]
enable verbose output for the given subsystem
-version print product version to the error stream and exit
--version print product version to the output stream and exit
-showversion print product version to the error stream and continue
--show-version
print product version to the output stream and continue
--show-module-resolution
show module resolution output during startup
-? -h -help
print this help message to the error stream
--help print this help message to the output stream
-X print help on extra options to the error stream
--help-extra print help on extra options to the output stream
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:jdwp
see also -agentlib:jdwp=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see
java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
HiDPI scaled images are automatically supported and used
if available. The unscaled image filename, e.g.
image.ext,
should always be passed as the argument to the
-splash option.
The most appropriate scaled image provided will be
picked up
automatically.
See the SplashScreen API documentation for more
information
@argument files
one or more argument files containing options
--disable- at files
prevent further argument file expansion
--enable-preview
allow classes to depend on preview features of this
release
To specify an argument for a long option, you can use --<name>=<value> or
--<name> <value>.
```
If you look at this, this is the output of the "java" command.
Why my app generated to jpackage returns the output of the java command
in the snap environment?
Is think that this is a jpackage bug.
I tried running strace to understand what is happening
here’s the log from strace capturing the moment my apps tries to restart
itself inside the Snap sandbox.
```
/usr/bin/strace: Process 2089179 attached
/usr/bin/strace: Process 2089180 attached
[Instance #1] 12:42:06.988 [JavaFX Application Thread] INFO
o.dpsoftware.managers.StorageManager - tooltip.theme
[Instance #1] 12:42:06.990 [JavaFX Application Thread] INFO
org.dpsoftware.NativeExecutor - Restarting instance
[Instance #1] 12:42:06.990 [JavaFX Application Thread] INFO
org.dpsoftware.NativeExecutor - Executing cmd=[/bin/sh, -c,
/snap/fireflyluciferin/4/bin/FireflyLuciferin, 1]
/usr/bin/strace: Process 2089185 attached
[pid 2089185]
execve("/snap/fireflyluciferin/4/lib/runtime/lib/jspawnhelper",
["/snap/fireflyluciferin/4/lib/run"..., "23.0.1+11", "36:37:39"],
["SHELL=/usr/bin/zsh", "SESSION_MANAGER=local/galeon:@/t"...,
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"...,
"__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SUDO_GID=1000", "XDG_MENU_PREFIX=gnome-", "KWIN_TRIPLE_BUFFER=1",
"SNAP_REAL_HOME=/home/maciek", "VK_LAYER_PATH=/snap/fireflylucif"...,
"GNOME_KEYRING_CONTROL=/run/user/"...,
"SNAP_USER_COMMON=/home/maciek/sn"..., "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"..., "LC_ADDRESS=pl_PL.UTF-8",
"SSH_AUTH_SOCK=/run/user/1000/gcr"...,
"XDG_DATA_HOME=/home/maciek/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XDG_CONFIG_HOME=/home/maciek/sna"...,
"XCURSOR_PATH=/snap/fireflylucife"...,
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "SNAP_INSTANCE_KEY=",
"SUDO_COMMAND=/usr/bin/strace -u "..., "XMODIFIERS=@im=ibus",
"DESKTOP_SESSION=gnome", "LC_MONETARY=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"..., "SUDO_USER=maciek",
"EDITOR=emacsclient -t -a ''", "SNAP_EUID=1000", "PWD=/home/maciek",
"ALSA_CONFIG_PATH=/snap/fireflylu"..., "LOGNAME=root",
"XDG_SESSION_DESKTOP=gnome", "XDG_SESSION_TYPE=wayland",
"SYSTEMD_EXEC_PID=2624", "SUDO_HOME=/home/maciek",
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"XAUTHORITY=/run/user/1000/.mutte"..., "TEMPDIR=/tmp",
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "MOTD_SHOWN=pam",
"GST_PLUGIN_SCANNER=/snap/firefly"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "GDM_LANG=en_US.UTF-8",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"HOME=/home/maciek/snap/fireflylu"..., "USERNAME=maciek",
"LANG=en_US.UTF-8", "LC_PAPER=pl_PL.UTF-8", "XDG_CURRENT_DESKTOP=GNOME",
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "VTE_VERSION=7802",
"WAYLAND_DISPLAY=wayland-0", "NOTIFY_IGNORE_PORTAL=1",
"SNAP_ARCH=amd64", "SNAP_INSTANCE_NAME=fireflylucife"...,
"SNAP_USER_DATA=/home/maciek/snap"..., "DISABLE_WAYLAND=1",
"TMPDIR=/run/user/1000/snap.firef"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"GNOME_TERMINAL_SCREEN=/org/gnome"...,
"SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "SNAP_REEXEC=", "SNAP_UID=1000",
"PIPEWIRE_CONFIG_DIR=/snap/firefl"...,
"XDG_CACHE_HOME=/home/maciek/snap"..., "GNOME_SETUP_DISPLAY=:1",
"XDG_SESSION_CLASS=user", "LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "TERM=gnome-256color",
"GTK_PATH=/snap/fireflyluciferin/"...,
"XLOCALEDIR=/snap/fireflyluciferi"...,
"LIBTHAI_DICTDIR=/snap/fireflyluc"..., "USER=root",
"SNAP=/snap/fireflyluciferin/4", "GNOME_TERMINAL_SERVICE=:1.748",
"PLASMA_USE_QT_SCALING=1", "SNAP_COMMON=/var/snap/fireflyluc"...,
"SNAP_VERSION=2.17.18", "DISPLAY=:0", "SHLVL=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"..., "MOZ_ENABLE_WAYLAND=1",
"LOCPATH=/snap/fireflyluciferin/4"...,
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "PAGER=less",
"SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "LC_TELEPHONE=pl_PL.UTF-8",
"QT_IM_MODULE=ibus", "LC_MEASUREMENT=pl_PL.UTF-8",
"LIBGL_DRIVERS_PATH=/snap/firefly"...,
"SNAP_DATA=/var/snap/fireflylucif"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"...,
"LD_LIBRARY_PATH=/var/lib/snapd/l"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"..., "LC_TIME=pl_PL.UTF-8",
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"...,
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"XDG_DATA_DIRS=/home/maciek/snap/"...,
"PATH=/snap/fireflyluciferin/4/us"..., "GTK_USE_PORTAL=1",
"GDMSESSION=gnome", "SUDO_UID=1000",
"GTK_IM_MODULE_FILE=/home/maciek/"...,
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "HG=/usr/bin/hg",
"MAIL=/var/spool/mail/maciek", "GIO_MODULE_DIR=/home/maciek/snap"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"XKB_CONFIG_ROOT=/snap/fireflyluc"..., "LC_NUMERIC=pl_PL.UTF-8",
"OLDPWD=/home/maciek", "_JPACKAGE_LAUNCHER=1430744617329"...,
"GDK_BACKEND=x11"]) = 0
[pid 2089185] execve("/bin/sh", ["/bin/sh", "-c",
"/snap/fireflyluciferin/4/bin/Fir"..., "1"], ["SHELL=/usr/bin/zsh",
"SESSION_MANAGER=local/galeon:@/t"...,
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"...,
"__EGL_VENDOR_LIBRARY_DIRS=/snap/"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SUDO_GID=1000", "XDG_MENU_PREFIX=gnome-", "KWIN_TRIPLE_BUFFER=1",
"SNAP_REAL_HOME=/home/maciek", "VK_LAYER_PATH=/snap/fireflylucif"...,
"GNOME_KEYRING_CONTROL=/run/user/"...,
"SNAP_USER_COMMON=/home/maciek/sn"..., "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"..., "LC_ADDRESS=pl_PL.UTF-8",
"SSH_AUTH_SOCK=/run/user/1000/gcr"...,
"XDG_DATA_HOME=/home/maciek/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XDG_CONFIG_HOME=/home/maciek/sna"...,
"XCURSOR_PATH=/snap/fireflylucife"...,
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "SNAP_INSTANCE_KEY=",
"SUDO_COMMAND=/usr/bin/strace -u "..., "XMODIFIERS=@im=ibus",
"DESKTOP_SESSION=gnome", "LC_MONETARY=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"..., "SUDO_USER=maciek",
"EDITOR=emacsclient -t -a ''", "SNAP_EUID=1000", "PWD=/home/maciek",
"ALSA_CONFIG_PATH=/snap/fireflylu"..., "LOGNAME=root",
"XDG_SESSION_DESKTOP=gnome", "XDG_SESSION_TYPE=wayland",
"SYSTEMD_EXEC_PID=2624", "SUDO_HOME=/home/maciek",
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"XAUTHORITY=/run/user/1000/.mutte"..., "TEMPDIR=/tmp",
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"..., "MOTD_SHOWN=pam",
"GST_PLUGIN_SCANNER=/snap/firefly"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "GDM_LANG=en_US.UTF-8",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"HOME=/home/maciek/snap/fireflylu"..., "USERNAME=maciek",
"LANG=en_US.UTF-8", "LC_PAPER=pl_PL.UTF-8", "XDG_CURRENT_DESKTOP=GNOME",
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "VTE_VERSION=7802",
"WAYLAND_DISPLAY=wayland-0", "NOTIFY_IGNORE_PORTAL=1",
"SNAP_ARCH=amd64", "SNAP_INSTANCE_NAME=fireflylucife"...,
"SNAP_USER_DATA=/home/maciek/snap"..., "DISABLE_WAYLAND=1",
"TMPDIR=/run/user/1000/snap.firef"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"GNOME_TERMINAL_SCREEN=/org/gnome"...,
"SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "SNAP_REEXEC=", "SNAP_UID=1000",
"PIPEWIRE_CONFIG_DIR=/snap/firefl"...,
"XDG_CACHE_HOME=/home/maciek/snap"..., "GNOME_SETUP_DISPLAY=:1",
"XDG_SESSION_CLASS=user", "LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "TERM=gnome-256color",
"GTK_PATH=/snap/fireflyluciferin/"...,
"XLOCALEDIR=/snap/fireflyluciferi"...,
"LIBTHAI_DICTDIR=/snap/fireflyluc"..., "USER=root",
"SNAP=/snap/fireflyluciferin/4", "GNOME_TERMINAL_SERVICE=:1.748",
"PLASMA_USE_QT_SCALING=1", "SNAP_COMMON=/var/snap/fireflyluc"...,
"SNAP_VERSION=2.17.18", "DISPLAY=:0", "SHLVL=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"..., "MOZ_ENABLE_WAYLAND=1",
"LOCPATH=/snap/fireflyluciferin/4"...,
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "PAGER=less",
"SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"..., "LC_TELEPHONE=pl_PL.UTF-8",
"QT_IM_MODULE=ibus", "LC_MEASUREMENT=pl_PL.UTF-8",
"LIBGL_DRIVERS_PATH=/snap/firefly"...,
"SNAP_DATA=/var/snap/fireflylucif"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"...,
"LD_LIBRARY_PATH=/var/lib/snapd/l"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"..., "LC_TIME=pl_PL.UTF-8",
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"...,
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"XDG_DATA_DIRS=/home/maciek/snap/"...,
"PATH=/snap/fireflyluciferin/4/us"..., "GTK_USE_PORTAL=1",
"GDMSESSION=gnome", "SUDO_UID=1000",
"GTK_IM_MODULE_FILE=/home/maciek/"...,
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "HG=/usr/bin/hg",
"MAIL=/var/spool/mail/maciek", "GIO_MODULE_DIR=/home/maciek/snap"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"XKB_CONFIG_ROOT=/snap/fireflyluc"..., "LC_NUMERIC=pl_PL.UTF-8",
"OLDPWD=/home/maciek", "_JPACKAGE_LAUNCHER=1430744617329"...,
"GDK_BACKEND=x11"]) = 0
[Instance #1] 12:42:06.995 [JavaFX Application Thread] INFO
org.dpsoftware.NativeExecutor - CLEAN EXIT
/usr/bin/strace: Process 2089186 attached
/usr/bin/strace: Process 2089187 attached
[pid 2089187] execve("/snap/fireflyluciferin/4/bin/FireflyLuciferin",
["/snap/fireflyluciferin/4/bin/Fir"...], ["SUDO_GID=1000",
"PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek",
"__EGL_VENDOR_LIBRARY_DIRS=/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=",
"USER=root", "SNAP_COMMON=/var/snap/fireflyluc"...,
"LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"...,
"GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland",
"TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"...,
"SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam",
"HOME=/home/maciek/snap/fireflylu"...,
"XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1",
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek",
"DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"SNAP_USER_DATA=/home/maciek/snap"...,
"LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"GTK_PATH=/snap/fireflyluciferin/"...,
"GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less",
"LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624",
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0",
"TMPDIR=/run/user/1000/snap.firef"...,
"PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root",
"XKB_CONFIG_ROOT=/snap/fireflyluc"...,
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user",
"SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color",
"SNAP_INSTANCE_NAME=fireflylucife"...,
"PATH=/snap/fireflyluciferin/4/us"...,
"SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8",
"NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-",
"LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"...,
"GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11",
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0",
"LOCPATH=/snap/fireflyluciferin/4"...,
"_JPACKAGE_LAUNCHER=1430744617329"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8",
"XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"...,
"XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus",
"XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"...,
"GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"...,
"SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u
"..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"...,
"SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=",
"GDMSESSION=gnome", "SUDO_USER=maciek",
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"VK_LAYER_PATH=/snap/fireflylucif"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus",
"PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"...,
"XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1",
"SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4",
"LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1",
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802",
"EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
/usr/bin/strace: Process 2089188 attached
/usr/bin/strace: Process 2089189 attached
[pid 2089189] execve("/bin/sh", ["sh", "-c", "--", "rpm --queryformat
'%{NAME}' -qf "...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1",
"MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=",
"USER=root", "SNAP_COMMON=/var/snap/fireflyluc"...,
"LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"...,
"GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland",
"TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"...,
"SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam",
"HOME=/home/maciek/snap/fireflylu"...,
"XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1",
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek",
"DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"SNAP_USER_DATA=/home/maciek/snap"...,
"LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"GTK_PATH=/snap/fireflyluciferin/"...,
"GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less",
"LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624",
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0",
"TMPDIR=/run/user/1000/snap.firef"...,
"PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root",
"XKB_CONFIG_ROOT=/snap/fireflyluc"...,
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user",
"SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color",
"SNAP_INSTANCE_NAME=fireflylucife"...,
"PATH=/snap/fireflyluciferin/4/us"...,
"SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8",
"NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-",
"LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"...,
"GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11",
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0",
"LOCPATH=/snap/fireflyluciferin/4"...,
"_JPACKAGE_LAUNCHER=1430744617329"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8",
"XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"...,
"XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus",
"XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"...,
"GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"...,
"SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u
"..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"...,
"SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=",
"GDMSESSION=gnome", "SUDO_USER=maciek",
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"VK_LAYER_PATH=/snap/fireflylucif"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus",
"PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"...,
"XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1",
"SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4",
"LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1",
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802",
"EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089189] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089189, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089191 attached
[pid 2089191] execve("/bin/sh", ["sh", "-c", "--", "dpkg -S
'/snap/fireflyluciferin/"...], ["SUDO_GID=1000",
"PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek",
"__EGL_VENDOR_LIBRARY_DIRS=/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=",
"USER=root", "SNAP_COMMON=/var/snap/fireflyluc"...,
"LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"...,
"GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland",
"TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"...,
"SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam",
"HOME=/home/maciek/snap/fireflylu"...,
"XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1",
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek",
"DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"SNAP_USER_DATA=/home/maciek/snap"...,
"LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"GTK_PATH=/snap/fireflyluciferin/"...,
"GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less",
"LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624",
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0",
"TMPDIR=/run/user/1000/snap.firef"...,
"PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root",
"XKB_CONFIG_ROOT=/snap/fireflyluc"...,
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user",
"SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color",
"SNAP_INSTANCE_NAME=fireflylucife"...,
"PATH=/snap/fireflyluciferin/4/us"...,
"SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8",
"NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-",
"LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"...,
"GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11",
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0",
"LOCPATH=/snap/fireflyluciferin/4"...,
"_JPACKAGE_LAUNCHER=1430744617329"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8",
"XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"...,
"XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus",
"XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"...,
"GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"...,
"SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u
"..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"...,
"SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=",
"GDMSESSION=gnome", "SUDO_USER=maciek",
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"VK_LAYER_PATH=/snap/fireflylucif"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus",
"PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"...,
"XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1",
"SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4",
"LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1",
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802",
"EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089191] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089191, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089194 attached
[pid 2089194] execve("/bin/sh", ["sh", "-c", "--", "rpm --queryformat
'%{NAME}' -qf "...], ["SUDO_GID=1000", "PLASMA_USE_QT_SCALING=1",
"MAIL=/var/spool/mail/maciek", "__EGL_VENDOR_LIBRARY_DIRS=/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=",
"USER=root", "SNAP_COMMON=/var/snap/fireflyluc"...,
"LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"...,
"GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland",
"TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"...,
"SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam",
"HOME=/home/maciek/snap/fireflylu"...,
"XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1",
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek",
"DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"SNAP_USER_DATA=/home/maciek/snap"...,
"LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"GTK_PATH=/snap/fireflyluciferin/"...,
"GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less",
"LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624",
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0",
"TMPDIR=/run/user/1000/snap.firef"...,
"PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root",
"XKB_CONFIG_ROOT=/snap/fireflyluc"...,
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user",
"SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color",
"SNAP_INSTANCE_NAME=fireflylucife"...,
"PATH=/snap/fireflyluciferin/4/us"...,
"SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8",
"NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-",
"LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"...,
"GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11",
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0",
"LOCPATH=/snap/fireflyluciferin/4"...,
"_JPACKAGE_LAUNCHER=1430744617329"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8",
"XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"...,
"XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus",
"XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"...,
"GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"...,
"SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u
"..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"...,
"SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=",
"GDMSESSION=gnome", "SUDO_USER=maciek",
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"VK_LAYER_PATH=/snap/fireflylucif"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus",
"PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"...,
"XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1",
"SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4",
"LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1",
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802",
"EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089194] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089194, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089195 attached
[pid 2089195] execve("/bin/sh", ["sh", "-c", "--", "dpkg -S
'/snap/fireflyluciferin/"...], ["SUDO_GID=1000",
"PLASMA_USE_QT_SCALING=1", "MAIL=/var/spool/mail/maciek",
"__EGL_VENDOR_LIBRARY_DIRS=/snap/"...,
"GNOTIFICATION_BACKEND=freedeskto"..., "SNAP_INSTANCE_KEY=",
"USER=root", "SNAP_COMMON=/var/snap/fireflyluc"...,
"LC_TIME=pl_PL.UTF-8", "MOZ_X11_EGL=1",
"FONTCONFIG_PATH=/snap/fireflyluc"...,
"LIBVA_DRIVERS_PATH=/snap/firefly"...,
"GIO_MODULE_DIR=/home/maciek/snap"..., "XDG_SESSION_TYPE=wayland",
"TEMPDIR=/tmp", "SNAP_UID=1000", "XDG_CACHE_HOME=/home/maciek/snap"...,
"SHLVL=1", "LD_LIBRARY_PATH=/var/lib/snapd/l"..., "MOTD_SHOWN=pam",
"HOME=/home/maciek/snap/fireflylu"...,
"XLOCALEDIR=/snap/fireflyluciferi"..., "MOZ_ENABLE_WAYLAND=1",
"SNAP_LIBRARY_PATH=/var/lib/snapd"..., "OLDPWD=/home/maciek",
"DESKTOP_SESSION=gnome", "SUDO_HOME=/home/maciek",
"GI_TYPELIB_PATH=/snap/fireflyluc"...,
"SNAP_USER_DATA=/home/maciek/snap"...,
"LIBGWEATHER_LOCATIONS_PATH=/snap"...,
"GTK_PATH=/snap/fireflyluciferin/"...,
"GTK_IM_MODULE_FILE=/home/maciek/"..., "HG=/usr/bin/hg", "PAGER=less",
"LC_MONETARY=pl_PL.UTF-8", "SYSTEMD_EXEC_PID=2624",
"DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SNAP_REVISION=4",
"COLORTERM=truecolor", "GNOME_KEYRING_CONTROL=/run/user/"...,
"DEBUGINFOD_URLS=https://debuginf"...,
"SPA_PLUGIN_DIR=/snap/fireflyluci"...,
"GST_PLUGIN_SCANNER=/snap/firefly"..., "WAYLAND_DISPLAY=wayland-0",
"TMPDIR=/run/user/1000/snap.firef"...,
"PIPEWIRE_CONFIG_DIR=/snap/firefl"..., "SUDO_UID=1000", "LOGNAME=root",
"XKB_CONFIG_ROOT=/snap/fireflyluc"...,
"SNAP_CONTEXT=_2jX0ra54iDbofJm6Fr"...,
"PULSE_SERVER=unix:/run/user/1000"...,
"MEMORY_PRESSURE_WATCH=/sys/fs/cg"..., "XDG_SESSION_CLASS=user",
"SNAP_VERSION=2.17.18", "USERNAME=maciek", "TERM=gnome-256color",
"SNAP_INSTANCE_NAME=fireflylucife"...,
"PATH=/snap/fireflyluciferin/4/us"...,
"SESSION_MANAGER=local/galeon:@/t"..., "GDM_LANG=en_US.UTF-8",
"NOTIFY_IGNORE_PORTAL=1", "XDG_MENU_PREFIX=gnome-",
"LC_ADDRESS=pl_PL.UTF-8", "GNOME_TERMINAL_SCREEN=/org/gnome"...,
"GNOME_SETUP_DISPLAY=:1", "SNAP_DATA=/var/snap/fireflylucif"...,
"XDG_RUNTIME_DIR=/run/user/1000/s"...,
"GST_PLUGIN_SYSTEM_PATH=/snap/fir"..., "GDK_BACKEND=x11",
"__EGL_EXTERNAL_PLATFORM_CONFIG_D"..., "DISPLAY=:0",
"LOCPATH=/snap/fireflyluciferin/4"...,
"_JPACKAGE_LAUNCHER=1430744617329"...,
"LD_PRELOAD=:/snap/fireflylucifer"..., "LANG=en_US.UTF-8",
"XDG_CURRENT_DESKTOP=GNOME", "SNAP_DESKTOP_RUNTIME=/snap/firef"...,
"LC_TELEPHONE=pl_PL.UTF-8", "XDG_DATA_HOME=/home/maciek/snap/"...,
"XDG_CONFIG_HOME=/home/maciek/sna"..., "XMODIFIERS=@im=ibus",
"XDG_SESSION_DESKTOP=gnome", "XAUTHORITY=/run/user/1000/.mutte"...,
"GNOME_TERMINAL_SERVICE=:1.748", "SNAP_USER_COMMON=/home/maciek/sn"...,
"SSH_AUTH_SOCK=/run/user/1000/gcr"..., "SUDO_COMMAND=/usr/bin/strace -u
"..., "SNAP_ARCH=amd64", "SNAP_COOKIE=_2jX0ra54iDbofJm6Fre"...,
"SHELL=/usr/bin/zsh", "DISABLE_WAYLAND=1",
"GDK_PIXBUF_MODULEDIR=/snap/firef"...,
"GST_PLUGIN_PATH=/snap/fireflyluc"..., "SNAP_REEXEC=",
"GDMSESSION=gnome", "SUDO_USER=maciek",
"FONTCONFIG_FILE=/snap/fireflyluc"..., "SNAP_NAME=fireflyluciferin",
"VK_LAYER_PATH=/snap/fireflylucif"...,
"PIPEWIRE_MODULE_DIR=/snap/firefl"...,
"XCURSOR_PATH=/snap/fireflylucife"..., "LC_MEASUREMENT=pl_PL.UTF-8",
"GDK_PIXBUF_MODULE_FILE=/home/mac"...,
"DRIRC_CONFIGDIR=/snap/fireflyluc"...,
"SNAP_LAUNCHER_ARCH_TRIPLET=x86_6"..., "QT_IM_MODULE=ibus",
"PWD=/home/maciek", "XDG_CONFIG_DIRS=/snap/fireflyluc"...,
"SNAP_REAL_HOME=/home/maciek", "LIBTHAI_DICTDIR=/snap/fireflyluc"...,
"XDG_DATA_DIRS=/home/maciek/snap/"..., "KWIN_TRIPLE_BUFFER=1",
"SNAP_EUID=1000", "ALSA_CONFIG_PATH=/snap/fireflylu"...,
"PYTHONPATH=/snap/fireflyluciferi"..., "SNAP=/snap/fireflyluciferin/4",
"LC_NUMERIC=pl_PL.UTF-8", "LC_PAPER=pl_PL.UTF-8", "GTK_USE_PORTAL=1",
"MEMORY_PRESSURE_WRITE=c29tZSAyMD"..., "VTE_VERSION=7802",
"EDITOR=emacsclient -t -a ''", "LIBGL_DRIVERS_PATH=/snap/firefly"...]) = 0
[pid 2089195] +++ exited with 127 +++
[pid 2089188] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089195, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
[pid 2089188] +++ exited with 0 +++
[pid 2089187] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089188, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
/usr/bin/strace: Process 2089196 attached
[pid 2089196] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR,
si_addr=NULL} ---
/usr/bin/strace: Process 2089197 attached
/usr/bin/strace: Process 2089198 attached
/usr/bin/strace: Process 2089199 attached
/usr/bin/strace: Process 2089200 attached
/usr/bin/strace: Process 2089201 attached
/usr/bin/strace: Process 2089202 attached
/usr/bin/strace: Process 2089203 attached
/usr/bin/strace: Process 2089204 attached
/usr/bin/strace: Process 2089205 attached
/usr/bin/strace: Process 2089206 attached
/usr/bin/strace: Process 2089207 attached
/usr/bin/strace: Process 2089208 attached
/usr/bin/strace: Process 2089209 attached
/usr/bin/strace: Process 2089210 attached
/usr/bin/strace: Process 2089211 attached
/usr/bin/strace: Process 2089212 attached
/usr/bin/strace: Process 2089213 attached
[pid 2089202] +++ exited with 0 +++
[pid 2089200] +++ exited with 0 +++
[pid 2089201] +++ exited with 0 +++
[pid 2089198] +++ exited with 0 +++
[pid 2089206] +++ exited with 0 +++
[pid 2089203] +++ exited with 0 +++
[pid 2089196] +++ exited with 0 +++
[pid 2089213] +++ exited with 1 +++
[pid 2089212] +++ exited with 1 +++
[pid 2089211] +++ exited with 1 +++
[pid 2089210] +++ exited with 1 +++
[pid 2089209] +++ exited with 1 +++
[pid 2089208] +++ exited with 1 +++
[pid 2089207] +++ exited with 1 +++
[pid 2089205] +++ exited with 1 +++
[pid 2089204] +++ exited with 1 +++
[pid 2089199] +++ exited with 1 +++
[pid 2089197] +++ exited with 1 +++
[pid 2089187] +++ exited with 1 +++
[pid 2089185] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089187, si_uid=1000, si_status=1, si_utime=5 /* 0.05 s */,
si_stime=2 /* 0.02 s */} ---
[pid 2089185] +++ exited with 1 +++
[pid 2088905] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED,
si_pid=2089185, si_uid=1000, si_status=1, si_utime=0, si_stime=0} ---
[pid 2089178] +++ exited with 0 +++
[pid 2089177] +++ exited with 0 +++
[pid 2089180] +++ exited with 0 +++
[pid 2089179] +++ exited with 0 +++
[Instance #1] 12:42:08.997 [pool-18-thread-1] ERROR
o.d.network.tcpUdp.TcpClient - Failed to select a proxy
/usr/bin/strace: Process 2089214 attached
/usr/bin/strace: Process 2089215 attached
/usr/bin/strace: Process 2089216 attached
[pid 2089214] +++ exited with 0 +++
/usr/bin/strace: Process 2089217 attached
[pid 2089215] +++ exited with 0 +++
/usr/bin/strace: Process 2089218 attached
/usr/bin/strace: Process 2089219 attached
[pid 2088890] +++ exited with 0 +++
[pid 2089216] +++ exited with 0 +++
[pid 2089218] +++ exited with 0 +++
```
jspawnhelper runs
seems like /snap/fireflyluciferin/4/bin/FireflyLuciferin is started at
some point sucessfully?
followed by some weird calls to rpm and dpkg (???)
a segfault occurs
from forkstat the dpkg/rpm commands are:
```
child /snap/fireflyluciferin/4/bin/FireflyLuciferin
sh -c -- rpm --queryformat '%{NAME}' -qf
'/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null
32512 0.004s sh -c -- rpm --queryformat '%{NAME}' -qf
'/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null
parent /snap/fireflyluciferin/4/bin/FireflyLuciferin
child /snap/fireflyluciferin/4/bin/FireflyLuciferin
sh -c -- dpkg -S
'/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null
32512 0.004s sh -c -- dpkg -S
'/snap/fireflyluciferin/4/bin/FireflyLuciferin' 2>/dev/null
```
the jspawnhelper command is:
/snap/fireflyluciferin/4/lib/runtime/lib/jspawnhelper 23.0.1+11 36:37:39
I tried attaching gdb, but it’s clear that jvm doesn’t like debuggers
attached. Right from the start it got sigstop handlers invoked, and then
a segfault in libjvm.
I wrote to the snap devs and they replied this:
```
The jspawnhelper binary does obviously very weird things here, including
invoking various random package managers it has no relation with and
even explicitly routing stderr to /dev/null so that you can not even
debug it properly, there is no way on the snap side to fix this broken
behavior (and apparently it is also not wanted by the creators of
jspawnhelper that you debug it at all)
There are plenty of java apps in the store (I maintain one myself) that
work really well simply using the java -jar ... approach…
I fear you will either have to resort to this or contact the jpackage
maintainers to get this fixed, I’m sure the snapd team will happily work
with them to get this sorted.
```
the fact that JPackage runs "rpm commands" when I generated a deb file
seems very weird...
is there someone interested in fixing issue with JPackage and SNAP?
More information about the core-libs-dev
mailing list