Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLE になるケースをテストするとクラッシュする #216

Closed
penpenpng opened this issue Apr 12, 2021 · 0 comments · Fixed by #217
Closed

TLE になるケースをテストするとクラッシュする #216

penpenpng opened this issue Apr 12, 2021 · 0 comments · Fixed by #217

Comments

@penpenpng
Copy link
Contributor

手元では D 言語でのみ現象を確認していますが、おそらく別の言語でも発生します。
while (true); 等のコードで再現可能です。

例えば in_3.txt が TLE になる場合、次のような出力とともにクラッシュします。
--force オプションを付けて submit することもできないので少し不便です。

# in_1.txt ... PASSED 1 ms
# in_2.txt ... PASSED 1 ms
Traceback (most recent call last):
  File "/home/penpenpng/.local/bin/atcoder-tools", line 8, in <module>
    sys.exit(main())
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/atcoder_tools.py", line 61, in main
    exit_program(submit_main(prog, args))
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/tools/submit.py", line 102, in main
    if args.force or tester.main("", tester_args):
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/tools/tester.py", line 334, in main
    return run_all_tests(exec_file, in_sample_file_list, out_sample_file_list, args.timeout, args.knock_out,
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/tools/tester.py", line 202, in run_all_tests
    test_summary = run_for_samples(
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/tools/tester.py", line 118, in run_for_samples
    has_error_output = has_error_output or exec_res.has_stderr()
  File "/home/penpenpng/.local/lib/python3.8/site-packages/atcodertools/executils/run_program.py", line 30, in has_stderr
    return len(self.stderr) > 0
TypeError: object of type 'NoneType' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant