{"action":"created","issue":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/2535","repository_url":"https://api.github.com/repos/open-mpi/ompi","labels_url":"https://api.github.com/repos/open-mpi/ompi/issues/2535/labels{/name}","comments_url":"https://api.github.com/repos/open-mpi/ompi/issues/2535/comments","events_url":"https://api.github.com/repos/open-mpi/ompi/issues/2535/events","html_url":"https://github.com/open-mpi/ompi/issues/2535","id":193969311,"number":2535,"title":"opal_unpack_general_function might upack too much data","user":{"login":"ggouaillardet","id":7233259,"avatar_url":"https://avatars.githubusercontent.com/u/7233259?v=3","gravatar_id":"","url":"https://api.github.com/users/ggouaillardet","html_url":"https://github.com/ggouaillardet","followers_url":"https://api.github.com/users/ggouaillardet/followers","following_url":"https://api.github.com/users/ggouaillardet/following{/other_user}","gists_url":"https://api.github.com/users/ggouaillardet/gists{/gist_id}","starred_url":"https://api.github.com/users/ggouaillardet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggouaillardet/subscriptions","organizations_url":"https://api.github.com/users/ggouaillardet/orgs","repos_url":"https://api.github.com/users/ggouaillardet/repos","events_url":"https://api.github.com/users/ggouaillardet/events{/privacy}","received_events_url":"https://api.github.com/users/ggouaillardet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T06:34:24Z","updated_at":"2016-12-07T12:00:31Z","closed_at":null,"body":"@bosilca can you please take care of that ?\r\n\r\nthe following program works fine if both task run on homogeneous nodes, but fail otherwise.\r\n\r\ni strongly suspect the root cause is ```opal_unpack_general_function``` that does not exit when the unpacked data reaches ```*max_data```\r\n\r\n```c\r\n#include <assert.h>\r\n#include <mpi.h>\r\n\r\n/* simple bug reproducer\r\n * task 0 MPI_Recv 2 MPI_INT but task 1 only MPI_Send 1 MPI_INT\r\n * ok on homogeneous node(s), ko on heterogeneous nodes */\r\nint main(int argc, char *argv[]) {\r\n    int b[2];\r\n    int rank;\r\n    MPI_Status status;\r\n    int count;\r\n    int err;\r\n    MPI_Init(&argc, &argv);\r\n    MPI_Comm_rank(MPI_COMM_WORLD, &rank);\r\n    if (0 == rank) {\r\n        b[0] = -1;\r\n        b[1] = -1;\r\n        err = MPI_Recv(b, 2, MPI_INT, 1, 0, MPI_COMM_WORLD, &status);\r\n        assert(MPI_SUCCESS == err);\r\n        err = MPI_Get_elements(&status, MPI_INT, &count);\r\n        assert(MPI_SUCCESS == err);\r\n        assert(1 == count);\r\n        assert(0 == b[0]);\r\n        assert(-1 == b[1]); // currently fails on heterogeneous nodes\r\n    } else if (1 == rank) {\r\n        b[0] = 0;\r\n        b[1] = 2;\r\n        MPI_Send(b, 1, MPI_INT, 0, 0, MPI_COMM_WORLD);\r\n    }\r\n    \r\n    MPI_Finalize();\r\n    return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/open-mpi/ompi/issues/comments/265429910","html_url":"https://github.com/open-mpi/ompi/issues/2535#issuecomment-265429910","issue_url":"https://api.github.com/repos/open-mpi/ompi/issues/2535","id":265429910,"user":{"login":"bosilca","id":642701,"avatar_url":"https://avatars.githubusercontent.com/u/642701?v=3","gravatar_id":"","url":"https://api.github.com/users/bosilca","html_url":"https://github.com/bosilca","followers_url":"https://api.github.com/users/bosilca/followers","following_url":"https://api.github.com/users/bosilca/following{/other_user}","gists_url":"https://api.github.com/users/bosilca/gists{/gist_id}","starred_url":"https://api.github.com/users/bosilca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosilca/subscriptions","organizations_url":"https://api.github.com/users/bosilca/orgs","repos_url":"https://api.github.com/users/bosilca/repos","events_url":"https://api.github.com/users/bosilca/events{/privacy}","received_events_url":"https://api.github.com/users/bosilca/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T12:00:31Z","updated_at":"2016-12-07T12:00:31Z","body":"runs on  open-mpi/ompi@f95f11d without issues."}}
{"actor":{"display_login":"bosilca"}}