Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging on connection failure #1539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nzmsv
Copy link

@nzmsv nzmsv commented Dec 12, 2024

When a bootstrap socket connection fails, an error message is printed. Part of the message comes from ncclSocketToString. That function calls getnameinfo to obtain a human-readable string. However, if getnameinfo failed the function would return garbage from the stack.

When a bootstrap socket connection fails, an error message is printed.
Part of the message comes from ncclSocketToString.  That function
calls getnameinfo to obtain a human-readable string.  However, if
getnameinfo failed the function would return garbage from the stack.
@kiskra-nvidia
Copy link
Member

I agree that it doesn't look great that the return value from getnameinfo is being ignored, but could you outline in more detail the failure scenario here? Was an uninitialized ncclSocketAddress being passed to ncclSocketToString?

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.

2 participants