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

Fix a valgrind uninitialized conditional error in cosp #101

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jgfouca
Copy link
Contributor

@jgfouca jgfouca commented Sep 10, 2024

The modified line was causing this error:
==19971== Conditional jump or move depends on uninitialised value(s)
==19971== at 0xA47583: __mod_cosp_MOD_cosp_simulator (cosp.F90:502)

... when cospOUT%isccp_meantb is not allocated. I noticed all surrounding accesses of members of cospOUT were guarded by association checks, so I added that check.

The modified line was causing this error:
==19971== Conditional jump or move depends on uninitialised value(s)
==19971==    at 0xA47583: __mod_cosp_MOD_cosp_simulator (cosp.F90:502)

... when cospOUT%isccp_meantb is not allocated. I noticed all surrounding
accesses of members of cospOUT were guarded by association checks, so I
added that check.
@jgfouca
Copy link
Contributor Author

jgfouca commented Sep 10, 2024

@brhillman , @bartgol

@alejandrobodas alejandrobodas self-assigned this Sep 17, 2024
@alejandrobodas
Copy link
Collaborator

@jgfouca thanks for your contribution!
The errors in the intel compiler tests have been fixed in PR #100, so merging this change despite the unsuccessful checks.

@alejandrobodas alejandrobodas merged commit 5056a99 into CFMIP:master Sep 17, 2024
3 of 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.

3 participants