Skip to content

Protect DescentEngine object exposure#6045

Merged
prckent merged 3 commits into
QMCPACK:developfrom
ye-luo:fix-LMY
Jul 15, 2026
Merged

Protect DescentEngine object exposure#6045
prckent merged 3 commits into
QMCPACK:developfrom
ye-luo:fix-LMY

Conversation

@ye-luo

@ye-luo ye-luo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

closes #5913 #6044 and #6040
Re-applied Paul's fix in #6044 for #5913.
Protect DescentEngine with an optional reference type.
Consolidate engine_start and engine_checkConfigurations arguments.

What type(s) of changes does this code introduce?

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

bora. with gcc 15.3

Checklist

    • I have read the pull request guidance and develop docs
    • This PR is up to date with the current state of 'develop'
    • Code added or changed in the PR has been clang-formatted
    • This PR adds tests to cover any new code, or to catch a bug that is being fixed
    • Documentation has been added (if appropriate)

@ye-luo

ye-luo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Test this please

@prckent prckent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q. Is _le_list guaranteed to be initialized or does _le_list(1) also need to be added in the initializer list?

@ye-luo

ye-luo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Q. Is _le_list guaranteed to be initialized or does _le_list(1) also need to be added in the initializer list?

I didn’t see it being accessed. No needed to be initialized to size 1 proactively. ASAN should catch this if it causes an issue.

@prckent prckent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Confirmed that the H4 short tests ran without crashing on macos macports gcc-15

@prckent
prckent merged commit feaa838 into QMCPACK:develop Jul 15, 2026
49 of 50 checks passed
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.

LMYengine constructor bug

2 participants