{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/1734","repository_url":"https://api.github.com/repos/open-mpi/ompi","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/1734/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/1734/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/1734/events","html_url":"https://github.com/open-mpi/ompi/pull/1734","id":157737025,"number":1734,"title":"opal/progress: make progress function registration mt safe","user":{"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-31T18:20:23Z","updated_at":"2016-05-31T18:21:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/open-mpi/ompi/pulls/1734","html_url":"https://github.com/open-mpi/ompi/pull/1734","diff_url":"https://github.com/open-mpi/ompi/pull/1734.diff","patch_url":"https://github.com/open-mpi/ompi/pull/1734.patch"},"body":"This commit fixes a bug in opal progress registration that can cause\r\ncrashes when a progress function is registered while another thread is\r\nin opal_progress(). Before this commit realloc is used to allocate\r\nmore space for progress functions but it is possible for a thread in\r\nopal_progress() to try to read from the array that is freed by realloc\r\nbefore the array is re-assigned when realloc returns. To prevent this\r\nrace use malloc + memcpy to fill the new array and atomically swap out\r\nthe old and new array pointers.\r\n\r\nSigned-off-by: Nathan Hjelm <hjelmn@lanl.gov>"},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/222775381","html_url":"https://github.com/open-mpi/ompi/pull/1734#issuecomment-222775381","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/1734","id":222775381,"user":{"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},"created_at":"2016-05-31T18:21:05Z","updated_at":"2016-05-31T18:21:05Z","body":"@bosilca Fixes an occasional crash when running multi-threaded tests. Looking a lot better after this change."}}
{"actor":{"display_login":"hjelmn"}}