llnl / llnl/SAMRAI

RestartManager path containing double slash

Open
#210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
250
Forks
89
Avg merge
34m
Merged PRs (30d)
1

Description

Hey we've noticed that if we provide a path containing two forward slashes beside each other the following error occurs

```
P=0000000:Program abort called in file ``/path/to/samrai/source/SAMRAI/tbox/Utilities.cpp'' at line 118
P=0000000:ERROR MESSAGE:
P=0000000:Error in Utilities::recursiveMkdir...
P=0000000: Cannot create directory = path/to/restarts/
P=0000000:
```

We've wrapped this on our end to not let this happen but maybe you want to handle it too

Contributor guide

Open the contributing guide

Research direction

Start in SAMRAI/tbox/Utilities.cpp at Utilities::recursiveMkdir and trace how RestartManager passes paths containing adjacent slashes. Reproduce the failure with a restart path containing a double slash, then inspect nearby tests or directory-creation callers. Done means the path is handled successfully without breaking normal restart-directory creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.