janestreet / magic-trace

magic-trace collects and displays high-resolution traces of what a process is doing
https://magic-trace.org
MIT License
4.58k stars 87 forks source link

Failed to start with error `unable to interpret perf version string` #273

Closed theidexisted closed 1 year ago

theidexisted commented 1 year ago

Thanks for helping us make magic-trace better!

Please consider answering any subset of the following questions, based on what you think is most relevant to your report:

Please also consider scanning the existing set of issues for other people reporting the same thing, and checking out the FAQ just in case you're running into a common pitfall.

Xyene commented 1 year ago

Thanks for reporting this. It does look like something is borked with your perf package, and it's not obvious what magic-trace could reasonably do here. We need to know what version of perf we're running with, in order to work around certain perf bugs, and conditionally enable some features.

On the perf side, it looks like something went wrong during compilation, somewhere upstream of https://github.com/torvalds/linux/blob/da8e7da11e4ba758caf4c149cc8d8cd555aefe5f/tools/perf/util/PERF-VERSION-GEN.

I would recommend reporting this upstream. I believe the right place to do so is https://launchpad.net/ubuntu/+source/linux/+bugs.

You can also try installing a different version of perf.