{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/1905","repository_url":"https://api.github.com/repos/open-mpi/ompi","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/1905/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/1905/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/1905/events","html_url":"https://github.com/open-mpi/ompi/issues/1905","id":167735269,"number":1905,"title":"bug in Dynamic Process Management (MPI_Comm_accept) in open-mpi 2.0.0","user":{"login":"xldrx","id":1114830,"avatar_url":"https://avatars.githubusercontent.com/u/1114830?v=3","gravatar_id":"","url":"https://api.github.com/users/xldrx","html_url":"https://github.com/xldrx","followers_url":"https://api.github.com/users/xldrx/followers","following_url":"https://api.github.com/users/xldrx/following{/other_user}","gists_url":"https://api.github.com/users/xldrx/gists{/gist_id}","starred_url":"https://api.github.com/users/xldrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xldrx/subscriptions","organizations_url":"https://api.github.com/users/xldrx/orgs","repos_url":"https://api.github.com/users/xldrx/repos","events_url":"https://api.github.com/users/xldrx/events{/privacy}","received_events_url":"https://api.github.com/users/xldrx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-07-26T23:25:19Z","updated_at":"2016-10-24T17:46:15Z","closed_at":null,"body":"`MPI_Comm_accept` doesn't work properly in 2.0.0 release.\r\n\r\nI used the following code:\r\n```\r\n#include <mpi.h> \r\nint main(){ \r\n  char port_name[MPI_MAX_PORT_NAME]; \r\n  int provided; \r\n  int thread_level = MPI_THREAD_MULTIPLE; \r\n  MPI_Comm inter_comm; \r\n  MPI_Init_thread(0, 0, thread_level, &provided); \r\n  MPI_Open_port(MPI_INFO_NULL, port_name); \r\n  MPI_Comm_accept(port_name, MPI_INFO_NULL, 0, MPI_COMM_SELF, &inter_comm); \r\n  // Code never reach here. \r\n  MPI_Comm_disconnect(&inter_comm); \r\n  MPI_Close_port(port_name); \r\n  MPI_Finalize(); \r\n  return 0; \r\n} \r\n```\r\n\r\nThe code is compiled and run with the following commands: \r\n```\r\n> mpic++ server.cc \r\n> mpiexec -mp ./a.out \r\n``` \r\nUnfortunately it is crashed immediately after start with the following \r\nerror messages:\r\n```\r\n$ mpiexec -np 1 ./a.out \r\n[myhost:32527] OPAL ERROR: Timeout in file base/pmix_base_fns.c at line 195 \r\n[myhost:32527] *** An error occurred in MPI_Comm_accept \r\n[myhost:32527] *** reported by process [776667137,0] \r\n[myhost:32527] *** on communicator MPI_COMM_SELF \r\n[myhost:32527] *** MPI_ERR_UNKNOWN: unknown error \r\n[myhost:32527] *** MPI_ERRORS_ARE_FATAL (processes in this communicator \r\nwill now abort, \r\n[myhost:32527] *** and potentially your MPI job) \r\n```\r\n\r\nThe code works just find on previous versions of open-mpi (1.10.x, 1.8.x) \r\nand `MPICH`. \r\n\r\nI've compile the open-mpi myself with both default configurations, and the \r\nfollowing: \r\n```\r\n> ./configure --enable-mpi-thread-multiple \r\n``` "},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/255812983","html_url":"https://github.com/open-mpi/ompi/issues/1905#issuecomment-255812983","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/1905","id":255812983,"user":{"login":"opoplawski","id":814662,"avatar_url":"https://avatars.githubusercontent.com/u/814662?v=3","gravatar_id":"","url":"https://api.github.com/users/opoplawski","html_url":"https://github.com/opoplawski","followers_url":"https://api.github.com/users/opoplawski/followers","following_url":"https://api.github.com/users/opoplawski/following{/other_user}","gists_url":"https://api.github.com/users/opoplawski/gists{/gist_id}","starred_url":"https://api.github.com/users/opoplawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opoplawski/subscriptions","organizations_url":"https://api.github.com/users/opoplawski/orgs","repos_url":"https://api.github.com/users/opoplawski/repos","events_url":"https://api.github.com/users/opoplawski/events{/privacy}","received_events_url":"https://api.github.com/users/opoplawski/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T17:46:15Z","updated_at":"2016-10-24T17:46:15Z","body":"hmm, in mock on my machine,  testArgsOnlyAtRoot (test_spawn.TestSpawnSelf) seems to hang for a very long time - I killed it after almost 2 hours.  I can open a new issue if this seems to be something else."}}
{"actor":{"display_login":"opoplawski"}}