Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674458 - sys-apps/systemd test-mountpoint-util and test-process-util fail with FEATURES="pid-sandbox"
Summary: sys-apps/systemd test-mountpoint-util and test-process-util fail with FEATURE...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-03 21:30 UTC by Mike Gilbert
Modified: 2020-03-11 11:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2019-01-03 21:30:54 UTC
323/514 test-mountpoint-util                    FAIL     0.44 s (killed by signal 6 SIGABRT)

--- command ---
SYSTEMD_KBD_MODEL_MAP='/x/portage/sys-apps/systemd-240-r2/work/systemd-240/src/locale/kbd-model-map' SYSTEMD_LANGUAGE_FALLBACK_MAP='/x/portage/sys-apps/systemd-240-r2/work/systemd-240/src/locale/language-fallback-map' PATH='/x/portage/sys-apps/systemd-240-r2/work/systemd-240-abi_x86_64.amd64:/x/portage/sys-apps/systemd-240-r2/temp/python3.7/bin:/usr/lib/ccache/bin:/home/floppym/src/portage/bin/ebuild-helpers/xattr:/home/floppym/src/portage/bin/ebuild-helpers:/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin' /x/portage/sys-apps/systemd-240-r2/work/systemd-240-abi_x86_64.amd64/test-mountpoint-util
--- stderr ---
Found container virtualization none.
/* test_mount_propagation_flags(shared) */
/* test_mount_propagation_flags(slave) */
/* test_mount_propagation_flags(private) */
/* test_mount_propagation_flags((null)) */
/* test_mount_propagation_flags() */
/* test_mount_propagation_flags(xxxx) */
/* test_mount_propagation_flags( ) */
/* test_mnt_id */
mountinfo: / → 464
mountinfo: /sys → 465
mountinfo: /sys/fs/cgroup → 466
mountinfo: /sys/fs/cgroup/unified → 467
mountinfo: /sys/fs/cgroup/systemd → 468
mountinfo: /sys/fs/cgroup/perf_event → 469
mountinfo: /sys/fs/cgroup/pids → 470
mountinfo: /sys/fs/cgroup/cpu,cpuacct → 471
mountinfo: /sys/fs/cgroup/net_cls,net_prio → 472
mountinfo: /sys/fs/cgroup/cpuset → 473
mountinfo: /sys/fs/cgroup/blkio → 474
mountinfo: /sys/fs/cgroup/memory → 475
mountinfo: /sys/fs/cgroup/devices → 476
mountinfo: /sys/fs/cgroup/freezer → 477
mountinfo: /sys/fs/cgroup/hugetlb → 478
mountinfo: /sys/fs/bpf → 479
mountinfo: /sys/kernel/debug → 480
mountinfo: /sys/fs/fuse/connections → 481
mountinfo: /dev → 482
mountinfo: /dev/shm → 483
mountinfo: /dev/pts → 484
mountinfo: /dev/mqueue → 485
mountinfo: /dev/hugepages → 486
mountinfo: /run → 487
mountinfo: /run/user/10000 → 488
mountinfo: /run/user/0 → 489
mountinfo: /proc → 490
mountinfo: /proc/sys/fs/binfmt_misc → 491
mountinfo: /proc/sys/fs/binfmt_misc → 492
mountinfo: /tmp → 493
mountinfo: /x → 494
mountinfo: /mnt/data1 → 495
mountinfo: /var/cache/distfiles → 496
mountinfo: /home → 497
mountinfo: /home/floppym/tmp → 498
mountinfo: /var/cache/packages → 499
mountinfo: /boot → 500
mountinfo: /proc → 503
mnt ids of /run are 487, 487
mnt ids of /var/cache/packages are 499, 499
mnt ids of /boot are 500, 500
mnt ids of /sys/fs/cgroup/cpuset are 473, 473
mnt ids of /dev/shm are 483, 483
mnt ids of /run/user/0 are 489, 489
mnt ids of /proc/sys/fs/binfmt_misc are 491, 503
the other path for mnt id 503 is /proc
Assertion 'path_equal(p, t)' failed at ../systemd-240/src/test/test-mountpoint-util.c:86, function test_mnt_id(). Aborting.
-------

344/514 test-process-util                       FAIL     0.34 s (killed by signal 6 SIGABRT)

--- command ---
SYSTEMD_KBD_MODEL_MAP='/x/portage/sys-apps/systemd-240-r2/work/systemd-240/src/locale/kbd-model-map' SYSTEMD_LANGUAGE_FALLBACK_MAP='/x/portage/sys-apps/systemd-240-r2/work/systemd-240/src/locale/language-fallback-map' PATH='/x/portage/sys-apps/systemd-240-r2/work/systemd-240-abi_x86_64.amd64:/x/portage/sys-apps/systemd-240-r2/temp/python3.7/bin:/usr/lib/ccache/bin:/home/floppym/src/portage/bin/ebuild-helpers/xattr:/home/floppym/src/portage/bin/ebuild-helpers:/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin' /x/portage/sys-apps/systemd-240-r2/work/systemd-240-abi_x86_64.amd64/test-process-util
--- stderr ---
Found container virtualization none.
PID1 comm: 'ebuild.sh'
PID1 cmdline: '/bin/bash /home/floppym/src/portage/bin/ebuild.sh test'
PID1 cmdline truncated to 8: '/bin...'
PID1 cmdline truncated to 1: ''
PID1 PPID: 0
PID1 exe: '/bin/bash'
PID1 UID: 250
Assertion 'u == 0 || pid != 1' failed at ../systemd-240/src/test/test-process-util.c:73, function test_get_process_comm(). Aborting.
-------
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-03 21:36:15 UTC
Can't say about the first one but the second one seems to be bug in systemd that presumes PID 1 will always be running as root.
Comment 2 Mike Gilbert gentoo-dev 2019-01-20 16:37:25 UTC
(In reply to Michał Górny from comment #1)

Thanks, I sent a patch for this upstream.
Comment 3 Mike Gilbert gentoo-dev 2019-01-20 16:45:12 UTC
I reported the test-mountpoint-util failure upstream.
Comment 4 Larry the Git Cow gentoo-dev 2019-04-13 13:43:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbfc31dfa14baf5547ef2576193ae8c912b609b7

commit bbfc31dfa14baf5547ef2576193ae8c912b609b7
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-04-13 13:42:42 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-04-13 13:43:07 +0000

    sys-apps/systemd: add warning about failing tests with pid-sandbox
    
    Bug: https://bugs.gentoo.org/674458
    Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-241-r1.ebuild | 5 +++++
 sys-apps/systemd/systemd-242.ebuild    | 5 +++++
 sys-apps/systemd/systemd-9999.ebuild   | 5 +++++
 3 files changed, 15 insertions(+)
Comment 5 Paolo Pedroni 2020-03-11 11:24:56 UTC
Still true with systemd-244.3