Public bug reported:
A segmentation fault occurs when running perf annotate on an amd64 host
to analyze a perf.data file that was captured on a riscv64 board.
Steps to reproduce:
1. Capture the data on a riscv64 board:
perf record -e cpu-clock -a -g -F 99 -- sleep 5
2. Run perf annotate on the amd64 host to reproduce the crash:
perf annotate -i perf.data \
--vmlinux ./vmlinux \
--objdump /usr/bin/riscv64-linux-gnu-objdump \
--symbol tcp_gro_receive \
--percent-type local-period
The referenced perf.data and vmlinux files have been uploaded as
attachments to this report.
Backtrace:
perf: Segmentation fault
-------- backtrace --------
#0 0x5805d96fb561 in ui__signal_backtrace setup.c:0
#1 0x709ce1e45cb0 in __restore_rt libc_sigaction.c:0
#2 0x5805d9714740 in arch__find ??:0
#3 0x5805d9704e25 in thread__get_arch ??:0
#4 0x5805d9704f02 in symbol__annotate ??:0
#5 0x5805d9705c2d in symbol__annotate2 ??:0
#6 0x5805d96eb41e in __hist_entry__tui_annotate ??:0
#7 0x5805d94df4c0 in hists__find_annotations builtin-annotate.c:0
#8 0x5805d94e13c2 in cmd_annotate ??:0
#9 0x5805d9575da4 in handle_internal_command perf.c:0
#10 0x5805d94de939 in main ??:0
#11 0x709ce1e2a601 in __libc_start_call_main libc_start_call_main.h:83
#12 0x709ce1e2a718 in __libc_start_main@@GLIBC_2.34 libc-start.c:128
#13 0x5805d94deef5 in _start ??:0
Package Details:
Package: linux-perf
Version: 7.0.0-38.38
Priority: optional
Section: devel
Source: linux
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 36.8 MB
Depends: libc6 (>= 2.39), libdebuginfod1t64 (>= 0.180), libdw1t64 (>= 0.161),
libelf1t64 (>= 0.144), libgcc-s1 (>= 4.2), liblzma5 (>= 5.1.1alpha+20120614),
libnuma1 (>= 2.0.11), libpython3.14 (>= 3.14.1), libslang2 (>= 2.2.4),
libstdc++6 (>= 4.1.1), libtraceevent1 (>= 1:1.3.0), libzstd1 (>= 1.5.5), zlib1g
(>= 1:1.2.3.4)
Breaks: linux-tools-common (<< 6.14.0-8~)
Replaces: linux-tools-common (<< 6.14.0-8~)
Download-Size: 7,119 kB
APT-Manual-Installed: no
APT-Sources: https://mirrors.ustc.edu.cn/ubuntu resolute-updates/main amd64
Packages
Description: Performance analysis tools for Linux
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "vmlinux"
https://bugs.launchpad.net/bugs/2170373/+attachment/6007650/+files/vmlinux
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2170373
Title:
Segmentation fault when running perf annotate on riscv64 perf data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2170373/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs