Skip to content

qh2o in GEOS-Chem chemistry.F90 should be sized pcols - stack corruption #1604

Description

@jimmielin

What happened?

There is a deterministic read beyond bounds in modal_aero::aero_model_gasaerexch due to passing in a qh2o sized ncol but the underlying newnuc in gasaerexch expects pcols sized arrays

What are the steps to reproduce the bug?

Observe answer differences if you change qh2o(state%ncol declaration to qh2o(pcols. These answer differences disappear if newnuc is commented out, isolating the root cause.

What CAM tag were you using?

cam6_4_187

What machine were you running CAM on?

CISL machine (e.g. derecho)

What compiler were you using?

Intel

Path to a case directory, if applicable

No response

Will you be addressing this bug yourself?

Yes

Extra info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions