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

Unsuccessful VMEC calculation leads to segmentation fault in ONE_ITER optimization #86

Open
zhucaoxiang opened this issue Oct 29, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zhucaoxiang
Copy link
Collaborator

There is a known issue. One can use STELLOPT to do an one_iter optimization, like following the process VMEC -> BOOZ_XFORM -> NEO. If VMEC fails and because it is one_iter, STELLOPT will call stellopt_clean_up first in stellopt_fcn before calling stellopt_neo. Then a segmentation error will happen because we are trying to access eff_ripple before it was allocated in stellopt_neo. The flow chart is stellopt_clean_up -> stellopt_load_targets -> chisq_neo.

We should add some lines to catch this or stop this. Any suggestions? @lazersos

@zhucaoxiang zhucaoxiang added the bug Something isn't working label Oct 29, 2020
@tmqian
Copy link
Collaborator

tmqian commented Dec 21, 2020

I think this issue is specific to ONE_ITER (as Caoxiang mentioned).
Running the same file in LMDIF gives "first run fails, improve input" and no segfault.

So there might be a ready-made catch that can be copied from the LMDIF routine?

@zhucaoxiang
Copy link
Collaborator Author

@tmqian You are running my fixed version on Eddy. I will try to push it back to the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants