Re: [OMPI users] Help debugging invalid read

2018-02-19 Thread Florian Lindner
Ok, I think I have found the problem During std::vector::push_back or emplace_back a realloc happens and thus memory locations that I gave to MPI_Isend become invalid. My loop now reads: std::vector eventSendBuf(eventsSize); // Buffer to hold the MPI_EventData object for (int i = 0; i <

[OMPI users] Help debugging invalid read

2018-02-19 Thread Florian Lindner
Hello, I am having problems understanding an error valgrind gives me. I tried to bog down the program as much as possible. The original program as well as the test example both work fine, but when I link the created library to another application I get segfaults. I think that this piece of code