nesvoboda / socrates

A small testing framework for 42's philosophers
68 stars 3 forks source link

Systemic crash on DEATH TIMING #16

Open maplepy opened 1 year ago

maplepy commented 1 year ago
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:'