intel / intel/gprofiler

python: pyperf: get_stack_offset randomly fails

Open
#523 2 comments 0 reactions 0 assignees View on GitHub
bug runtime/python tests
Dominant language
Python
Stars
826
Forks
79
PR merge metrics
No merged PRs in 30d

Description

[Flaky test failures](https://github.com/Granulate/gprofiler/issues/462) stemming from `get_stack_offset` occasionally failing:
```
[2022-10-06 12:22:46,079] DEBUG: gprofiler.utils: (['/tmp/_MEIg4dLPw/gprofiler/resources/python/pyperf/get_stack_offset']) stderr: 'stack not found, searched for 16384 bytes into task_struct\n'
[2022-10-06 12:22:46,079] DEBUG: gprofiler.profilers.python: eBPF profiler error: Command '['/tmp/_MEIg4dLPw/gprofiler/resources/python/pyperf/get_stack_offset']' returned non-zero exit status 1.
stdout: b''
stderr: b'stack not found, searched for 16384 bytes into task_struct\n'
```
(excerpt from [this failure](https://github.com/Granulate/gprofiler/actions/runs/3196892055/jobs/5219800478)).

This might be only some issue in the test, but might also be a real problem occuring in the wild.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.