Skip to content

fixed segfault caused by closed ANS file#64

Merged
zchlrnr merged 1 commit intomainfrom
gpforce_ans_bug
Apr 12, 2024
Merged

fixed segfault caused by closed ANS file#64
zchlrnr merged 1 commit intomainfrom
gpforce_ans_bug

Conversation

@SteveDoyle2
Copy link
Copy Markdown
Collaborator

@SteveDoyle2 SteveDoyle2 commented Apr 8, 2024

GPFORCE has a flush to the ANS file, so if ANS is closed, the code will fatal.

We should also add some all_element tests that don't use the ANS file.

fixes #65

@SteveDoyle2
Copy link
Copy Markdown
Collaborator Author

@Bruno02468 I guess by review, I mean, ready to merge

Copy link
Copy Markdown
Collaborator

@zchlrnr zchlrnr left a comment

Choose a reason for hiding this comment

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

All that appears to change is the removal of a premature flush command
that looks like it should have no side effects aside from checks for if files are opened

Unsure what does that in a relevant place post link 9, okay to proceed at risk

@zchlrnr zchlrnr merged commit 2275d20 into main Apr 12, 2024
@SteveDoyle2 SteveDoyle2 deleted the gpforce_ans_bug branch May 6, 2024 18:24
@SteveDoyle2
Copy link
Copy Markdown
Collaborator Author

To be very clear, you can't flush a closed file. It causes a segfault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working segfault

Projects

None yet

Development

Successfully merging this pull request may close these issues.

segfault happens when writing GPFORCE and ANS file is not opened

2 participants