Skip to content

HWPH deleting memory #144

@galanCA

Description

@galanCA

When performing the nSubhrTicks experiment, I encounter errors on a few runs. These runs seem to be random, and the error is that hpwh is trying to access deleted data. Using visual studio debugger, we found that in line 2949 of hpwh.cc hpwh is trying to access hpwhVerbosity, but all the data inside does not exist. We suspect that at some point, hpwh was deleted but did not set the pointer to NULL. Could you please look into this?

The subHrTicks were the error occurred were the following: 9, 18, 21, 36, 39, 42, 49, 55. These correspond to a timestep of 6.666666666666667, 3.3333333333333335, 2.857142857142857, 1.6666666666666667, 1.5384615384615385, 1.4285714285714286, 1.2244897959183674, 1.0909090909090908 in minutes.

My debugging efforts were mostly focused on tick number 42, but the file can be modified to test any of the subHrTicks. Please find the CSE file attached to this issue, and it can be run using this branch.
Uploading 3BR_2022-HPWH-CZ12 - Prop_42_1.zip…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions