我在运行程序时收到以下错误消息。我的主目录中没有.Xauthority
文件。我正尝试在本地计算机上运行此程序。该程序在 HPC 集群中运行良好。
Invalid MIT-MAGIC-COOKIE-1 key[nirmal:278600] *** Process received signal ***
[nirmal:278600] Signal: Segmentation fault (11)
[nirmal:278600] Signal code: Address not mapped (1)
[nirmal:278600] Failing at address: 0x440000e8
[nirmal:278600] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f7057722420]
[nirmal:278600] [ 1] /lib/x86_64-linux-gnu/libmpi.so.40(PMPI_Comm_set_errhandler+0x47)[0x7f70579dbfc7]
答案1
我认为“无效的 MIT-MAGIC-COOKIE-1 密钥”消息与分段错误无关。要消除该消息,请尝试像这样设置 HWLOC_COMPONENTS 环境变量(取自https://stackoverflow.com/a/75813452/21988144)
export HWLOC_COMPONENTS="-gl"