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

[Bug fix] SegFault when a variable that is part of a derived expression doesn't have data #4394

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

anagainaru
Copy link
Contributor

We were checking if a variable was defined before allowing the derived variables to be defined but we were not checking correctly if there is data written in a given step for all the variables needed by the derived expression. Before this fix the code was seg faulting.

I added a test for what happens when we try to define a derived variable before we define the component variables and what happens when there's no data to compute the derived variable.

@anagainaru anagainaru added this to the v2.11.0 milestone Nov 6, 2024
Copy link
Member

@eisenhauer eisenhauer left a comment

Choose a reason for hiding this comment

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

Straightforward enough, I'll approve after it gets through formatting and CI.

@eisenhauer eisenhauer merged commit fdda019 into ornladios:master Nov 7, 2024
38 checks passed
@anagainaru anagainaru deleted the derivedNoData branch November 8, 2024 01:06
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