Public bug reported:

When using the MIMD idiom of MPI, OpenMPI mpirun segfaults.

Example:
$ mpirun -n 1 pwd : -n 1 pwd
[1]    112861 segmentation fault (core dumped)  mpirun -n 1 pwd : -n 1 pwd

The coredump suggests that the crash occurs in PMIx_Setenv:

#0  __strlen_evex (libc.so.6 + 0x1aaa5c)
#1  __printf_buffer (libc.so.6 + 0x6f948)
#2  __vasprintf_internal (libc.so.6 + 0x96af9)
#3  pmix_vasprintf (libpmix.so.2 + 0xfe900)
#4  pmix_asprintf (libpmix.so.2 + 0xfe9ba)
#5  PMIx_Setenv (libpmix.so.2 + 0x135fb3)
#6  n/a (libpmix.so.2 + 0x1a10fb)
#7  pmix_pmdl_base_setup_fork (libpmix.so.2 + 0x19c2cc)
#8  PMIx_server_setup_fork (libpmix.so.2 + 0x98606)
#9  prte_odls_base_spawn_proc (libprrte.so.3 + 0x9947e)
#10 n/a (libevent_core-2.1.so.7 + 0x20328)
#11 event_base_loop (libevent_core-2.1.so.7 + 0x2205f)
#12 n/a (prte + 0x7827)
#13 __libc_start_call_main (libc.so.6 + 0x2a601)
#14 __libc_start_main_impl (libc.so.6 + 0x2a718)
#15 n/a (prte + 0x87c5)

Claude suggests disabling the ompi programming model plugin using
PMIX_MCA_pmdl=^ompi mpirun -n 1 ls : -n 1 pwd
This works.

1)
Description:    Ubuntu 26.04.1 LTS
Release:        26.04

2)
libopenmpi-dev:
  Installed: 5.0.10-1
  Candidate: 5.0.10-1
  Version table:
 *** 5.0.10-1 500
        500 http://de.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
        100 /var/lib/dpkg/status
libpmix2t64:
  Installed: 6.0.0+really5.0.9-3build1
  Candidate: 6.0.0+really5.0.9-3build1
  Version table:
 *** 6.0.0+really5.0.9-3build1 500
        500 http://de.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
        100 /var/lib/dpkg/status

3)
I expect the executables to be run.

4)
segmentation fault (core dumped)  mpirun -n 1 pwd : -n 1 pwd

** Affects: openmpi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174572

Title:
  MIMD runs segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/2174572/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to