Memory leak, possibly in the core model?

Project:NAADSM
Version:3.2.17
Component:Code
Category:bug report
Priority:high
Assigned:unassigned
Status:active

A user reported what looks like a memory leak in NAADSM 3.2. In a test run on Windows, the scenario consumed 76 MB of RAM at the start of the first iteration. By the end of the first iteration, 137 MB of RAM were used. At the start of iteration 2, 137 MB of RAM were still in use by the application. I would have expected a considerable drop in memory usage when the second iteration started.

I have run the scenario with EurekaLog (the Delphi/Windows equivalent of Electric Fence) to check for memory leaks in the GUI. None were found.

It is likely that the same problem occurs in NAADSM 4.

Description
AttachmentSize
KSv13ID143.mdb4.01 MB

Comments

#1

Title:Memory leak, probably in the core model?» Memory leak, possibly in the core model?

#2

The specific error message reported is "gpc malloc failure: edge table creation". It occurs in the PC version as well as on SharcNet in the supercomputer version.

The scenario in the attached ZIP file apparently causes the problem to occur on occasion.

AttachmentSize
mallocProblemIn3_2.zip 1.18 MB