Package: libopenmpi-dev
Version: 4.1.0-10
Severity: important
Tags: newcomer

Dear Maintainer,


I have initially reported the issue at OpenMPI GiHub here:
https://github.com/open-mpi/ompi/issues/11466
But I can't reproduce it for the recent version 4.1.5 that I built from
source.
Also I can't reproduce it for the currently reported version 4.1.0 for
Fedora
So I believe that the issue is somehow related to Debian peculiarities.

The essence of the issue:

The following code:
```
#include <mpi.h>

int main(int argc, char *argv[]) {
  void   *buf;
  MPI_Win window;

  MPI_Init(&argc, &argv);
  MPI_Alloc_mem(16, MPI_INFO_NULL, &buf);
  MPI_Win_create(buf, 16, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &window);
  MPI_Win_free(&window);
  MPI_Free_mem(buf);
  MPI_Finalize();
}
```
compiled as

```
gcc testwin2.c  `pkg-config --cflags --libs ompi-c`   -o testwin.x
```

and being launched as

```
mpiexec.openmpi -n 2 --mca osc_base_verbose 100 --mca pml_base_verbose 100
 --mca btl_base_verbose 100  ./testwin.x
```

fails with error messages:
```
[localhost:43128] *** An error occurred in MPI_Win_create
[localhost:43128] *** reported by process [2029780993,1]
[localhost:43128] *** on communicator MPI_COMM_WORLD
[localhost:43128] *** MPI_ERR_WIN: invalid window
[localhost:43128] *** MPI_ERRORS_ARE_FATAL (processes in this communicator
will now abort,
[localhost:43128] ***    and potentially your MPI job)
```

The same code works well on Fedora PC both with ucx and ob1 PML
implementations with the same OpenMPI version 4.1.0




-- System Information:
Debian Release: 11.6
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-21-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libopenmpi-dev depends on:
ii  gfortran [gfortran-mod-15]     4:10.2.1-1
ii  gfortran-10 [gfortran-mod-15]  10.2.1-6
ii  libevent-dev                   2.1.12-stable-1
ii  libhwloc-dev                   2.4.1+dfsg-1
ii  libibverbs-dev                 33.2-1
ii  libjs-jquery                   3.5.1+dfsg+~3.5.5-7
ii  libjs-jquery-ui                1.12.1+dfsg-8+deb11u1
ii  libopenmpi3                    4.1.0-10
ii  libpmix-dev                    4.0.0-4.1
ii  openmpi-bin                    4.1.0-10
ii  openmpi-common                 4.1.0-10
ii  zlib1g-dev                     1:1.2.11.dfsg-2+deb11u2

Versions of packages libopenmpi-dev recommends:
ii  libcoarrays-openmpi-dev  2.9.2-3

Versions of packages libopenmpi-dev suggests:
pn  openmpi-doc  <none>

Reply via email to