Error: invalid utf-8 sequence
I'm running flamegraph (installed with cargo install flamegraph) in a debian:trixie-slim Docker container, and running into this issue:
./flamegraph --pid 33
[ perf record: Woken up 7611 times to write data ]
[ perf record: Captured and wrote 1796.690 MB perf.data (29339 samples) ]
Running perf script [0s]:
Error: invalid utf-8 sequence of 1 bytes from index 122
Installed perf with apt-get install linux-perf
What does flamegraph -V say?
I have the same error with Debian 13 and perf installed from apt. Flamegraph 0.6.10 from cargo install.
rustc 1.93.0-nightly (f15a7f385 2025-11-04)
It works on most of my programs, except the one that uses libssl (release build with -g).
Flamegraph and the profiled programs (including libssl) were compiled on another computer with the same Debian config but a way more recent CPU. The error doesn't happen on this other machine. I didn't compile for native target and the program runs fine so I guess it's not the problem.