PTP无法连接到调试器 [英] PTP fails to connect to debugger
问题描述
我正在撰写此电子邮件以寻求帮助,为基于openMPI的应用程序设置调试环境。目前,我正在努力解决阻碍我继续工作的问题。这个问题与在stackoverflow上发布的内容非常相似(参见:链接)。其症状是调试过程挂起,并行调试视角显示操作正在进行...消息。它是由错误引起的,即无法连接到调试器。与此同时,错误消息getaddrinfo:Undefined error:0也显示在调试控制台中。
我在互联网上进行了一些搜索,发现了解决问题的指令(请参阅:链接)。我已经验证过:
但我无法找到一个sdm进程的参数-master。
目前,我使用以下软件组件和指定版本:
-
并行工具平台,包括PTP并行语言开发工具等(9.0.1.201509091505)
ptp -sdm-9.0.0(org.eclipse.ptp.macosx_9.0.0.201506101404) -
GNU gdb(7.10)
我使用的操作系统是OS X Yosemite(10.10.5)。我在本地机器上运行应用程序。
有没有人遇到类似的问题,并且知道如何解决它?我很感激任何提示或帮助。
我找到了可能是原因的东西。我从shell终端运行Eclipse,以便可以看到更多的文本/日志输出。然后在 Eclipse - >首选项 - >并行工具 - >并行语言开发工具下启用显示命令输出,这就是我在父shell中看到的在Eclipse中):
清理:rm -f routing_file
submit-interactive-debug:ac5df46b-c4f2-438a- 9565-9b26818e880d:perl /Users/<username>/.eclipsesettings/rms/MPICH2/start_debug_job.pl mpiexec -np 4 /Users/<username>/.eclipsesettings/sdm --port = 51347 --host = localhost - -debugger = gdb-mi
SDM Master:/Users/<username>/.eclipsesettings/sdm -master --port = 51347 --host = localhost --debugger = gdb-mi
SDM Master :sdm [--debugger = value] [--debugger_path = path]
SDM Master:[--proxy = proxy]
SDM Master:[--host = host_name] [--port = port ]
SDM Master:[--master]
SDM Master:[--server = rank]
SDM Master:[--generate_routes = list]
SDM Master:[ - -routing_file =路径]
SDM主文件:[--debug [= 1 evel]]
这表明 sdm
是无效的,实际上我发现它正在接收
-master
而不是 - master
标志。
我尝试在 更新:我提交了一个错误报告: https://bugs.eclipse.org/bugs/show_bug.cgi?id=521975 I am writing this email to ask for help in setting up a debugging environment for openMPI-based applications. Currently, I am struggling with a problem that is hampering me from continuing the work. The problem is very similar to what has been posted on the stackoverflow (See: Link). Its symptom is that the debugging process hangs and the parallel debugging perspective shows a "Operation in progress…" message. It is caused by an error, namely "Cannot connect to debugger". Meanwhile, an error message "getaddrinfo: Undefined error: 0" also appear in the debugging console. I did some search on the internet and I found an instruction for trouble shooting (See: Link). I already verified that: But I could not find one "sdm" process with argument "—master". Currently, I use the following software components with indicated versions: Parallel Tools Platform including PTP Parallel Language Development Tools, etc. (9.0.1.201509091505) ptp-sdm-9.0.0 (org.eclipse.ptp.macosx_9.0.0.201506101404) GNU gdb (7.10) The OS I am using is OS X Yosemite (10.10.5). And I run application on the local machine. Did anyone encounter the similar problem and happen to know how to fix it? I would appreciate any hint or help from you. I found something that might be the cause. I ran Eclipse from a shell terminal so that I could see more text/log output. Then under Eclipse -> Preference -> Parallel Tools -> Parallel Language Development Tools I enabled the Show output from commands, and this is what I see in the parent shell (not within Eclipse): This suggests that one of the argument inputs to I tried to open the perl script at Update: I have submitted a bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=521975 这篇关于PTP无法连接到调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! / Users /< username> /。eclipsesettings / rms / MPICH2 / start_debug_job.pl打开perl脚本。 code>但它在那里是正确的,并且所做的任何更改只出现在Eclipse的输出控制台中,而不是我从eclipse运行eclipse的父shell。某处
sdm
正在发送错误的 -master
标志,也许这是问题的一部分。不幸的是,除此之外,我没有答案。
Cleanup: rm -f routing_file
submit-interactive-debug: ac5df46b-c4f2-438a-9565-9b26818e880d: perl /Users/<username>/.eclipsesettings/rms/MPICH2/start_debug_job.pl mpiexec -np 4 /Users/<username>/.eclipsesettings/sdm --port=51347 --host=localhost --debugger=gdb-mi
SDM Master: /Users/<username>/.eclipsesettings/sdm -master --port=51347 --host=localhost --debugger=gdb-mi
SDM Master: sdm [--debugger=value] [--debugger_path=path]
SDM Master: [--proxy=proxy]
SDM Master: [--host=host_name] [--port=port]
SDM Master: [--master]
SDM Master: [--server=rank]
SDM Master: [--generate_routes=list]
SDM Master: [--routing_file=path]
SDM Master: [--debug[=level]]
sdm
is invalid, and indeed I see that it is receiving -master
instead of --master
flag./Users/<username>/.eclipsesettings/rms/MPICH2/start_debug_job.pl
but it's correct there, and any changes made only appear within Eclipse's output console, not the parent shell I ran eclipse from. Somewhere sdm
is being sent the wrong -master
flag, and maybe that is part of the problem. Unfortunately I don't have an answer beyond that.