Skip to content

Multiple commits#3677

Merged
rhc54 merged 10 commits intoopenpmix:v5.0from
rhc54:cmr50/fin
Sep 4, 2025
Merged

Multiple commits#3677
rhc54 merged 10 commits intoopenpmix:v5.0from
rhc54:cmr50/fin

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Sep 4, 2025

Fix the abort server upcall

Need to preserve the procs array until completion
of the upcall operation

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit fbe94bc)

Correctly check length in pmix_bitmap_num_set_bits

Signed-off-by: Matthew Whitlock mwhitlo@sandia.gov
(cherry picked from commit 47b6634)

Do not remove nspace from global list on rejected connection

Depending on tool type, we may not want to remove the tool's
nspace tracker from the global list if the connection is rejected.
Improve the checks for different connection scenarios.

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit 12918e1)

Allow foreign tools by default

Set the default to "true" to preserve previous behavior

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit ab85e1a)

Cleanup a bit on connection handling

Now that tools are part of the tracked nspaces, need to be
a little more careful about appending them to the trackers.
Modify the toolqry example to avoid picking up system tools

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit 947d75e)

Avoid duplicate namespace entries

The host may have registered the tool namespace, thus
placing it on the global list. Detect that has happened
and avoid adding a duplicate entry.

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit a3103b8)

Improve selection of interfaces

Default to using the loopback interface unless remote connections
are specified - in which case, reject any loopback interfaces. Provide
useful show-help messages when no valid interfaces are available.
If no remote connection directive is given, and no loopback interfaces
are available, then accept a non-loopback interface.

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit b5a5067)

define default MAXPATHLEN if not defined by system

A definition of MAXPATHLEN is not a mandatory part of the POSIX
standard, and is not defined for hurd (where <sys/param.h> is not
available).

cf.
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
for further context.

But it is difficult to use getcwd without MAXPATHLEN, so set a default
value if it has not been defined in <sys/param.h>.

This allows openpmix to build for hurd.

The patch is taken from debian,
https://salsa.debian.org/science-team/pmix/-/blob/e29db6a5b8e523a3b5e0d80922d5958a0d8e0d07/debian/patches/hurd-fix.patch

Signed-off-by: Drew Parsons dparsons@debian.org
(cherry picked from commit 32f1a46)

Silence a few Coverity complaints

CIDs:
488049
488048
488047
487968
487020
487013
487011
457994
457993
457992
457991
456762

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit 849a9c1)

Update NEWS

Signed-off-by: Ralph Castain rhc@pmix.org
bot:notacherrypick

rhc54 and others added 10 commits September 4, 2025 08:43
Need to preserve the procs array until completion
of the upcall operation

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit fbe94bc)
Signed-off-by: Matthew Whitlock <mwhitlo@sandia.gov>
(cherry picked from commit 47b6634)
Depending on tool type, we may not want to remove the tool's
nspace tracker from the global list if the connection is rejected.
Improve the checks for different connection scenarios.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit 12918e1)
Set the default to "true" to preserve previous behavior

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit ab85e1a)
Now that tools are part of the tracked nspaces, need to be
a little more careful about appending them to the trackers.
Modify the toolqry example to avoid picking up system tools

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit 947d75e)
The host may have registered the tool namespace, thus
placing it on the global list. Detect that has happened
and avoid adding a duplicate entry.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit a3103b8)
Default to using the loopback interface unless remote connections
are specified - in which case, reject any loopback interfaces. Provide
useful show-help messages when no valid interfaces are available.
If no remote connection directive is given, and no loopback interfaces
are available, then accept a non-loopback interface.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit b5a5067)
A definition of MAXPATHLEN is not a mandatory part of the POSIX
standard, and is not defined for hurd (where <sys/param.h> is not
available).

cf.
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
for further context.

But it is difficult to use getcwd without MAXPATHLEN, so set a default
value if it has not been defined in <sys/param.h>.

This allows openpmix to build for hurd.

The patch is taken from debian,
https://salsa.debian.org/science-team/pmix/-/blob/e29db6a5b8e523a3b5e0d80922d5958a0d8e0d07/debian/patches/hurd-fix.patch

Signed-off-by: Drew Parsons <dparsons@debian.org>
(cherry picked from commit 32f1a46)
CIDs:
   488049
   488048
   488047
   487968
   487020
   487013
   487011
   457994
   457993
   457992
   457991
   456762

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit 849a9c1)
Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit 749d173 into openpmix:v5.0 Sep 4, 2025
25 checks passed
@rhc54 rhc54 deleted the cmr50/fin branch September 4, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants