Systemic crash on DEATH TIMING
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start in philo/socrates/socrates.py, especially measure_starvation_timing at the traceback location around line 121. Reproduce the DEATH TIMING output and inspect how its timestamp is parsed; done means the starvation test handles the shown timestamp format without raising ValueError.
Written by the indexing model from the issue text.
Description
DEATH TIMING
0ms: philo 1 is thinking
0ms: philo 1 has taken a fork
0ms: philo 1 has taken a fork
0ms: philo 1 is eating
0ms: philo 3 is thinking
0ms: philo 3 has taken a fork
0ms: philo 2 is thinking
200ms: philo 1 is sleeping
200ms: philo 2 has taken a fork
200ms: philo 3 has taken a fork
200ms: philo 3 is eating
300ms: philo 1 is thinking
311ms: philo 1 died
Traceback (most recent call last):
File "/home/maplepy/git/cc/philosophers/philo/socrates/socrates.py", line 302, in <module>
exit(socrates(args.path, args.philo))
File "/home/maplepy/git/cc/philosophers/philo/socrates/socrates.py", line 258, in socrates
test_program(f"{bin_path}/philo/philo")
File "/home/maplepy/git/cc/philosophers/philo/socrates/socrates.py", line 177, in test_program
if run_starvation_measures(binary) is False:
File "/home/maplepy/git/cc/philosophers/philo/socrates/socrates.py", line 151, in run_starvation_measures
results.append(measure_starvation_timing(binary))
File "/home/maplepy/git/cc/philosophers/philo/socrates/socrates.py", line 121, in measure_starvation_timing
start_time = int(first_line[:separator_index])
ValueError: invalid literal for int() with base 10: '0ms:'
- Dominant language
- Python
- Stars
- 70
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 arseniycodes/socrates
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
arseniycodes/socrates#15 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
arseniycodes/socrates#12 · 2 comments ·
-
bug good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
arseniycodes/socrates#9 · 3 comments ·
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
arseniycodes/socrates#8 · 4 comments ·
-
enhancement good first issue help wanted
Difficulty 4/5 3-5 days Newbie friendliness 25/100
arseniycodes/socrates#7 · 1 comment ·
All issues in arseniycodes/socrates
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100