ITADN

centos 8 aarch64: The 1.9.0 version make test failed

#349Closeddabao1990 创建于 2025-09-25
D
dabao1990commented
``` uname -a Linux localhost 4.18.0-193.el8.aarch64 #1 SMP Fri May 8 11:05:12 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux [root@localhost spack-src]#go version go version go1.23.1 linux/arm64 [root@localhost spack-src]#make test fatal: not a git repository: '/home/stage/root/spack-stage-earlyoom-1.9.0-n2sfnbpcnzjm3nnojc54hraxk6xcupbi/spack-src/.git' Makefile:6: Could not get version from git, setting to "(unknown version)" cppcheck -q . || echo "skipping optional cppcheck" /bin/sh: cppcheck: command not found skipping optional cppcheck go test -v # github.com/rfjakob/earlyoom [github.com/rfjakob/earlyoom.test] kill.c:64:2: warning: #warning SYS_pidfd_open is not defined. Assuming 434. [-Wcpp] #warning SYS_pidfd_open is not defined. Assuming 434. ^~~~~~~ kill.c:75:2: warning: #warning SYS_process_mrelease is not defined. Assuming 448. [-Wcpp] #warning SYS_process_mrelease is not defined. Assuming 448. ^~~~~~~ === RUN TestCli === RUN TestCli/-h === RUN TestCli/--help === RUN TestCli/#00 === RUN TestCli/-p === RUN TestCli/-v === RUN TestCli/-d === RUN TestCli/-m_1 === RUN TestCli/-m_0 === RUN TestCli/-m_-10 === RUN TestCli/-m_100 === RUN TestCli/-s_2 === RUN TestCli/-s_100 === RUN TestCli/-s_101 === RUN TestCli/-s_0 === RUN TestCli/-s_-10 === RUN TestCli/-M_5353865 === RUN TestCli/-M_9999999999999999 === RUN TestCli/-r=0 === RUN TestCli/-r_0.1 === RUN TestCli/--avoid_MyProcess1 === RUN TestCli/--prefer_MyProcess2 === RUN TestCli/--ignore-root-user === RUN TestCli/--sort-by-rss === RUN TestCli/-i === RUN TestCli/xyz === RUN TestCli/-i_1 === RUN TestCli/-m_2,1 === RUN TestCli/-m_1,2 === RUN TestCli/-m_1,-1 === RUN TestCli/-m_1000,-1000 === RUN TestCli/-s_2,1 === RUN TestCli/-s_1,2 === RUN TestCli/-m_5,0 === RUN TestCli/-m_5,9 === RUN TestCli/-M_-1 === RUN TestCli/-M_2147483648 === RUN TestCli/-M_4294967296 === RUN TestCli/-m_-1 === RUN TestCli/-m_2147483648 === RUN TestCli/-m_4294967296 === RUN TestCli/-S_-1 === RUN TestCli/-S_2147483648 === RUN TestCli/-S_4294967296 === RUN TestCli/-s_-1 === RUN TestCli/-s_2147483648 === RUN TestCli/-s_4294967296 === RUN TestCli/-m_3.14 === RUN TestCli/-m_7,3.14 === RUN TestCli/-s_12.34 === RUN TestCli/-m_10_-M_5353865 === RUN TestCli/-S_83884 === RUN TestCli/-s_10_-S_83884 --- PASS: TestCli (0.58s) --- PASS: TestCli/-h (0.00s) --- PASS: TestCli/--help (0.00s) --- PASS: TestCli/#00 (0.02s) --- PASS: TestCli/-p (0.02s) --- PASS: TestCli/-v (0.00s) --- PASS: TestCli/-d (0.03s) --- PASS: TestCli/-m_1 (0.02s) --- PASS: TestCli/-m_0 (0.00s) --- PASS: TestCli/-m_-10 (0.00s) --- PASS: TestCli/-m_100 (0.00s) --- PASS: TestCli/-s_2 (0.02s) --- PASS: TestCli/-s_100 (0.02s) --- PASS: TestCli/-s_101 (0.00s) --- PASS: TestCli/-s_0 (0.00s) --- PASS: TestCli/-s_-10 (0.00s) --- PASS: TestCli/-M_5353865 (0.02s) --- PASS: TestCli/-M_9999999999999999 (0.00s) --- PASS: TestCli/-r=0 (0.10s) --- PASS: TestCli/-r_0.1 (0.02s) --- PASS: TestCli/--avoid_MyProcess1 (0.02s) --- PASS: TestCli/--prefer_MyProcess2 (0.02s) --- PASS: TestCli/--ignore-root-user (0.01s) --- PASS: TestCli/--sort-by-rss (0.02s) --- PASS: TestCli/-i (0.02s) --- PASS: TestCli/xyz (0.00s) --- PASS: TestCli/-i_1 (0.00s) --- PASS: TestCli/-m_2,1 (0.02s) --- PASS: TestCli/-m_1,2 (0.02s) --- PASS: TestCli/-m_1,-1 (0.00s) --- PASS: TestCli/-m_1000,-1000 (0.00s) --- PASS: TestCli/-s_2,1 (0.02s) --- PASS: TestCli/-s_1,2 (0.02s) --- PASS: TestCli/-m_5,0 (0.02s) --- PASS: TestCli/-m_5,9 (0.02s) --- PASS: TestCli/-M_-1 (0.00s) --- PASS: TestCli/-M_2147483648 (0.00s) --- PASS: TestCli/-M_4294967296 (0.00s) --- PASS: TestCli/-m_-1 (0.00s) --- PASS: TestCli/-m_2147483648 (0.00s) --- PASS: TestCli/-m_4294967296 (0.00s) --- PASS: TestCli/-S_-1 (0.00s) --- PASS: TestCli/-S_2147483648 (0.00s) --- PASS: TestCli/-S_4294967296 (0.00s) --- PASS: TestCli/-s_-1 (0.00s) --- PASS: TestCli/-s_2147483648 (0.00s) --- PASS: TestCli/-s_4294967296 (0.00s) --- PASS: TestCli/-m_3.14 (0.02s) --- PASS: TestCli/-m_7,3.14 (0.02s) --- PASS: TestCli/-s_12.34 (0.02s) --- PASS: TestCli/-m_10_-M_5353865 (0.02s) --- PASS: TestCli/-S_83884 (0.02s) --- PASS: TestCli/-s_10_-S_83884 (0.02s) === RUN TestRss testsuite_cli_test.go:213: earlyoom RSS: 17 kiB --- PASS: TestRss (0.02s) === RUN TestParseTuple warning: SIGTERM value 5.00 is below SIGKILL value 9.00, setting SIGTERM = SIGKILL = 9.00 warning: SIGTERM value 0.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00 warning: SIGTERM value 4.00 is below SIGKILL value 5.00, setting SIGTERM = SIGKILL = 5.00 --- PASS: TestParseTuple (0.00s) === RUN TestIsAlive is_alive: state=S num_threads=9 is_alive: state=S num_threads=1 --- PASS: TestIsAlive (0.00s) === RUN TestIsAliveMock is_alive: state=R num_threads=1 is_alive: state=Z num_threads=1 is_alive: state=R num_threads=1 is_alive: state=R num_threads=1 is_alive: state=R num_threads=1 is_alive: state=R num_threads=1 is_alive: state=R num_threads=1 is_alive: state=R num_threads=1 is_alive: state=Z num_threads=2 --- PASS: TestIsAliveMock (0.00s) === RUN Test_fix_truncated_utf8 --- PASS: Test_fix_truncated_utf8 (0.00s) === RUN Test_get_oom_score --- PASS: Test_get_oom_score (0.00s) === RUN Test_get_comm testsuite_unit_test.go:173: process name "earlyoom.test" --- PASS: Test_get_comm (0.00s) === RUN Test_get_cmdline testsuite_unit_test.go:193: process cmdline "/tmp/go-build450153520/b001/earlyoom.test -test.paniconexit0 -test.timeout=10m0s -test.v=true" --- PASS: Test_get_cmdline (0.00s) === RUN Test_parse_proc_pid_stat_buf --- PASS: Test_parse_proc_pid_stat_buf (0.00s) === RUN Test_parse_proc_pid_stat_1 --- PASS: Test_parse_proc_pid_stat_1 (0.00s) === RUN Test_parse_proc_pid_stat_Mock --- PASS: Test_parse_proc_pid_stat_Mock (0.00s) === RUN Test_is_larger testsuite_unit_test.go:312: procdir_path="/tmp/Test_is_larger3987934686" testsuite_unit_test.go:293: j1/pid101 larger than i0/pid100? want=true have=false --- FAIL: Test_is_larger (0.00s) === RUN Test_is_larger_by_rss testsuite_unit_test.go:331: procdir_path="/tmp/Test_is_larger_by_rss3226937880" is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j1/pid101 larger than i0/pid100? want=true have=false is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j3/pid103 larger than i0/pid100? want=true have=false is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j3/pid103 larger than i1/pid101? want=true have=false is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j3/pid103 larger than i2/pid102? want=true have=false is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j0/pid100 larger than i3/pid103? want=false have=true is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j1/pid101 larger than i3/pid103? want=false have=true is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j2/pid102 larger than i3/pid103? want=false have=true is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. testsuite_unit_test.go:293: j5/pid105 larger than i4/pid104? want=true have=false is_larger: pid 100 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 101 "": rss=0 but oom_score=100. Zombie main thread? Using oom_score for this process. is_larger: pid 102 "": rss=0 but oom_score=101. Zombie main thread? Using oom_score for this process. is_larger: pid 103 "": rss=0 but oom_score=99. Zombie main thread? Using oom_score for this process. is_larger: pid 104 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. is_larger: pid 105 "": rss=0 but oom_score=102. Zombie main thread? Using oom_score for this process. --- FAIL: Test_is_larger_by_rss (0.00s) FAIL exit status 1 FAIL github.com/rfjakob/earlyoom 0.618s make: *** [Makefile:95: test] Error 1 ```
关闭于 2025-11-24 3 条评论