[mvapich-discuss] bug in mpir_request.c?

Hari Subramoni subramoni.1 at osu.edu
Wed Oct 12 17:56:05 EDT 2016


Hello Martin,

Thanks for the report. We will take a look at it. Can you please share your
test code as well?

Regards,
Hari.

On Wed, Oct 12, 2016 at 4:40 PM, Martin Pokorny <mpokorny at nrao.edu> wrote:

> I encountered what might be a bug in mpir_request.c. My test case fails
> with a segfault in a call to MPI_Waitsome with an array of requests that
> has a single user-created generalized request at the start of the array
> otherwise filled with "normal" MPI requests. It looks like the conditional
> that starts on line 588 can fail when request_ptrs[i+1]->greq_fns is
> NULL-valued, which seems to be what happens in my case when "i" is zero.
> For reference, here's the code starting on line 588 of mpir_request.c in
> the mvapich2-2.2 source tarball:
>
>>         if (request_ptrs[i+1] == NULL ||
>>                 (request_ptrs[i]->greq_fns->greq_class !=
>>                         request_ptrs[i+1]->greq_fns->greq_class) )
>>             n_classes += 1;
>>
> I was able to work around the problem by putting the generalized request
> at the end of the array. I'm open to the possibility that my test code is
> at fault, but I'm suspicious of the mpir_request.c code, as well.
>
> --
> Martin
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20161012/106bf086/attachment-0001.html>


More information about the mvapich-discuss mailing list