You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed the following errors from eBPF profiler when profiling Python processes:
ts=2024-10-25T12:27:37.474994587Z level=error msg="pyperf get python process data failed" component_path=/ component_id=pyroscope.ebpf.default err="GetPythonProcInfo error /proc/342561/maps: strconv.ParseInt: parsing \"ffffa6f1ce560000\": value out of range" pid=342561 target="{__name__=\"process_cpu\", __process_pid__=\"342561\", service_name=\"390048\"}"
Clearly the hex string is being converted to int type here which exceeds the bounds. Shouldn't it be converted to unit64 type to ensure we capture offsets for bigger files?
To Reproduce
Steps to reproduce the behavior:
We noticed this using Grafana Alloy 1.9.1. I think the processes need to map very huge files to reproduce this behaviour.
Expected behavior
File offsets converted correctly to int using a bit size big enough to accommodate the offset.
Environment
Bare-metal
Grafana Alloy 1.9.1 deployed using pre-compiled binary downloaded from repo
Additional Context
We are testing this on a HPC platform that has huge file systems and probably that is why we could trigger this bug. If developers agree that it needs to be a uint64, would be happy to put up a PR.
The text was updated successfully, but these errors were encountered:
Describe the bug
We noticed the following errors from eBPF profiler when profiling Python processes:
Clearly the hex string is being converted to
int
type here which exceeds the bounds. Shouldn't it be converted tounit64
type to ensure we capture offsets for bigger files?To Reproduce
Steps to reproduce the behavior:
We noticed this using Grafana Alloy 1.9.1. I think the processes need to map very huge files to reproduce this behaviour.
Expected behavior
File offsets converted correctly to int using a bit size big enough to accommodate the offset.
Environment
Additional Context
We are testing this on a HPC platform that has huge file systems and probably that is why we could trigger this bug. If developers agree that it needs to be a
uint64
, would be happy to put up a PR.The text was updated successfully, but these errors were encountered: