Bug 19221 - [ANCK-6.6-3][x86_64][V74物理机]systemd-test 测试套,test-boot-timestamps用例执行产生coredump
Summary: [ANCK-6.6-3][x86_64][V74物理机]systemd-test 测试套,test-boot-timestamps用例执行产生coredump
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yuki_syq
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-06 14:41 UTC by yunhe123
Modified: 2025-03-21 16:29 UTC (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunhe123 alibaba_cloud_group 2025-03-06 14:41:03 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 yunhe123 alibaba_cloud_group 2025-03-06 14:58:05 UTC
提单时误点击提交了bug单,补充下提单信息:


[缺陷描述]:
systemd-test 测试套,test-boot-timestamps用例执行产生coredump
日志如下:
# ./build/test-boot-timestamps
Failed to read ACPI FPDT: Invalid argument
Assertion 'p >= 0' failed at ../src/test/test-boot-timestamps.c:88, function main(). Aborting.
Aborted (core dumped)


coredump解析如下:
gdb ./test-boot-timestamps core-test-boot-times-1221952
GNU gdb (GDB) Alibaba Cloud Linux 9.2-7.2.0.5.al8
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./test-boot-timestamps...
[New LWP 1221952]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./test-boot-timestamps'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f05bc478005 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007f05bc478005 in raise () from /lib64/libc.so.6
#1  0x00007f05bc44a894 in abort () from /lib64/libc.so.6
#2  0x00007f05bc7027dc in log_assert_failed_realm (realm=LOG_REALM_SYSTEMD, text=0x55ca79f95174 "p >= 0",
    file=0x55ca79f95030 "../src/test/test-boot-timestamps.c", line=88, func=0x55ca79f951c5 <__PRETTY_FUNCTION__.0> "main") at ../src/basic/log.c:832
#3  0x000055ca79f94b54 in main (argc=1, argv=0x7ffd1bb59858) at ../src/test/test-boot-timestamps.c:88
(gdb)



[重现概率]:
必现

[重现环境]:
环境信息:V74
100.88.31.37

#uname -r
6.6.71-3_rc1.al8.x86_64

#free -h
              total        used        free      shared  buff/cache   available
Mem:          502Gi       5.8Gi       497Gi       5.0Mi       3.2Gi       497Gi
Swap:         2.0Gi          0B       2.0Gi


#lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Intel(R) Corporation
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Platinum 8331C CPU @ 2.50GHz
BIOS Model name:     Intel(R) Xeon(R) Platinum 8331C CPU @ 2.50GHz
Stepping:            6
CPU MHz:             800.000
CPU max MHz:         3500.0000
CPU min MHz:         800.0000
BogoMIPS:            5000.00
Virtualization:      VT-x
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            36864K
NUMA node0 CPU(s):   0-95
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq rdpid fsrm md_clear pconfig flush_l1d arch_capabilities



[重现步骤]:
git clone  http://gitlab-sp.alibaba-inc.com/alinux/systemd.git --branch a3.2104
cd systemd
yum-builddep -D "_topdir $(pwd)" -D "_sourcedir $(pwd)" -D "_builddir $(pwd)" -y systemd.spec
rpmbuild -D "_topdir $(pwd)" -D "_sourcedir $(pwd)" -D "_builddir $(pwd)" -bp systemd.spec
cd systemd-239
meson build
ninja -C build

3、执行用例
cd build
./test-boot-timestamps



[期望结果]:
用例执行PASS

[实际结果]:
用例执行Fail
Comment 2 yunhe123 alibaba_cloud_group 2025-03-10 14:29:16 UTC
6.6.71-3_rc2.al8.x86_64内核上也是同样的失败


[root@x31l09068.sqa.na131 /var/tmp/tone/run/systemd-test/systemd-239]
#uname -r
6.6.71-3_rc2.al8.x86_64

[root@x31l09068.sqa.na131 /var/tmp/tone/run/systemd-test/systemd-239]
#rpm -qa |grep systemd
systemd-udev-239-82.0.3.4.al8.2.x86_64
systemd-libs-239-82.0.3.4.al8.2.x86_64
systemd-pam-239-82.0.3.4.al8.2.x86_64
systemd-239-82.0.3.4.al8.2.x86_64
Comment 3 yuki_syq alibaba_cloud_group 2025-03-19 20:44:52 UTC
看代码是由于acpi FPDT表相关服务退出时间超出预期(src/shared/acpi-fpdt.c第138行):
if (brec.exit_services_exit > NSEC_PER_HOUR)
                return -EINVAL;