Public bug reported:
Perf crashes when attempting to add probes at certain locations. I
submitted a bug via apport, but I have additional details to share (and
I couldn't figure out how to find that report).
- I was unable to reproduce on the upstream kernel (torvalds/master).
- perf probe crashed with the following command:
holmanb@arc:~/workspace/Stockfish/src > sudo perf probe -x ./stockfish --add
stage_7=next_move:77
zsh: segmentation fault sudo perf probe -x ./stockfish --add
stage_7=next_move:77
listing lines that a probe can be attached to (see following) showed that perf
probe thinks this line _could_ be added
perf probe -L next_move -x ./stockfish
....
case BAD_CAPTURE:
77 return select<Next>([](){ return true; });
Using torvalds/master, (and stockfish built with the same compiler/arguments),
this issue did not occur, and `perf probe -x ./stockfish -L next_move` did not
list that address as one available to attach a probe to.
Upstream:
root@arc-kvm:~/Stockfish/src# perf probe -x ./stockfish --add
next_move=next_move:77
This line is sharing the address with other lines.
Please try to probe at next_move:73 instead.
Error: Failed to add events.
This symptom appeared was reproducible when attempting to add a probe at
other lines that attempted to return the output of a template function
with a lambda argument".
holmanb@arc:~ > lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10
holmanb@arc:~ > apt-cache policy linux-tools-common
linux-tools-common:
Installed: 5.13.0-19.19
Candidate: 5.13.0-19.19
Version table:
*** 5.13.0-19.19 500
500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu impish/main i386 Packages
100 /var/lib/dpkg/status
What I expected to happen: Not a segfault.
What happened: segfault
** Affects: linux (Ubuntu)
Importance: Undecided
Status: Incomplete
** Tags: impish
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1948542
Title:
Impish: perf probe crashes
Status in linux package in Ubuntu:
Incomplete
Bug description:
Perf crashes when attempting to add probes at certain locations. I
submitted a bug via apport, but I have additional details to share
(and I couldn't figure out how to find that report).
- I was unable to reproduce on the upstream kernel (torvalds/master).
- perf probe crashed with the following command:
holmanb@arc:~/workspace/Stockfish/src > sudo perf probe -x ./stockfish --add
stage_7=next_move:77
zsh: segmentation fault sudo perf probe -x ./stockfish --add
stage_7=next_move:77
listing lines that a probe can be attached to (see following) showed that
perf probe thinks this line _could_ be added
perf probe -L next_move -x ./stockfish
....
case BAD_CAPTURE:
77 return select<Next>([](){ return true; });
Using torvalds/master, (and stockfish built with the same
compiler/arguments), this issue did not occur, and `perf probe -x ./stockfish
-L next_move` did not list that address as one available to attach a probe to.
Upstream:
root@arc-kvm:~/Stockfish/src# perf probe -x ./stockfish --add
next_move=next_move:77
This line is sharing the address with other lines.
Please try to probe at next_move:73 instead.
Error: Failed to add events.
This symptom appeared was reproducible when attempting to add a probe
at other lines that attempted to return the output of a template
function with a lambda argument".
holmanb@arc:~ > lsb_release -rd
Description: Ubuntu 21.10
Release: 21.10
holmanb@arc:~ > apt-cache policy linux-tools-common
linux-tools-common:
Installed: 5.13.0-19.19
Candidate: 5.13.0-19.19
Version table:
*** 5.13.0-19.19 500
500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu impish/main i386 Packages
100 /var/lib/dpkg/status
What I expected to happen: Not a segfault.
What happened: segfault
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1948542/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp