53 Star 149 Fork 139

openEuler / RISC-V

 / 详情

smoke-basic-os 测试套 oe_test_perf_top_01 用例在 openEuler 2309 RISC-V 环境测试失败

待办的
任务
创建于  
2024-01-04 15:39

环境信息

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 :

输入图片说明

评论 (2)

桜風の狐狐 创建了任务

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

openeuler-ci-bot 添加了
 
sig/sig-RISC-V
标签
桜風の狐狐 修改了描述
桜風の狐狐 修改了标题
桜風の狐狐 修改了描述

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) 
桜風の狐狐 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 5229304 kevinmx 1679988537 8240539 weilinfox 1672584914
Shell
1
https://gitee.com/openeuler/RISC-V.git
git@gitee.com:openeuler/RISC-V.git
openeuler
RISC-V
RISC-V

搜索帮助