-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in the runtime when sbatch is used (#26772)
With `CHPL_LAUNCHER_USE_SBATCH`, we have to compute some file names. Apparently there's a bug seeped in into that code that showed up as failures in our XC testing. The bug is about using strlen on memory that's zeroed out. This PR stores the string's size in a variable and uses that variable instead of `strlen`ing all zeros. At a high level, this bug shows that it would be good to have our launchers implemented in python as they are basically string manipulations, where C is not... very strong. Closes Cray/chapel-private#7152 [Reviewed by @riftEmber]
- Loading branch information
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters