######################### Run on "containerized" Centos 7 with linuxkit kernels and broken systemtap ############################### [root@de3d05761ee8 Python-3.8.6]# ./python Lib/test/regrtest.py -v test_dtrace == CPython 3.8.6 (default, Dec 22 2020, 21:56:59) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] == Linux-5.4.39-linuxkit-x86_64-with-glibc2.17 little-endian == cwd: /tmp/pythonbuildir/Python-3.8.6/build/test_python_19194 == CPU count: 2 == encodings: locale=UTF-8, FS=utf-8 0:00:00 load avg: 0.00 Run tests sequentially 0:00:00 load avg: 0.00 [1/1] test_dtrace skipped "dtrace(1) failed: ('/usr/bin/dtrace', 'invalid option', '-q')\nUsage /usr/bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]" skipped "dtrace(1) failed: ('/usr/bin/dtrace', 'invalid option', '-q')\nUsage /usr/bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]" skipped 'stap(1) failed: Checking "/lib/modules/5.4.39-linuxkit/build/.config" failed with error: No such file or directory' skipped 'stap(1) failed: Checking "/lib/modules/5.4.39-linuxkit/build/.config" failed with error: No such file or directory' ---------------------------------------------------------------------- Ran 0 tests in 0.255s OK (skipped=4) == Tests result: SUCCESS == 1 test OK. Total duration: 379 ms Tests result: SUCCESS [root@de3d05761ee8 Python-3.8.6]# stap -g Lib/test/dtracedata/assert_usable.stp Checking "/lib/modules/5.4.39-linuxkit/build/.config" failed with error: No such file or directory [root@de3d05761ee8 Python-3.8.6]# ######################### Run on "real" Centos 7 (virtualized on KVM) ############################### [root@localhost Python-3.8.6]# ./python Lib/test/regrtest.py -v test_dtrace == CPython 3.8.6 (default, Dec 22 2020, 16:22:05) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] == Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17 little-endian == cwd: /tmp/pythonbuilder/Python-3.8.6/build/test_python_21353 == CPU count: 1 == encodings: locale=UTF-8, FS=utf-8 0:00:00 load avg: 0.00 Run tests sequentially 0:00:00 load avg: 0.00 [1/1] test_dtrace skipped "dtrace(1) failed: ('/bin/dtrace', 'invalid option', '-q')\nUsage /bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]" skipped "dtrace(1) failed: ('/bin/dtrace', 'invalid option', '-q')\nUsage /bin/dtrace [--help] [-h | -G] [-C [-I]] -s File.d [-o ]" test_function_entry_return (test.test_dtrace.SystemTapNormalTests) ... FAIL test_gc (test.test_dtrace.SystemTapNormalTests) ... ok test_line (test.test_dtrace.SystemTapNormalTests) ... FAIL test_verify_call_opcodes (test.test_dtrace.SystemTapNormalTests) Ensure our call stack test hits all function call opcodes ... ok test_function_entry_return (test.test_dtrace.SystemTapOptimizedTests) ... FAIL test_gc (test.test_dtrace.SystemTapOptimizedTests) ... ok test_line (test.test_dtrace.SystemTapOptimizedTests) ... FAIL test_verify_call_opcodes (test.test_dtrace.SystemTapOptimizedTests) Ensure our call stack test hits all function call opcodes ... ok ====================================================================== FAIL: test_function_entry_return (test.test_dtrace.SystemTapNormalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 118, in test_function_entry_return self.run_case("call_stack") File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 115, in run_case self.assertEqual(actual_output, expected_output) AssertionError: 'func[85 chars]ion__return:call_stack.py:function_1:2\nfuncti[479 chars]t:28' != 'func[85 chars]ion__entry:call_stack.py:function_3:9\nfunctio[659 chars]t:28' function__entry:call_stack.py:start:23 function__entry:call_stack.py:function_1:1 + function__entry:call_stack.py:function_3:9 + function__return:call_stack.py:function_3:10 function__return:call_stack.py:function_1:2 function__entry:call_stack.py:function_2:5 function__entry:call_stack.py:function_1:1 + function__entry:call_stack.py:function_3:9 + function__return:call_stack.py:function_3:10 function__return:call_stack.py:function_1:2 function__return:call_stack.py:function_2:6 function__entry:call_stack.py:function_3:9 function__return:call_stack.py:function_3:10 function__entry:call_stack.py:function_4:13 function__return:call_stack.py:function_4:14 function__entry:call_stack.py:function_5:18 function__return:call_stack.py:function_5:21 function__return:call_stack.py:start:28 ====================================================================== FAIL: test_line (test.test_dtrace.SystemTapNormalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 32, in normalize_trace_output result.sort(key=lambda row: int(row[0])) File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 32, in result.sort(key=lambda row: int(row[0])) ValueError: invalid literal for int() with base 10: "Input file '/tmp/pythonbuilder/Python-3.8.6/build/test_python_21353/dtracedata/line.stp' is missing." During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 149, in test_line self.run_case("line") File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 113, in run_case actual_output, expected_output = self.backend.run_case( File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 47, in run_case actual_output = normalize_trace_output(self.trace_python( File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 36, in normalize_trace_output raise AssertionError( AssertionError: tracer produced unparseable output: Input file '/tmp/pythonbuilder/Python-3.8.6/build/test_python_21353/dtracedata/line.stp' is missing. Pass 1: parse failed. [man error::pass1] ====================================================================== FAIL: test_function_entry_return (test.test_dtrace.SystemTapOptimizedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 118, in test_function_entry_return self.run_case("call_stack") File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 115, in run_case self.assertEqual(actual_output, expected_output) AssertionError: 'func[85 chars]ion__return:call_stack.py:function_1:2\nfuncti[479 chars]t:28' != 'func[85 chars]ion__entry:call_stack.py:function_3:9\nfunctio[659 chars]t:28' function__entry:call_stack.py:start:23 function__entry:call_stack.py:function_1:1 + function__entry:call_stack.py:function_3:9 + function__return:call_stack.py:function_3:10 function__return:call_stack.py:function_1:2 function__entry:call_stack.py:function_2:5 function__entry:call_stack.py:function_1:1 + function__entry:call_stack.py:function_3:9 + function__return:call_stack.py:function_3:10 function__return:call_stack.py:function_1:2 function__return:call_stack.py:function_2:6 function__entry:call_stack.py:function_3:9 function__return:call_stack.py:function_3:10 function__entry:call_stack.py:function_4:13 function__return:call_stack.py:function_4:14 function__entry:call_stack.py:function_5:18 function__return:call_stack.py:function_5:21 function__return:call_stack.py:start:28 ====================================================================== FAIL: test_line (test.test_dtrace.SystemTapOptimizedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 32, in normalize_trace_output result.sort(key=lambda row: int(row[0])) File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 32, in result.sort(key=lambda row: int(row[0])) ValueError: invalid literal for int() with base 10: "Input file '/tmp/pythonbuilder/Python-3.8.6/build/test_python_21353/dtracedata/line.stp' is missing." During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 149, in test_line self.run_case("line") File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 113, in run_case actual_output, expected_output = self.backend.run_case( File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 47, in run_case actual_output = normalize_trace_output(self.trace_python( File "/tmp/pythonbuilder/Python-3.8.6/Lib/test/test_dtrace.py", line 36, in normalize_trace_output raise AssertionError( AssertionError: tracer produced unparseable output: Input file '/tmp/pythonbuilder/Python-3.8.6/build/test_python_21353/dtracedata/line.stp' is missing. Pass 1: parse failed. [man error::pass1] ---------------------------------------------------------------------- Ran 8 tests in 8.058s FAILED (failures=4, skipped=2) test test_dtrace failed test_dtrace failed == Tests result: FAILURE == 1 test failed: test_dtrace Total duration: 8.2 sec Tests result: FAILURE [root@localhost Python-3.8.6]# stap -g Lib/test/dtracedata/assert_usable.stp probe: success [root@localhost Python-3.8.6]#