Bug 14891 - AB-INT PTEST: util-linux ptest failures
Summary: AB-INT PTEST: util-linux ptest failures
Status: RESOLVED WORKSFORME
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT AB-HAVE-PLAN
Depends on:
Blocks:
 
Reported: 2022-08-16 19:40 UTC by Alexandre Belloni
Modified: 2025-01-09 16:10 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
util-linux ptest log (85.68 KB, text/x-log)
2022-08-16 19:40 UTC, Alexandre Belloni
no flags Details
util-linux ptest log (89.83 KB, text/x-log)
2022-08-16 20:13 UTC, Alexandre Belloni
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-08-16 19:40:50 UTC
Created attachment 4895 [details]
util-linux ptest log

https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3654/steps/12/logs/stdio

{'util-linux': ['kill:_all_processes',
                'kill:_name_to_number',
                'kill:_print_pid',
                'utmp:_circle',
                'utmp:_subsecond']}

diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/kill/all_processes	2018-03-09 12:34:56.000000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/all_processes	2022-08-11 13:34:30.606257664 +0000
@@ -1,3 +1,4 @@
 test 1
 test 2
+kill did not return 0
 test 3
}}}-diff


diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/kill/all_processes.err	2018-03-09 12:34:56.000000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/all_processes.err	2022-08-11 13:34:30.610257664 +0000
@@ -1,5 +1,38 @@
 test 1
-kill: cannot find process "test_sigreceive"
+kill: failed to parse argument: 'test_sigreceive'
 test 2
+kill: invalid argument a
+
+Usage:
+ kill [options] <pid> [...]
+
+Options:
+ <pid> [...]            send signal to every <pid> listed
+ -<signal>, -s, --signal <signal>
+                        specify the <signal> to be sent
+ -q, --queue <value>    integer value to be sent with the signal
+ -l, --list=[<signal>]  list all signal names, or convert one to a name
+ -L, --table            list all signal names in a nice table
+
+ -h, --help     display this help and exit
+ -V, --version  output version information and exit
+
+For more details see kill(1).
 test 3
-kill: cannot find process "test_sigreceive"
+kill: invalid argument a
+
+Usage:
+ kill [options] <pid> [...]
+
+Options:
+ <pid> [...]            send signal to every <pid> listed
+ -<signal>, -s, --signal <signal>
+                        specify the <signal> to be sent
+ -q, --queue <value>    integer value to be sent with the signal
+ -l, --list=[<signal>]  list all signal names, or convert one to a name
+ -L, --table            list all signal names in a nice table
+
+ -h, --help     display this help and exit
+ -V, --version  output version information and exit
+
+For more details see kill(1).
}}}-diff

FAIL:          kill: all_processes                                 (kill/all_processes)

diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/kill/name_to_number	2018-03-09 12:34:56.000000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/name_to_number	2022-08-11 13:36:55.882257664 +0000
@@ -1 +1,29 @@
-all ok
+HUP returned 0 while 1 was expected
+INT returned 0 while 2 was expected
+QUIT returned 0 while 3 was expected
+ILL returned 0 while 4 was expected
+TRAP returned 0 while 5 was expected
+ABRT returned 0 while 6 was expected
+BUS returned 0 while 7 was expected
+FPE returned 0 while 8 was expected
+USR1 returned 0 while 10 was expected
+SEGV returned 0 while 11 was expected
+USR2 returned 0 while 12 was expected
+PIPE returned 0 while 13 was expected
+ALRM returned 0 while 14 was expected
+TERM returned 0 while 15 was expected
+STKFLT returned 0 while 16 was expected
+CHLD returned 0 while 17 was expected
+CONT returned 0 while 18 was expected
+TSTP returned 0 while 20 was expected
+TTIN returned 0 while 21 was expected
+TTOU returned 0 while 22 was expected
+URG returned 0 while 23 was expected
+XCPU returned 0 while 24 was expected
+XFSZ returned 0 while 25 was expected
+VTALRM returned 0 while 26 was expected
+PROF returned 0 while 27 was expected
+WINCH returned 0 while 28 was expected
+POLL returned 0 while 29 was expected
+PWR returned 0 while 30 was expected
+SYS returned 0 while 31 was expected
}}}-diff


diff-{{{
--- /dev/null	2022-08-11 10:39:18.800000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/name_to_number.err	2022-08-11 13:36:55.886257664 +0000
@@ -0,0 +1,29 @@
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
+kill: failed to parse argument: 'nazIul6k45hPtOp'
}}}-diff

FAIL:          kill: name_to_number                                (kill/name_to_number)
PASS:          kill: options                                      

diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/kill/print_pid	2018-03-09 12:34:56.000000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/print_pid	2022-08-11 13:36:56.082257664 +0000
@@ -1 +1,2 @@
-all ok
+kill -p did not work
+jobs -p 27720 != kill -p 
}}}-diff


diff-{{{
--- /dev/null	2022-08-11 10:39:18.800000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/kill/print_pid.err	2022-08-11 13:36:56.082257664 +0000
@@ -0,0 +1,17 @@
+kill: invalid argument p
+
+Usage:
+ kill [options] <pid> [...]
+
+Options:
+ <pid> [...]            send signal to every <pid> listed
+ -<signal>, -s, --signal <signal>
+                        specify the <signal> to be sent
+ -q, --queue <value>    integer value to be sent with the signal
+ -l, --list=[<signal>]  list all signal names, or convert one to a name
+ -L, --table            list all signal names in a nice table
+
+ -h, --help     display this help and exit
+ -V, --version  output version information and exit
+
+For more details see kill(1).
}}}-diff

FAIL:          kill: print_pid                                     (kill/print_pid)


diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/utmp/utmpdump-circle	2018-03-09 21:34:56.000000000 +0900
+++ /usr/lib/util-linux/ptest/tests/output/utmp/utmpdump-circle	2022-08-11 22:39:32.158257664 +0900
@@ -1 +1,75 @@
 no output expected
+--- /usr/lib/util-linux/ptest/tests/ts/utmp/txt-a	2018-03-09 21:34:56.000000000 +0900
++++ /usr/lib/util-linux/ptest/tests/output/utmp/utmpdump-circle.txt	2022-08-11 22:39:32.134257664 +0900
+@@ -1,19 +1,19 @@
+-[9] [00009] [ts/9] [accounting] [foo         ] [nine                ] [0.0.0.0        ] [2013-08-28T03:00:00,000000+00:00]
+-[8] [00008] [ts/8] [dead_process] [foo         ] [eight               ] [0.0.0.0        ] [2013-08-28T04:00:00,000000+00:00]
+-[7] [00007] [ts/7] [user_process] [foo         ] [seven               ] [0.0.0.0        ] [2013-08-28T05:00:00,000000+00:00]
+-[6] [00006] [ts/6] [login   ] [foo         ] [six                 ] [0.0.0.0        ] [2013-08-28T06:00:00,000000+00:00]
+-[5] [00005] [ts/5] [init    ] [foo         ] [five                ] [0.0.0.0        ] [2013-08-28T07:00:00,000000+00:00]
+-[4] [00004] [ts/4] [oldtime ] [foo         ] [four                ] [0.0.0.0        ] [2013-08-28T08:00:00,000000+00:00]
+-[3] [00003] [ts/3] [newtime ] [foo         ] [three               ] [0.0.0.0        ] [2013-08-28T09:00:00,000000+00:00]
+-[2] [00002] [ts/2] [sysboot ] [foo         ] [two                 ] [0.0.0.0        ] [2013-08-28T10:00:00,000000+00:00]
+-[1] [00001] [ts/1] [runlevel] [foo         ] [one                 ] [0.0.0.0        ] [2013-08-28T11:00:00,000000+00:00]
+-[0] [00000] [ts/0] [nonvalid] [foo         ] [zero                ] [0.0.0.0        ] [2013-08-28T12:00:00,000000+00:00]
+-[7] [00010] [ipv4] [IPv4    ] [root        ] [dns-server          ] [198.41.0.4     ] [2013-08-28T13:00:00,000000+00:00]
+-[8] [00011] [ipv4] [IPv4    ] [root        ] [dns-server          ] [198.41.0.4     ] [2013-08-28T14:00:00,000000+00:00]
+-[1] [00012] [~~  ] [shutdown] [~           ] [system-name         ] [0.0.0.0        ] [2013-08-28T15:00:00,000000+00:00]
+-[2] [00012] [~~  ] [reboot  ] [~           ] [system-name         ] [0.0.0.0        ] [2013-08-28T16:00:00,000000+00:00]
+-[1] [00012] [~~  ] [shutdown] [~           ] [system-name         ] [0.0.0.0        ] [2013-08-28T17:00:00,000000+00:00]
+-[2] [00012] [~~  ] [reboot  ] [~           ] [system-name         ] [0.0.0.0        ] [2013-08-28T18:00:00,000000+00:00]
+-[7] [00013] [ts/1] [torvalds] [linux       ] [hobby               ] [128.214.205.14 ] [1991-08-26T00:57:08,000000+00:00]
+-[7] [00014] [long] [rick    ] [long        ] [never-gonna-logout  ] [0.0.0.0        ] [1970-01-01T00:00:00,000000+00:00]
+-[8] [00014] [long] [rick    ] [long        ] [never-gonna-logout  ] [0.0.0.0        ] [2038-01-19T03:14:07,000000+00:00]
++[9] [00009] [ts/9] [accounting] [foo         ] [nine                ] [0.0.0.0        ] [Wed Aug 28 03:00:00 2013 JST]
++[8] [00008] [ts/8] [dead_process] [foo         ] [eight               ] [0.0.0.0        ] [Wed Aug 28 04:00:00 2013 JST]
++[7] [00007] [ts/7] [user_process] [foo         ] [seven               ] [0.0.0.0        ] [Wed Aug 28 05:00:00 2013 JST]
++[6] [00006] [ts/6] [login   ] [foo         ] [six                 ] [0.0.0.0        ] [Wed Aug 28 06:00:00 2013 JST]
++[5] [00005] [ts/5] [init    ] [foo         ] [five                ] [0.0.0.0        ] [Wed Aug 28 07:00:00 2013 JST]
++[4] [00004] [ts/4] [oldtime ] [foo         ] [four                ] [0.0.0.0        ] [Wed Aug 28 08:00:00 2013 JST]
++[3] [00003] [ts/3] [newtime ] [foo         ] [three               ] [0.0.0.0        ] [Wed Aug 28 09:00:00 2013 JST]
++[2] [00002] [ts/2] [sysboot ] [foo         ] [two                 ] [0.0.0.0        ] [Wed Aug 28 10:00:00 2013 JST]
++[1] [00001] [ts/1] [runlevel] [foo         ] [one                 ] [0.0.0.0        ] [Wed Aug 28 11:00:00 2013 JST]
++[0] [00000] [ts/0] [nonvalid] [foo         ] [zero                ] [0.0.0.0        ] [Wed Aug 28 12:00:00 2013 JST]
++[7] [00010] [ipv4] [IPv4    ] [root        ] [dns-server          ] [198.41.0.4     ] [Wed Aug 28 13:00:00 2013 JST]
++[8] [00011] [ipv4] [IPv4    ] [root        ] [dns-server          ] [198.41.0.4     ] [Wed Aug 28 14:00:00 2013 JST]
++[1] [00012] [~~  ] [shutdown] [~           ] [system-name         ] [0.0.0.0        ] [Wed Aug 28 15:00:00 2013 JST]
++[2] [00012] [~~  ] [reboot  ] [~           ] [system-name         ] [0.0.0.0        ] [Wed Aug 28 16:00:00 2013 JST]
++[1] [00012] [~~  ] [shutdown] [~           ] [system-name         ] [0.0.0.0        ] [Wed Aug 28 17:00:00 2013 JST]
++[2] [00012] [~~  ] [reboot  ] [~           ] [system-name         ] [0.0.0.0        ] [Wed Aug 28 18:00:00 2013 JST]
++[7] [00013] [ts/1] [torvalds] [linux       ] [hobby               ] [128.214.205.14 ] [Mon Aug 26 00:57:08 1991 JST]
++[7] [00014] [long] [rick    ] [long        ] [never-gonna-logout  ] [0.0.0.0        ] [                            ]
++[8] [00014] [long] [rick    ] [long        ] [never-gonna-logout  ] [0.0.0.0        ] [Tue Jan 19 03:14:07 2038 JST]
+circle failed for txt-a
+--- /usr/lib/util-linux/ptest/tests/ts/utmp/txt-b	2018-03-09 21:34:56.000000000 +0900
++++ /usr/lib/util-linux/ptest/tests/output/utmp/utmpdump-circle.txt	2022-08-11 22:39:32.142257664 +0900
+@@ -1,10 +1,10 @@
+-[7] [17058] [ts/1] [kerolasa] [pts/1       ] [:0.0                ] [0.0.0.0        ] [2013-01-16T23:44:09,000000+00:00]
+-[7] [22098] [ts/2] [kerolasa] [pts/2       ] [:0.0                ] [0.0.0.0        ] [2013-01-16T23:49:17,000000+00:00]
+-[7] [24915] [ts/3] [kerolasa] [pts/3       ] [:0.0                ] [0.0.0.0        ] [2013-01-17T12:23:33,000000+00:00]
+-[8] [24915] [ts/3] [kerolasa] [pts/3       ] [                    ] [0.0.0.0        ] [2013-01-17T12:24:49,000000+00:00]
+-[7] [30629] [ts/3] [kerolasa] [pts/3       ] [:0.0                ] [0.0.0.0        ] [2013-01-17T13:12:39,000000+00:00]
+-[8] [30629] [ts/3] [kerolasa] [pts/3       ] [                    ] [0.0.0.0        ] [2013-01-17T13:42:19,000000+00:00]
+-[8] [22098] [ts/2] [kerolasa] [pts/2       ] [                    ] [0.0.0.0        ] [2013-01-17T13:42:48,000000+00:00]
+-[8] [17058] [ts/1] [kerolasa] [pts/1       ] [                    ] [0.0.0.0        ] [2013-01-17T13:42:48,000000+00:00]
+-[7] [31545] [ts/1] [kerolasa] [pts/1       ] [:0.0                ] [0.0.0.0        ] [2013-01-17T20:17:21,000000+00:00]
+-[7] [28496] [ts/2] [kerolasa] [pts/2       ] [:0.0                ] [0.0.0.0        ] [2013-01-17T21:09:39,000000+00:00]
++[7] [17058] [ts/1] [kerolasa] [pts/1       ] [:0.0                ] [0.0.0.0        ] [Wed Jan 16 23:44:09 2013 JST]
++[7] [22098] [ts/2] [kerolasa] [pts/2       ] [:0.0                ] [0.0.0.0        ] [Wed Jan 16 23:49:17 2013 JST]
++[7] [24915] [ts/3] [kerolasa] [pts/3       ] [:0.0                ] [0.0.0.0        ] [Thu Jan 17 12:23:33 2013 JST]
++[8] [24915] [ts/3] [kerolasa] [pts/3       ] [                    ] [0.0.0.0        ] [Thu Jan 17 12:24:49 2013 JST]
++[7] [30629] [ts/3] [kerolasa] [pts/3       ] [:0.0                ] [0.0.0.0        ] [Thu Jan 17 13:12:39 2013 JST]
++[8] [30629] [ts/3] [kerolasa] [pts/3       ] [                    ] [0.0.0.0        ] [Thu Jan 17 13:42:19 2013 JST]
++[8] [22098] [ts/2] [kerolasa] [pts/2       ] [                    ] [0.0.0.0        ] [Thu Jan 17 13:42:48 2013 JST]
++[8] [17058] [ts/1] [kerolasa] [pts/1       ] [                    ] [0.0.0.0        ] [Thu Jan 17 13:42:48 2013 JST]
++[7] [31545] [ts/1] [kerolasa] [pts/1       ] [:0.0                ] [0.0.0.0        ] [Thu Jan 17 20:17:21 2013 JST]
++[7] [28496] [ts/2] [kerolasa] [pts/2       ] [:0.0                ] [0.0.0.0        ] [Thu Jan 17 21:09:39 2013 JST]
+circle failed for txt-b
+--- /usr/lib/util-linux/ptest/tests/ts/utmp/txt-ipv6	2018-03-09 21:34:56.000000000 +0900
++++ /usr/lib/util-linux/ptest/tests/output/utmp/utmpdump-circle.txt	2022-08-11 22:39:32.150257664 +0900
+@@ -1,2 +1,2 @@
+-[7] [00010] [ipv6] [IPv6    ] [root        ] [dns-server          ] [2001:503:ba3e::2:30] [2013-08-28T20:30:40,000000+00:00]
+-[8] [00011] [ipv6] [IPv6    ] [root        ] [dns-server          ] [2001:503:ba3e::2:30] [2013-08-28T20:40:50,000000+00:00]
++[7] [00010] [ipv6] [IPv6    ] [root        ] [dns-server          ] [255.255.255.255] [Wed Aug 28 20:30:40 2013 JST]
++[8] [00011] [ipv6] [IPv6    ] [root        ] [dns-server          ] [255.255.255.255] [Wed Aug 28 20:40:50 2013 JST]
+circle failed for txt-ipv6
}}}-diff

FAIL:          utmp: circle                                        (utmp/utmpdump-circle)

diff-{{{
--- /usr/lib/util-linux/ptest/tests/expected/utmp/utmpdump-subsecond	2018-03-09 12:34:56.000000000 +0000
+++ /usr/lib/util-linux/ptest/tests/output/utmp/utmpdump-subsecond	2022-08-11 13:39:32.242257664 +0000
@@ -1,4 +1,4 @@
 last 9 is expected to disappear in conversion
-[7] [00010] [ipv6] [IPv6    ] [root        ] [dns-server          ] [2001:503:ba3e::2:30] [2013-08-28T20:30:40,123456+00:00]
-[8] [00011] [ipv6] [IPv6    ] [root        ] [dns-server          ] [2001:503:ba3e::2:30] [2013-08-28T20:40:50,999999+00:00]
-[0] [00000] [ts/0] [nonvalid] [foo         ] [zero                ] [0.0.0.0        ] [2013-08-28T12:00:00,12345678+00:00]
+[7] [00010] [ipv6] [IPv6    ] [root        ] [dns-server          ] [255.255.255.255] [Sun Dec 31 00:00:00 1899 UTC]
+[8] [00011] [ipv6] [IPv6    ] [root        ] [dns-server          ] [255.255.255.255] [Sun Dec 31 00:00:00 1899 UTC]
+[0] [00000] [ts/0] [nonvalid] [foo         ] [zero                ] [0.0.0.0        ] [Sun Dec 31 00:00:00 1899 UTC]
}}}-diff

FAIL:          utmp: subsecond                                     (utmp/utmpdump-subsecond)
Comment 1 Alexandre Belloni 2022-08-16 20:10:16 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3656/steps/12/logs/stdio

{'util-linux': ['kill:_all_processes',
                'kill:_name_to_number',
                'kill:_print_pid',
                'utmp:_circle',
                'utmp:_subsecond']}

https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3875/steps/12/logs/stdio

{'util-linux': ['kill:_all_processes',
                'kill:_name_to_number',
                'kill:_print_pid',
                'utmp:_circle',
                'utmp:_subsecond',
                'utmp:_to_binary',
                'utmp:_IPv6_to_binary',
                'utmp:_to_text',
                'utmp:_IPv6_to_text']}
Comment 2 Alexandre Belloni 2022-08-16 20:13:22 UTC
Created attachment 4896 [details]
util-linux ptest log
Comment 5 Ross Burton 2022-08-18 14:54:05 UTC
My guess is this is running the procps variant of kill (priority 200) not the util-linux (priority 80).

However, the util-linux run-ptest script should be adding a symlink tree where kill is kill.util-linux to the beginning of PATH, so this shouldn't happen.
Comment 6 Richard Purdie 2023-06-08 09:38:31 UTC
The plan is to add some debug output to util-linux's run-ptest script so we can check which version of the binaries is being used in the logs next time it fails.
Comment 7 João Marcos Costa 2024-01-17 14:57:05 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/5700/steps/12/logs/stdio

qemux86-64-ptest fedora38-ty-5

This looks like a timeout
Comment 8 Randy MacLeod 2024-04-24 20:30:27 UTC
Bulk move from 5.0* to 5.99 to indicate that there isn't any one available to work on this issue.
Comment 9 João Marcos Costa 2024-06-11 07:29:22 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6702/steps/12/logs/stdio

qemux86-64-ptest ubuntu2304-ty-1
Comment 10 João Marcos Costa 2024-07-01 08:22:34 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6757/steps/13/logs/stdio

qemux86-64-ptest opensuse154-ty-3
Comment 11 Randy MacLeod 2025-01-09 16:10:24 UTC
Not seen in 5 months.
Richard Purdie investigated Ross's suggestion but that did not work out.