glib:gio / appinfo core dumps but is seen as OK by `meson test`
test succeeds like this:
177/256 glib:gio / appinfo OK 0.03 s
Ok: 261
Expected Fail: 0
Fail: 0
Unexpected Pass: 0
Skipped: 0
Timeout: 0
when invoking:
meson test -C build --no-suite flaky --print-errorlogs
(same result with just meson test -C build
- I checked)
the log looks like this
-------
177/256 glib:gio / appinfo OK 0.03 s
--- command ---
G_TEST_BUILDDIR='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests' GIO_MODULE_DIR='' G_TEST_SRCDIR='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/glib/gio/tests' GIO_LAUNCH_DESKTOP='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/gio-launch-desktop' /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo --tap
--- stdout ---
# random seed: R02S19fde0c7d7692b4cdc5cfb2842209586
1..14
# Start of appinfo tests
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/basic/.dirs/runtime
ok 1 /appinfo/basic
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/text/.dirs/runtime
ok 2 /appinfo/text
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/launch/.dirs/runtime
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
ok 3 /appinfo/launch
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/show-in/.dirs/runtime
ok 4 /appinfo/show-in
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/commandline/.dirs/runtime
ok 5 /appinfo/commandline
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context/.dirs/runtime
ok 6 /appinfo/launch-context
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/launch-context-signals/.dirs/runtime
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
ok 7 /appinfo/launch-context-signals
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/tryexec/.dirs/runtime
ok 8 /appinfo/tryexec
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/runtime
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/data/applications
# GLib-DEBUG: posix_spawn avoided (workdir specified) (fd close requested)
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from (null) to /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/data/mime/packages
# GLib-DEBUG: posix_spawn avoided (workdir specified) (fd close requested)
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
# GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_appinfo_LUVO4Z/appinfo/associations/.dirs/config
ok 9 /appinfo/associations
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/environment/.dirs/runtime
ok 10 /appinfo/environment
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/startup-wm-class/.dirs/runtime
ok 11 /appinfo/startup-wm-class
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/supported-types/.dirs/runtime
ok 12 /appinfo/supported-types
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/from-keyfile/.dirs/runtime
ok 13 /appinfo/from-keyfile
# Start of launch tests
# GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/home
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/cache
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/system-config1:/tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/system-config2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/config
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/system-data1:/tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/system-data2
# GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/data
# GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appinfo_LUVO4Z/appinfo/launch/no-appid/.dirs/runtime
# Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=791337
# Exec line variant #0
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# Exec line variant #1
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
# GLib-GIO-DEBUG: Couldn’t find a terminal: falling back to xterm
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
ok 14 /appinfo/launch/no-appid
# End of launch tests
# End of appinfo tests
--- stderr ---
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
-------
dmesg looks like this:
[ 4307.370074] systemd-coredump[17161]: Process 17157 (testing) of user 1000 dumped core.
Stack trace of thread 17157:
#0 0x0000704a27df188d __GI_raise (libc.so.6)
#1 0x0000704a27dd095e __GI_abort (libc.so.6)
#2 0x0000704a27ca7db4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x0000704a27cd5163 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x0000570682fad86b n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/tests/testing)
#5 0x0000704a27cd6096 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#6 0x0000704a27cd5e23 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#7 0x0000704a27cd65ca n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#8 0x0000704a27cd9331 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#9 0x0000570682fa9884 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/tests/testing)
#10 0x0000704a27dd229d __libc_start_main (libc.so.6)
#11 0x0000570682fa990e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/tests/testing)
[ 4307.370518] systemd[1]: systemd-coredump@0-17158-0.service: Succeeded.
...
[ 4312.235467] PM: Adding info for No Bus:lo
[ 4312.314559] systemd-coredump[2081]: Process 2068 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2068:
#0 0x00007889319c588d __GI_raise (libc.so.6)
#1 0x00007889319a495e __GI_abort (libc.so.6)
#2 0x000078893187bdb4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007889318a9014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x00006306d3c691b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007889319a629d __libc_start_main (libc.so.6)
#6 0x00006306d3c6925e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4312.315172] systemd[1]: systemd-coredump@2-2075-0.service: Succeeded.
[ 4312.317246] systemd-coredump[2062]: Process 2058 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2058:
#0 0x0000787be39bb88d __GI_raise (libc.so.6)
#1 0x0000787be399a95e __GI_abort (libc.so.6)
#2 0x0000787be3871db4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x0000787be389f014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x0000562f1daf31b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x0000787be399c29d __libc_start_main (libc.so.6)
#6 0x0000562f1daf325e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4312.317621] systemd[1]: systemd-coredump@1-2061-0.service: Succeeded.
[ 4312.325920] PM: Removing info for No Bus:lo
[ 4312.366170] systemd[1]: systemd-coredump@3-2078-0.service: Succeeded.
[ 4312.378522] PM: Removing info for No Bus:lo
[ 4312.429636] glibc64:../sysdeps/posix/getaddrinfo.c:2201/getaddrinfo[1863]: gsocketclient-slow[1863](full:'/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/gsocketclient-slow') for user user(1000(eff:user(1000))) 1of2 attempting to resolve (requested)hostname:
localhost
[ 4312.452223] systemd[1]: systemd-coredump@4-2113-0.service: Succeeded.
[ 4312.484675] systemd-coredump[2087]: Process 2073 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2073:
#0 0x00007a4ad5b3c88d __GI_raise (libc.so.6)
#1 0x00007a4ad5b1b95e __GI_abort (libc.so.6)
#2 0x00007a4ad59f2db4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007a4ad5a20014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x00006380992ce1b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007a4ad5b1d29d __libc_start_main (libc.so.6)
#6 0x00006380992ce25e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4312.484934] glibc64:../sysdeps/posix/getaddrinfo.c:2201/getaddrinfo[1863]: gsocketclient-slow[1863](full:'/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/gsocketclient-slow') for user user(1000(eff:user(1000))) 1of2 attempting to resolve (requested)hostname:
localhost
[ 4312.493448] PM: Removing info for No Bus:lo
[ 4312.566407] systemd-coredump[2117]: Process 2112 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2112:
#0 0x00007cb080cfa88d __GI_raise (libc.so.6)
#1 0x00007cb080cd995e __GI_abort (libc.so.6)
#2 0x00007cb080bb0db4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007cb080bde014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x0000592d772491b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007cb080cdb29d __libc_start_main (libc.so.6)
#6 0x0000592d7724925e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4312.566611] glibc64:../sysdeps/posix/getaddrinfo.c:2201/getaddrinfo[1863]: !! REENTRANT_NAME == 'gethostbyname2_r' hostname='localhost'
[ 4312.580385] PM: Removing info for No Bus:lo
[ 4312.610453] gsocketclient-slow[1863]: gsocketclient-slow[1863](full:'/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/gsocketclient-slow') for user user(1000(eff:user(1000))) 2of2 successfully resolved requested hostname('localhost') which was not transformed('localhost') as follows:
127.0.0.1 localhost
[ 4312.767589] systemd[1]: Started Process Core Dump (PID 2312/UID 0).
[ 4312.767889] device: 'lo': device_add
[ 4312.767909] PM: Adding info for No Bus:lo
[ 4312.768320] systemd[1]: Started Process Core Dump (PID 2311/UID 0).
[ 4312.768706] device: 'lo': device_add
[ 4312.768723] PM: Adding info for No Bus:lo
[ 4312.984696] systemd-coredump[2323]: Process 2305 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2305:
#0 0x00007511d197b88d __GI_raise (libc.so.6)
#1 0x00007511d195a95e __GI_abort (libc.so.6)
#2 0x00007511d1831db4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007511d185f014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x000056e9313a51b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007511d195c29d __libc_start_main (libc.so.6)
#6 0x000056e9313a525e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4312.985182] systemd[1]: systemd-coredump@5-2311-0.service: Succeeded.
[ 4312.991527] PM: Removing info for No Bus:lo
[ 4313.037552] systemd-coredump[2321]: Process 2306 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2306:
#0 0x00007e3fd6a4588d __GI_raise (libc.so.6)
#1 0x00007e3fd6a2495e __GI_abort (libc.so.6)
#2 0x00007e3fd68fbdb4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007e3fd6929014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x000058e1682821b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007e3fd6a2629d __libc_start_main (libc.so.6)
#6 0x000058e16828225e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
[ 4313.037948] systemd[1]: systemd-coredump@6-2312-0.service: Succeeded.
[ 4313.052407] PM: Removing info for No Bus:lo
...
$ coredumpctl -r gdb
PID: 2306 (appinfo-test)
UID: 1000 (user)
GID: 1000 (user)
Signal: 6 (ABRT)
Timestamp: Wed 2019-07-10 17:20:53 CEST (38s ago)
Command Line: /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test --option --icon testicon --name appinfo-test --filename /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test.desktop %
Executable: /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (user)
Boot ID: 8ef0d4526c90419cb0e5be579f0274ad
Machine ID: 5767ef25f523419aaa049f3d74481940
Hostname: i87k
Storage: /var/lib/systemd/coredump/core.appinfo-test.1000.8ef0d4526c90419cb0e5be579f0274ad.2306.1562772053000000
Message: Process 2306 (appinfo-test) of user 1000 dumped core.
Stack trace of thread 2306:
#0 0x00007e3fd6a4588d __GI_raise (libc.so.6)
#1 0x00007e3fd6a2495e __GI_abort (libc.so.6)
#2 0x00007e3fd68fbdb4 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#3 0x00007e3fd6929014 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5)
#4 0x000058e1682821b5 n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
#5 0x00007e3fd6a2629d __libc_start_main (libc.so.6)
#6 0x000058e16828225e n/a (/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test)
GNU gdb (GDB) 8.3.50.20190702-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo-test...
[New LWP 2306]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6)
at /home/user/build/1packages/4used/glibc/makepkg_pacman/glibc/src/glibc/sysdeps/unix/sysv/linux/raise.c:50
50 return ret;
warning: File "/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/glib/libglib-2.0.so.0.6000.5-gdb.py
line to your configuration file "/home/user/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/user/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) bt
#0 __GI_raise (sig=sig@entry=6)
at /home/user/build/1packages/4used/glibc/makepkg_pacman/glibc/src/glibc/sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007e3fd6a2495e in __GI_abort () at abort.c:79
#2 0x00007e3fd68fbdb4 in g_assertion_message (domain=<optimized out>, file=0x58e1682830a0 "../glib/gio/tests/appinfo-test.c",
line=<optimized out>, func=<optimized out>, message=<optimized out>) at ../glib/glib/gtestutils.c:2878
#3 0x00007e3fd6929014 in g_assertion_message_cmpnum (domain=0x58e168283046 "GLib-GIO",
file=0x58e1682830a0 "../glib/gio/tests/appinfo-test.c", line=24, func=0x58e1682830c8 <__FUNCTION__.28194> "main",
expr=<optimized out>, arg1=2267, cmp=<optimized out>, arg2=2306, numtype=105 'i') at ../glib/glib/gtestutils.c:2937
#4 0x000058e1682821b5 in main (argc=<optimized out>, argv=<optimized out>) at ../glib/gio/tests/appinfo-test.c:24
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6)
at /home/user/build/1packages/4used/glibc/makepkg_pacman/glibc/src/glibc/sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0 <repeats 12 times>, 15, 412316860336, 511101108334, 0}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007e3fd6a2495e in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x58e16835eaa0, sa_sigaction = 0x58e16835eaa0}, sa_mask = {__val = {141,
140723880292304, 138812647966155, 97725139107248, 140723880292232, 140723880292232, 117, 7866773568,
97725139106176, 206158430248, 140722674073600, 97725139106176, 0, 0, 2289501695202892032, 140723880292416}},
sa_flags = -694165752, sa_restorer = 0x58e16833b980}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007e3fd68fbdb4 in g_assertion_message (domain=<optimized out>, file=0x58e1682830a0 "../glib/gio/tests/appinfo-test.c",
line=<optimized out>, func=<optimized out>, message=<optimized out>) at ../glib/glib/gtestutils.c:2878
lstr = "24\000\324\374\177\000\000\021\226\222\326?~\000\000\030\000\000\000\060\000\000\000\320p\345\324\374\177\000"
s = <optimized out>
#3 0x00007e3fd6929014 in g_assertion_message_cmpnum (domain=0x58e168283046 "GLib-GIO",
file=0x58e1682830a0 "../glib/gio/tests/appinfo-test.c", line=24, func=0x58e1682830c8 <__FUNCTION__.28194> "main",
expr=<optimized out>, arg1=2267, cmp=<optimized out>, arg2=2306, numtype=105 'i') at ../glib/glib/gtestutils.c:2937
s = 0x58e16833bdb0 "assertion failed (pid_from_env == getpid ()): (2267 == 2306)"
#4 0x000058e1682821b5 in main (argc=<optimized out>, argv=<optimized out>) at ../glib/gio/tests/appinfo-test.c:24
__n1 = 2267
__n2 = 2306
expected = 0x58e16833aec0 ""
pid_from_env = 2267
envvar = <optimized out>
__FUNCTION__ = "main"
(gdb)
so this shows that an assert failed:
#include <stdlib.h>
#include <gio/gio.h>
int
main (int argc, char *argv[])
{
const gchar *envvar;
g_test_init (&argc, &argv, NULL);
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE");
if (envvar != NULL)
{
gchar *expected;
gint pid_from_env;
expected = g_test_build_filename (G_TEST_BUILT, "appinfo-test.desktop", NULL);
g_assert_cmpstr (envvar, ==, expected);
g_free (expected);
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID");
g_assert (envvar != NULL);
pid_from_env = atoi (envvar);
g_assert_cmpint (pid_from_env, ==, getpid ()); //this failed
}
return 0;
}
then, unless I'm missing something, the test should not have succeeded with OK.
(There are other tests like this. Ok, I guess there is only one other: the testing
one which is seen in the dmesg above.)
If I do run that command manually:
$ G_TEST_BUILDDIR='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests' GIO_MODULE_DIR='' G_TEST_SRCDIR='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/glib/gio/tests' GIO_LAUNCH_DESKTOP='/home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/gio-launch-desktop' /home/user/build/1packages/4used/glib2/makepkg_pacman/glib2/src/build/gio/tests/appinfo --tap
then I do get 4 coredumps but the return(exit) code is 0.
I'm on ArchLinux and I'm using (more or less)this to compile glib2: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/glib2&id=d5b25b84611f5c14a37825f5ce13fbef727aafae
this is for glib2 _commit=cffe8efd # tags/2.60.5^0