在htcondor中运行python脚本时,作业在.log文件中以以下错误代码终止:
006 (4069.000.000) 02/19 15:02:29 Image size of job updated: 1393668
1362 - MemoryUsage of job (MB)
1393668 - ResidentSetSize of job (KB)
...
006 (4069.000.000) 02/19 15:03:12 Image size of job updated: 33197416
1430 - MemoryUsage of job (MB)
1463300 - ResidentSetSize of job (KB)
...
005 (4069.000.000) 02/19 15:03:12 Job terminated.
(0) Abnormal termination (signal 11)
(0) No core file
Usr 0 00:00:09, Sys 0 00:00:40 - Run Remote Usage
Usr 0 00:00:00, Sys 0 00:00:00 - Run Local Usage
Usr 0 00:00:09, Sys 0 00:00:40 - Total Remote Usage
Usr 0 00:00:00, Sys 0 00:00:00 - Total Local Usage
0 - Run Bytes Sent By Job
4477484 - Run Bytes Received By Job
0 - Total Bytes Sent By Job
4477484 - Total Bytes Received By Job
Partitionable Resources : Usage Request Allocated
Cpus : 1 1
Disk (KB) : 4500 4500 1699801
Gpus : 0
Memory (MB) : 1430 5 5
...
什么会导致这样的错误以及如何纠正?
谷歌搜索后,我找到了一个米尔列表,建议添加该行
getenv=true
在提交文件上,我做到了,但这并没有解决问题,我收到了同样的错误。
感谢您的帮助/建议
信号11指的是分割故障的sigsegv。日志消息说,您的脚本是因为它具有分割故障而终止的,所以秃鹰无能为力。您需要调试脚本以确保它不会导致segfaults的内存访问等无效。
如果正确设置秃鹰,我还将在职位描述文件中添加通知:
notification = Error
notify_user = my@email.com
在这些情况下,它将通知您您的工作异常终止。