Fedora Account System
Red Hat Associate
Red Hat Customer
When --stdin is changed to other process rank, the process reading from stdin will be stuck waiting even though an input is provided. Here is a minimal example: #include <mpi.h> #include <stdio.h> int main(int argc, char *argv[]) { MPI_Init(&argc, &argv); int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (rank == 1) { printf("rank %d\n", rank); getchar(); } MPI_Finalize(); return 0; } Reproducible: Always Steps to Reproduce: 1.$ module load mpi 2.$ mpicc -Wall -pedantic -o test test.c 3.$ mpirun -n 2 --stdin 1 ./test Actual Results: $ mpirun -n 2 --stdin 1 ./test rank 1 a b ... After being given several input the program still doesn't terminate. Debugging shows that it's stuck on getchar(). Expected Results: Program terminates after being given 1 input. $ mpirun -V mpirun (Open MPI) 5.0.2 This issue does not happen on 4.1.6 on Ubuntu. Program terminates as expected. Edit: Turns out it also happens on 5.0.5 on Arch. Reported upstream.
Thank you for reporting it upstream.
This turns out to be a bug in prrte.
FEDORA-2024-4b5225284f (prrte-3.0.6-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b5225284f
FEDORA-2024-4b5225284f (prrte-3.0.6-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-cd690a7bb3 (prrte-3.0.6-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd690a7bb3
FEDORA-2024-37467e08e2 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-37467e08e2` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-37467e08e2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-cd690a7bb3 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-cd690a7bb3` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd690a7bb3 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-cd690a7bb3 (prrte-3.0.6-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-37467e08e2 (prrte-3.0.6-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.