intel / intel/gprofiler

java: ETXTBUSY for the temporary script to check executability of directory

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

Description

```
Traceback (most recent call last):
File "gprofiler/profilers/profiler_base.py", line 132, in _wait_for_profiles
File "concurrent/futures/_base.py", line 451, in result
File "concurrent/futures/_base.py", line 403, in __get_result
File "concurrent/futures/thread.py", line 58, in run
File "gprofiler/profilers/java.py", line 949, in _profile_process
File "gprofiler/profilers/java.py", line 357, in __init__
File "gprofiler/profilers/java.py", line 389, in _find_rw_exec_dir
File "gprofiler/utils/fs.py", line 47, in is_rw_exec_dir
File "gprofiler/utils/__init__.py", line 234, in run_process
File "gprofiler/utils/__init__.py", line 149, in start_process
File "subprocess.py", line 971, in __init__
File "subprocess.py", line 1847, in _execute_child
OSError: [Errno 26] Text file busy: '/proc/2082/root/tmp/gprofiler_tmp/t-945a25f5819bd0e1afa8.sh'
```

This is racy - happens on multiple deployments that I saw, but not consistent.

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.