Skip to content

mpi::detail::c_data needs to check for empty vectors - #81

Merged
aminiussi merged 1 commit into
boostorg:developfrom
mkuron:patch-2
Mar 11, 2019
Merged

mpi::detail::c_data needs to check for empty vectors#81
aminiussi merged 1 commit into
boostorg:developfrom
mkuron:patch-2

Conversation

@mkuron

@mkuron mkuron commented Feb 14, 2019

Copy link
Copy Markdown
Contributor

If the standard library is configured to do range checks (-D_GLIBCXX_ASSERTIONS), accessing the zeroth element of a vector to get its address triggers an assertion.

This issue was discovered in espressomd/espresso#2507, where boost::mpi::detail::dispatch_scatter_sendbuf runs into it.

If the standard library is configured to do range checks (-D _GLIBCXX_ASSERTIONS), accessing the zeroth element of a vector to get its address triggers an assertion.
@aminiussi

Copy link
Copy Markdown
Member

I'll merge this in develop soon. Should be in 1.71
Thanks

@aminiussi
aminiussi merged commit dc70843 into boostorg:develop Mar 11, 2019
koomie added a commit to openhpc/ohpc that referenced this pull request Oct 7, 2019
boostorg/mpi#81 which has been landed in
v1.71.0 release (#1035)

Signed-off-by: Karl W. Schulz <karl@ices.utexas.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants