Skip to content

Bug: static_thread_pool::get_scheduler_on_thread causes SegFault#1465

Merged
ericniebler merged 2 commits intoNVIDIA:mainfrom
DavidElesTheFox:bugfix/static-thread-pool-on-thread-fix
Jan 22, 2025
Merged

Bug: static_thread_pool::get_scheduler_on_thread causes SegFault#1465
ericniebler merged 2 commits intoNVIDIA:mainfrom
DavidElesTheFox:bugfix/static-thread-pool-on-thread-fix

Conversation

@DavidElesTheFox
Copy link
Copy Markdown
Contributor

Issue

nodemask_ is not initialized when get_scheduler_on_thread is called on a static_thread_pool

Details

A new test is added. I haven't find existing tests for the static_thread_pool, thought starting one can be handy for later.

The test case creates a new pool and try to start tasks on different thread indexes. It fails with segmentation fault without the fix because the member pointer is not initialized.

With the fix we can observe that the pool scheduled tasks on different threads.

David Eles added 2 commits January 7, 2025 11:22
nodemask_ is not initialized when get_scheduler_on_thread is called.

Test case fails without the fix.
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jan 7, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
Copy link
Copy Markdown
Collaborator

/ok to test

@ericniebler ericniebler merged commit d592785 into NVIDIA:main Jan 22, 2025
@ericniebler
Copy link
Copy Markdown
Collaborator

thank you @DavidElesTheFox !

@DavidElesTheFox
Copy link
Copy Markdown
Contributor Author

Thank you :), it's always a pleasure to collaborate! :)

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