openEuler-23.09-V1-riscv64 preview
smoke-basic-os 测试套 oe_test_perf_top_01 用例在 openEuler 2309 RISC-V 测试失败,日志。
已知在 QEMU , qemu-system-riscv64 -machine virt
下, perf top
不可用;但是在荔枝派 4A RevyOS 下, perf top
可用,测试正常。
oErv QEMU:
x86_64 QEMU:
RevyOS 荔枝派 4A :
Hi weilinfox, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-RISC-V, and any of the maintainers: @liliang_euler , @wuwei_plct , @whoisxxx , @liqingqing_1229 , @wangjunqiang , @DongDu , @wangyangdahai , @laokz , @phoebe , @Jingwiw , @jchzhou , @misaka00251 , @yunxiang
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Reproduced on: openEuler RISC-V 23.09 Preview for LPi4A (refreshed, 2023-Dec-25 12:51)
[openeuler@openeuler-riscv64 ~]$ perf top
Segmentation fault (core dumped)
dmesg:
[ +4.804286] perf[4247]: unhandled signal 11 code 0x1 at 0x0000000000000000 in libc.so.6[3fda804000+18b000]
[ +0.009747] CPU: 3 PID: 4247 Comm: perf Not tainted 5.10.113 #1
[ +0.005952] epc: 0000003fda89c640 ra : 0000002ae9574e0c sp : 0000003fff837ff0
[ +0.007157] gp : 0000002ae96d72a0 tp : 0000003fd9c26c20 t0 : 0000000000000000
[ +0.007241] t1 : 0000002ae939f54c t2 : 0000002ae9607c4e s0 : 0000003fff838030
[ +0.007236] s1 : 0000000000000000 a0 : 0000000000000000 a1 : c6bcb3af62a110bf
[ +0.007268] a2 : 0000002ae971c0f0 a3 : 0000000002ae9736 a4 : 0000000000000000
[ +0.007252] a5 : 0000000000000000 a6 : 0000000002ae9736 a7 : 0000000000000000
[ +0.007241] s2 : 0000000000000080 s3 : 0000003fff838038 s4 : 0000003fdb6d7d60
[ +0.007235] s5 : 0000002ae96a72a0 s6 : 0000002ae9712d00 s7 : 0000002ae9713648
[ +0.007233] s8 : 0000002ae9713650 s9 : 0000000000000004 s10: 0000002ae95f6320
[ +0.007234] s11: 0000000000000002 t3 : 0000003fda89c63c t4 : 0000002ae9735590
[ +0.007236] t5 : 0000000000000061 t6 : 0000000000000000
[ +0.005325] status: 8000000201804020 badaddr: 0000000000000000 cause: 000000000000000d
[openeuler@openeuler-riscv64 ~]$ coredumpctl debug 4261
PID: 4261 (perf)
UID: 1000 (openeuler)
GID: 1000 (openeuler)
Signal: 11 (SEGV)
Timestamp: Thu 2024-01-04 15:55:26 CST (13min ago)
Command Line: perf top
Executable: /usr/bin/perf
Control Group: /user.slice/user-1000.slice/session-4.scope
Unit: session-4.scope
Slice: user-1000.slice
Session: 4
Owner UID: 1000 (openeuler)
Boot ID: cd2a8f4a64ce46c492d9c06ef69d2f93
Machine ID: ebca41a39bdf41f9bdefda87190755b7
Hostname: openeuler-riscv64
Storage: /var/lib/systemd/coredump/core.perf.1000.cd2a8f4a64ce46c492d9c06ef69d2f93.4261.1704354926000000.lz4 (present)
Size on Disk: 761.1K
Message: Process 4261 (perf) of user 1000 dumped core.
GNU gdb (GDB) openEuler 12.1-7.oe2309
Copyright (C) 2022 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 "riscv64-openEuler-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 /usr/bin/perf...
(No debugging symbols found in /usr/bin/perf)
[New LWP 4261]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Core was generated by `perf top'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000003ff3910640 in strlen () from /usr/lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install perf-6.4.0-10.1.0.20.oe2309.riscv64
(gdb) bt
#0 0x0000003ff3910640 in strlen () from /usr/lib64/libc.so.6
#1 0x0000002ae02d7e0c in get_cpuid ()
#2 0x0000002ae01cfa2c in ?? ()
#3 0x0000002ae0127970 in ?? ()
#4 0x0000002ae01bd660 in ?? ()
#5 0x0000002ae0103370 in main ()
(gdb)
[openeuler@openeuler-riscv64 ~]$ gdb /usr/bin/perf
GNU gdb (GDB) openEuler 12.1-7.oe2309
Copyright (C) 2022 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 "riscv64-openEuler-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 /usr/bin/perf...
Reading symbols from /usr/lib/debug//usr/bin/perf-6.4.0-10.1.0.20.oe2309.riscv64.debug...
(gdb) run top
Starting program: /usr/bin/perf top
Missing separate debuginfos, use: dnf debuginfo-install perf-6.4.0-10.1.0.20.oe2309.riscv64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000003ff71c2640 in strlen () from /usr/lib64/libc.so.6
(gdb) bt
#0 0x0000003ff71c2640 in strlen () from /usr/lib64/libc.so.6
#1 0x0000002aaacbde0c in get_cpuid (buffer=buffer@entry=0x3fffff8fe8 "H\306\345\252*", sz=sz@entry=128) at arch/riscv/util/header.c:89
#2 0x0000002aaabb5a2c in perf_env__read_cpuid (env=0x2aaae4be98 <perf_env>) at util/env.c:362
#3 0x0000002aaab0d970 in cmd_top (argc=<optimized out>, argv=0x3ffffff3e0) at builtin-top.c:1614
#4 0x0000002aaaba3660 in run_builtin (p=p@entry=0x2aaadfdd28 <commands+384>, argc=argc@entry=1, argv=argv@entry=0x3ffffff3e0) at perf.c:323
#5 0x0000002aaaae9370 in handle_internal_command (argv=0x3ffffff3e0, argc=1) at perf.c:377
#6 run_argv (argv=<synthetic pointer>, argcp=<synthetic pointer>) at perf.c:421
#7 main (argc=1, argv=0x3ffffff3e0) at perf.c:537
(gdb)
登录 后才可以发表评论