{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/2380","repository_url":"https://api.github.com/repos/open-mpi/ompi","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/2380/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/2380/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/2380/events","html_url":"https://github.com/open-mpi/ompi/issues/2380","id":187842496,"number":2380,"title":"MPI_Comm_idup hang in v2.0.x with MPI_THREAD_MULTIPLE","user":{"login":"jjhursey","id":4259120,"avatar_url":"https://avatars.githubusercontent.com/u/4259120?v=3","gravatar_id":"","url":"https://api.github.com/users/jjhursey","html_url":"https://github.com/jjhursey","followers_url":"https://api.github.com/users/jjhursey/followers","following_url":"https://api.github.com/users/jjhursey/following{/other_user}","gists_url":"https://api.github.com/users/jjhursey/gists{/gist_id}","starred_url":"https://api.github.com/users/jjhursey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjhursey/subscriptions","organizations_url":"https://api.github.com/users/jjhursey/orgs","repos_url":"https://api.github.com/users/jjhursey/repos","events_url":"https://api.github.com/users/jjhursey/events{/privacy}","received_events_url":"https://api.github.com/users/jjhursey/received_events","type":"User","site_admin":false},"labels":[{"id":129984007,"url":"https://api.github.com/repos/open-mpi/ompi/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"hjelmn","id":1226817,"avatar_url":"https://avatars.githubusercontent.com/u/1226817?v=3","gravatar_id":"","url":"https://api.github.com/users/hjelmn","html_url":"https://github.com/hjelmn","followers_url":"https://api.github.com/users/hjelmn/followers","following_url":"https://api.github.com/users/hjelmn/following{/other_user}","gists_url":"https://api.github.com/users/hjelmn/gists{/gist_id}","starred_url":"https://api.github.com/users/hjelmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjelmn/subscriptions","organizations_url":"https://api.github.com/users/hjelmn/orgs","repos_url":"https://api.github.com/users/hjelmn/repos","events_url":"https://api.github.com/users/hjelmn/events{/privacy}","received_events_url":"https://api.github.com/users/hjelmn/received_events","type":"User","site_admin":false},"assignees":[{"login":"hjelmn","id":1226817,"avatar_url":"https://avatars.githubusercontent.com/u/1226817?v=3","gravatar_id":"","url":"https://api.github.com/users/hjelmn","html_url":"https://github.com/hjelmn","followers_url":"https://api.github.com/users/hjelmn/followers","following_url":"https://api.github.com/users/hjelmn/following{/other_user}","gists_url":"https://api.github.com/users/hjelmn/gists{/gist_id}","starred_url":"https://api.github.com/users/hjelmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjelmn/subscriptions","organizations_url":"https://api.github.com/users/hjelmn/orgs","repos_url":"https://api.github.com/users/hjelmn/repos","events_url":"https://api.github.com/users/hjelmn/events{/privacy}","received_events_url":"https://api.github.com/users/hjelmn/received_events","type":"User","site_admin":false},{"login":"jjhursey","id":4259120,"avatar_url":"https://avatars.githubusercontent.com/u/4259120?v=3","gravatar_id":"","url":"https://api.github.com/users/jjhursey","html_url":"https://github.com/jjhursey","followers_url":"https://api.github.com/users/jjhursey/followers","following_url":"https://api.github.com/users/jjhursey/following{/other_user}","gists_url":"https://api.github.com/users/jjhursey/gists{/gist_id}","starred_url":"https://api.github.com/users/jjhursey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjhursey/subscriptions","organizations_url":"https://api.github.com/users/jjhursey/orgs","repos_url":"https://api.github.com/users/jjhursey/repos","events_url":"https://api.github.com/users/jjhursey/events{/privacy}","received_events_url":"https://api.github.com/users/jjhursey/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/open-mpi/ompi/milestones/20","html_url":"https://github.com/open-mpi/ompi/milestones/v2.0.2","labels_url":"https://api.github.com/repos/open-mpi/ompi/milestones/20/labels","id":1945157,"number":20,"title":"v2.0.2","description":"","creator":{"login":"jsquyres","id":617316,"avatar_url":"https://avatars.githubusercontent.com/u/617316?v=3","gravatar_id":"","url":"https://api.github.com/users/jsquyres","html_url":"https://github.com/jsquyres","followers_url":"https://api.github.com/users/jsquyres/followers","following_url":"https://api.github.com/users/jsquyres/following{/other_user}","gists_url":"https://api.github.com/users/jsquyres/gists{/gist_id}","starred_url":"https://api.github.com/users/jsquyres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsquyres/subscriptions","organizations_url":"https://api.github.com/users/jsquyres/orgs","repos_url":"https://api.github.com/users/jsquyres/repos","events_url":"https://api.github.com/users/jsquyres/events{/privacy}","received_events_url":"https://api.github.com/users/jsquyres/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":76,"state":"open","created_at":"2016-08-16T14:31:37Z","updated_at":"2016-11-08T14:40:56Z","due_on":"2016-12-31T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-07T22:04:29Z","updated_at":"2016-11-08T16:13:27Z","closed_at":null,"body":"I created a test case in ompi-tests under`ibm/communicator/comm_idup_many.c`\r\n\r\nThis test is doing a simple:\r\n```c\r\n    for (i = 0; i < num_comms_to_create; i++) {\r\n        MPI_Comm_idup(MPI_COMM_WORLD, &comms[i], &req[i]);\r\n    }\r\n\r\n    MPI_Waitall(num_comms_to_create, req, MPI_STATUSES_IGNORE);\r\n```\r\n\r\nIf you compile the `v2.0.x` branch with `--enable-mpi-thread-multiple` this test will hang when you try to create more than one communicator this way.\r\n```shell\r\n./configure --enable-debug --enable-mpi-thread-multiple\r\n```\r\n\r\nThe problem is that the first request will progress past stage one, but the second request will block the progress thread in this section of code:\r\n * https://github.com/open-mpi/ompi/blob/v2.0.x/ompi/communicator/comm_cid.c#L517-L530\r\n\r\nThe `master` and `v2.x` branches pass this test. So I believe that the CID allocation fix that went into those two branches 'fixed' this problem."},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/259180698","html_url":"https://github.com/open-mpi/ompi/issues/2380#issuecomment-259180698","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/2380","id":259180698,"user":{"login":"jsquyres","id":617316,"avatar_url":"https://avatars.githubusercontent.com/u/617316?v=3","gravatar_id":"","url":"https://api.github.com/users/jsquyres","html_url":"https://github.com/jsquyres","followers_url":"https://api.github.com/users/jsquyres/followers","following_url":"https://api.github.com/users/jsquyres/following{/other_user}","gists_url":"https://api.github.com/users/jsquyres/gists{/gist_id}","starred_url":"https://api.github.com/users/jsquyres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsquyres/subscriptions","organizations_url":"https://api.github.com/users/jsquyres/orgs","repos_url":"https://api.github.com/users/jsquyres/repos","events_url":"https://api.github.com/users/jsquyres/events{/privacy}","received_events_url":"https://api.github.com/users/jsquyres/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T16:13:27Z","updated_at":"2016-11-08T16:13:27Z","body":"Per the call today, https://github.com/open-mpi/ompi/pull/2381 may fix this issue."}}
{"actor":{"display_login":"jsquyres"}}