Skip to content

test-process-util fails under lxc #9649

@mbiebl

Description

@mbiebl

systemd version the issue has been seen with

v239

Used distribution

Debian sid.

I'm trying to run the root-unittests autopkgtest under lxc. This triggers the following failure:

root@autopkgtest-lxc-cgxfok:/tmp/autopkgtest-lxc.mltam3b1/downtmp/build.qfa/src#  /usr/lib/systemd/tests/test-process-util 
PID1 comm: 'systemd'
PID1 cmdline: '/lib/systemd/systemd --system --deserialize 19'
PID1 cmdline truncated to 8: '/lib...'
PID1 cmdline truncated to 1: ''
PID1 PPID: 0
PID1 exe: '/usr/lib/systemd/systemd'
PID1 UID: 0
PID1 GID: 0
PID1 strlen(environ): 73
Found container virtualization lxc.
PID1 $PATH: 'n/a'
PID2960 comm: 'test-process-ut'
PID2960 cmdline: '/usr/lib/systemd/tests/test-process-util'
PID2960 cmdline truncated to 8: '/usr...'
PID2960 cmdline truncated to 1: ''
PID2960 PPID: 1674
PID2960 exe: '/usr/lib/systemd/tests/test-process-util'
PID2960 UID: 0
PID2960 GID: 0
PID2960 strlen(environ): 370
PID2960 $PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
input: <> — output: <>
got: <>
input: <foo> — output: <foo>
got: <foo>
input: <012345678901234> — output: <012345678901234>
got: <012345678901234>
input: <0123456789012345> — output: <012345678901234>
got: <012345678901234>
input: <äöüß> — output: <\303\244\303…>
got: <\303\244\303…>
input: <xäöüß> — output: <x\303\244…>
got: <x\303\244…>
input: <xxäöüß> — output: <xx\303\244…>
got: <xx\303\244…>
input: <xxxäöüß> — output: <xxx\303\244…>
got: <xxx\303\244…>
input: <xxxxäöüß> — output: <xxxx\303\244…>
got: <xxxx\303\244…>
input: <xxxxxäöüß> — output: <xxxxx\303…>
got: <xxxxx\303…>
Assertion 'mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) >= 0' failed at ../src/test/test-process-util.c:209, function test_get_process_cmdline_harder(). Aborting.
Assertion 'si.si_code == CLD_EXITED' failed at ../src/test/test-process-util.c:200, function test_get_process_cmdline_harder(). Aborting.
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions