Skip to content

Commit

Permalink
broker/pmiutil: use larger kvsname buffer
Browse files Browse the repository at this point in the history
Problem: openpmix's libpmi.so PMI_KVS_Get_my_name() fails with
PMI_ERR_INVALID_LENGTH if the kvsname buffer size is less than
its internal PMIX_MAX_NSLEN (255) value, regardless of the size
of the returned string.

Work around this by raising the broker's kvsname buffer size
from 64 to 1024 bytes.

Fixes #2746
  • Loading branch information
garlick committed Feb 15, 2020
1 parent 3af5a6b commit e15b9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broker/pmiutil.h
Expand Up @@ -14,7 +14,7 @@
struct pmi_params {
int rank;
int size;
char kvsname[64];
char kvsname[1024];
};

struct pmi_handle;
Expand Down

0 comments on commit e15b9eb

Please sign in to comment.