Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GROMACS GROMACS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 314
    • Issues 314
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 92
    • Merge requests 92
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GROMACS
  • GROMACSGROMACS
  • Issues
  • #2781
Closed
Open
Issue created Nov 29, 2018 by Paul Bauer@acmnpvMaintainer

mdrun 2018 using SD integrator segfaults when attempting to read from checkpoint file - Redmine #2781

Archive from user: Carsten Kutzner

We have a small mixture system of water/alkanol using the SD integrator. It runs fine and stable in v. 2018, however it immediately segfaults when trying to restart from .cpt.

Can be reproduced with the attached .tpr:

gmx mdrun -nt 1 -s md.tpr -nsteps 10
gmx mdrun -nt 1 -s md.tpr -cpi

The segv happens in restore_energyhistory_from_state() where the program accesses enerhist->…, however enerhist is a null pointer.

(from redmine: issue id 2781, created on 2018-11-29 by gmxdefault, closed on 2018-12-03)

  • Changesets:
    • Revision d5972f77 by Paul Bauer on 2018-11-29T14:30:42Z:
Fix energy history reading

The energy history could be read as a nullptr from a checkpoint file,
leading to issues when trying to restart a simulation. Fixed the logic
issue and added an assertion to catch it in the future.

Also removed redundant comparisons to nullptr.

Separate commit on 2018 as per #2770.

Refs #2781

Change-Id: Ic584dc92c110065c1650cc1ab0d7ff0a8960fb3a
  • Revision ad77000a by Paul Bauer on 2018-12-03T09:02:29Z:
Fix energy history reading

The energy history could be read as a nullptr from a checkpoint file,
leading to issues when trying to restart a simulation. Fixed the logic
issue and added an assertion to catch it in the future.

Also removed redundant comparisons to nullptr.

Fixes #2781

Change-Id: I99ce1a2b932046cab6918ec24b267fc8ff3850ad
  • Uploads:
    • md.tpr
Assignee
Assign to
Time tracking