mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Generate a core dump when CompleteInTimeOrDie forcefully quits
Summary: CompleteInTimeOrDie was added to detect deadlocks and proactively exit. In addition, call os.abort() to generate a core dump so that the error is actionable. Reviewed By: bmaurer Differential Revision: D6938343 fbshipit-source-id: 8bd36da4f4bb1195bd3398f25d133a6ebf1c66ad
This commit is contained in:
parent
01de4e40d6
commit
6ecaed5021
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class WatcherThread(threading.Thread):
|
|||
|
||||
print("\n".join(code))
|
||||
log.error("Process did not terminate cleanly in 10 s, forcing")
|
||||
os._exit(1)
|
||||
os.abort()
|
||||
|
||||
forcet = threading.Thread(target=forcequit, args=())
|
||||
forcet.daemon = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue