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

Companion timeout exception not caught? #160

Open
caizixian opened this issue Oct 1, 2024 · 1 comment
Open

Companion timeout exception not caught? #160

caizixian opened this issue Oct 1, 2024 · 1 comment

Comments

@caizixian
Copy link
Member

subprocess.TimeoutExpired: Command '['/home/claireh/mmtk-core/tools/tracing/performance/run.py', '-b', '/opt/bpftrace/bpftrace-static', '-m', '/home/claireh/openjdk/build/mmtk/images/jdk/lib/server/libmmtk_openjdk.so', '-f', 'json', '--harness', 'packet_size']' timed out after 10 seconds

The try ... except ... should have caught it.

"Companion program not exited after 10 seconds timeout. Trying to kill ..."

Reported by @clairexhuang . She might follow up with more details.

@clairexhuang
Copy link

Context: running a tracing command with an outdated/broken harness so the companion failed to exit. Tried to reproduce and it did print
avrora 3000 24 0[WARNING] 2024-10-01 05:10:12,797 benchmark.py:156 Companion program not exited after 10 seconds timeout. Trying to kill ...
as expected. Suspect I may have just missed it the first time around, and the first exception was printed when killing the script.

I think it would be helpful for debugging to have a slightly more descriptive warning though. e.g. "Companion program failed to exit and communicate within 10 seconds of the main program ending. Please ensure it has a termination mechanism."

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

No branches or pull requests

2 participants