java: EOVERFLOW when creating tmpdir in process context
- Dominant language
- Python
- Stars
- 826
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
We get EOVERFLOW when trying to create the temporary directory in process context:
```
Traceback (most recent call last):
File "gprofiler/utils/fs.py", line 34, in is_rw_exec_dir
File "os.py", line 220, in makedirs
OSError: [Errno 75] Value too large for defined data type: '/proc/118563/root/tmp/gprofiler_tmp'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gprofiler/profilers/profiler_base.py", line 119, in _wait_for_profiles
File "concurrent/futures/_base.py", line 425, in result
File "concurrent/futures/_base.py", line 384, in __get_result
File "concurrent/futures/thread.py", line 56, in run
File "gprofiler/profilers/java.py", line 905, in _profile_process
File "gprofiler/profilers/java.py", line 327, in __init__
File "gprofiler/profilers/java.py", line 360, in _find_rw_exec_dir
File "gprofiler/utils/fs.py", line 41, in is_rw_exec_dir
File "gprofiler/utils/__init__.py", line 346, in remove_path
File "pathlib.py", line 1284, in unlink
File "pathlib.py", line 387, in wrapped
FileNotFoundError: [Errno 2] No such file or directory: '/proc/118563/root/tmp/gprofiler_tmp/t-246588c870cf518606ca.sh'
```
The 2nd error is our code trying to unlink the temporary script before it was created, that's an obvious fix.
The first - I am not sure. Might be related to https://bugzilla.kernel.org/show_bug.cgi?id=183461 ?
This happened on kernel 5.14.0.
Contributor guide
Assessment
This issue has not been assessed yet.