Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • TTool TTool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • mbe-tools
  • TToolTTool
  • Merge requests
  • !366

Closed
Created Nov 22, 2020 by Le Van Truong@le.truongDeveloper
  • Report abuse
Report abuse

Fix memory leak problem

  • Overview 0
  • Commits 2
  • Changes 6

I have just fixed the memory leak problems showed by valgrind. Here are some notes:

  • To run valgrind efficiently we need to compile the simulator with "-Wall -ggdb3" option.
  • Two mains issues detected by valgrind were:
    • "definitely lost": due to not freed variables.
    • "Conditional jump or move depends on uninitialised value(s)": due to not initialed variables.
  • I have already find all possible variables that can lead to the "definitely lost" and freed it, and I also assigned the initial value to the variables which need it.
  • Now your "DSD.xml" can run without error detected by valgrind. I have also run valgrind with a lot of models to make sure no more memory leak issues could happen. After this merge, if your problem still occur I guess the main issue come from the size of memory chunk for transaction allocation (it is now 8000000 bytes ~= 8 Mbs for each transaction).
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: revert-883077ef