Failed to process trace
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- linux, python
- Domain
- cli, operating-systems, tooling
Research direction
Start at tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py, following cli(), main(), save_file_lists(), and save_sorted() from the traceback. Reproduce with tracecode list using output paths, then verify that the command completes and creates the requested read and write file lists without an exception.
Written by the indexing model from the issue text.
Description
$ $(which strace) -ff -y -ttt -qq -a1 -o /tmp/outputs/ls- ls -lah /tmp/
...<ls output>...
$ ls /tmp/outputs
ls-.1301978
$ tracecode parse /tmp/outputs /tmp/parsed_outputs
INFO:tracecode:Processing traces with cwd: None, input_dir: '/tmp/outputs', output_dir: '/tmp/parsed_outputs'.
INFO:tracecode:validate_traces: Found 1 traces with root pid: 1301978.
INFO:tracecode:validate_traces: Oldest pid: 1301978.
INFO:tracecode:validate_traces: Smallest pid: 1301978.
INFO:tracecode:Queuing trace of pid 1301978 for parsing. Left to do: 0
INFO:tracecode:All 1 traces queued for parsing in 0.26 seconds.
INFO:tracecode:Filtering and saving cleaned traces to '/tmp/parsed_outputs'.
INFO:tracecode:Applied filters to 1 traces in 0.00 seconds.
INFO:tracecode:Filtered 0 empty traces from '/tmp/parsed_outputs' with 1 cycles in 0.00 seconds.
INFO:tracecode:Processing completed in 0.60 seconds. All 1 traces parsed and saved to: "/tmp/parsed_outputs".
INFO:tracecode:Completed in 0.60 seconds.
$ ls /tmp/parsed_outputs
1301978.pickle
$ ls /tmp/a
$ ls /tmp/b
$ tracecode list /tmp/parsed_outputs /tmp/a/reads /tmp/b/writes
INFO:tracecode:Loading traces ...
INFO:tracecode:Building file lists ...
INFO:tracecode:Saving file lists ...
Traceback (most recent call last):
File "tracecode/tracecode-toolkit-strace/venv/bin/tracecode", line 8, in <module>
sys.exit(cli())
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2606, in cli
main(arguments)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2547, in main
save_file_lists(input_dir, reads_file, writes_file, debug=debug)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2255, in save_file_lists
save_sorted(reads_file, all_reads)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2317, in save_sorted
with open(file_out) as fo:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/a/reads'
$ tracecode list /tmp/parsed_outputs /tmp/a /tmp/b
INFO:tracecode:Loading traces ...
INFO:tracecode:Building file lists ...
INFO:tracecode:Saving file lists ...
Traceback (most recent call last):
File "tracecode/tracecode-toolkit-strace/venv/bin/tracecode", line 8, in <module>
sys.exit(cli())
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2606, in cli
main(arguments)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2547, in main
save_file_lists(input_dir, reads_file, writes_file, debug=debug)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2255, in save_file_lists
save_sorted(reads_file, all_reads)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2317, in save_sorted
with open(file_out) as fo:
IsADirectoryError: [Errno 21] Is a directory: '/tmp/a'
$ touch /tmp/a/reads
$ tracecode list /tmp/parsed_outputs /tmp/a /tmp/b
INFO:tracecode:Loading traces ...
INFO:tracecode:Building file lists ...
INFO:tracecode:Saving file lists ...
Traceback (most recent call last):
File "tracecode/tracecode-toolkit-strace/venv/bin/tracecode", line 8, in <module>
sys.exit(cli())
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2606, in cli
main(arguments)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2547, in main
save_file_lists(input_dir, reads_file, writes_file, debug=debug)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2255, in save_file_lists
save_sorted(reads_file, all_reads)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2317, in save_sorted
with open(file_out) as fo:
IsADirectoryError: [Errno 21] Is a directory: '/tmp/a'
$ tracecode list /tmp/parsed_outputs /tmp/a/reads /tmp/b
INFO:tracecode:Loading traces ...
INFO:tracecode:Building file lists ...
INFO:tracecode:Saving file lists ...
Traceback (most recent call last):
File "tracecode/tracecode-toolkit-strace/venv/bin/tracecode", line 8, in <module>
sys.exit(cli())
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2606, in cli
main(arguments)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2547, in main
save_file_lists(input_dir, reads_file, writes_file, debug=debug)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2255, in save_file_lists
save_sorted(reads_file, all_reads)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2318, in save_sorted
fo.write("\n".join(sorted(seq)))
io.UnsupportedOperation: not writable
$ tracecode list /tmp/parsed_outputs /tmp/a/reads /tmp/b
$ touch /tmp/a/writes
$ tracecode list /tmp/parsed_outputs /tmp/a/reads /tmp/b/writes
INFO:tracecode:Loading traces ...
INFO:tracecode:Building file lists ...
INFO:tracecode:Saving file lists ...
Traceback (most recent call last):
File "tracecode/tracecode-toolkit-strace/venv/bin/tracecode", line 8, in <module>
sys.exit(cli())
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2606, in cli
main(arguments)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2547, in main
save_file_lists(input_dir, reads_file, writes_file, debug=debug)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2255, in save_file_lists
save_sorted(reads_file, all_reads)
File "tracecode/tracecode-toolkit-strace/src/tracecode/tracecode.py", line 2318, in save_sorted
fo.write("\n".join(sorted(seq)))
io.UnsupportedOperation: not writable
- Dominant language
- Python
- Stars
- 25
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/tracecode-toolkit-strace
-
Which python version is the tool best compatible with?Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
aboutcode-org/tracecode-toolkit-strace#5 · 2 comments · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
aboutcode-org/tracecode-toolkit-strace#2 · 2 comments ·
All issues in aboutcode-org/tracecode-toolkit-strace
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day