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

Workarounds for stack overflows on Windows when using ifort #577

Merged

Conversation

robertrueger
Copy link

We have noticed a couple of issues with large temporary strings inside of json-fortran causing stackoverflows on Windows builds with ifort. Basically all places where a string that could be very large (e.g. the entire JSON representation as one string) ends up in a temporary could overflow the stack.

I have workarounds in two places in this pull request. For our usage, that resolved the issues on Windows builds with iforts. I did not go through the rest of the codebase to scan for similar places that might be prone to overflowing.

@jacobwilliams
Copy link
Owner

Thanks! I'll take a look (and also see if I see any other places this might be an issue)

@jacobwilliams jacobwilliams merged commit cde2620 into jacobwilliams:master Aug 4, 2024
5 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.

2 participants