Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Fix headers for call-location tracing.
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 27 May 2016 12:50:29 +0000 (14:50 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 27 May 2016 12:52:46 +0000 (14:52 +0200)
commit69dc94c6500722b122cf8e6649c598f3ecb5d663
tree910b92476c55dc69352b1ba9f20f15de144942db
parentbfe69c63f555e097bff4a0539c24f479053e530b
[SMPI] Fix headers for call-location tracing.

smpi_trace_set_call_location() accesses smpi_process_data(). The data
field however is not initialized until MPI_Init() gets called; hence,
a segfault is caused.

This issue does not exist for the fortran wrappers!

The solution is to initialize the field just before the MPI_Init call.
include/smpi/smpi_extended_traces.h
tools/smpi/generate_smpi_defines.pl