# Segmentation fault -- no error message

**URL:** https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548
**Category:** User discussions
**Tags:** mdrun
**Created:** [January 26, 2022, 9:25pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548 "2022-01-26T21:25:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jschapman](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jschapman](https://gromacs.bioexcel.eu/u/jschapman)
#### Post date: [January 26, 2022, 9:25pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/1 "2022-01-26T21:25:16Z")

</div>

GROMACS version: 2021.4  
GROMACS modification: /No

Hi all,

I’m trying to simulate a myeloperoxidase protein monomer in water at ambient conditions, but I’m continuing to run into an problem that I don’t know how to solve. I’ve taken the crystal structure (3F9P) from RCSB and parameterized the metal-containing center using MCPB.py, but I’m unable to energy minimize my structure. Specifically, GROMACS returns the following output when I use mdrun for an energy minimization (steepest descent, dt = 1 fs):

Steepest Descents:  
Tolerance (Fmax) = 1.00000e+03  
Number of steps = 1000  
/var/spool/torque/mom\_priv/jobs/637814.trcis002.hpc.wvu.edu.SC: line 36: 11726 Segmentation fault (core dumped) gmx mdrun -deffnm minim -ntmpi 1 -ntomp 1

At this point, the energy minimization does not run (the output trajectory file is empty), and there is no fatal error returned from the grompp command. I would expect to get LINCS warnings at the first time step if this issue arose from an unstable starting configuration, but I have visualized my input structure file anyway without finding any obvious problems. The size of my simulation is reasonable (46,000 atoms). I’ve also attempted running the energy minimization using several different versions of GROMACS (2016.6, 5.1.5, and 2021.4), but the issue persists.

I would appreciate any insight into what could be causing this problem, especially because I’m not getting an error message from GROMACS (so could be machine related). I can provide any additional information (pdb file, mdp options, topology files, gmx command line inputs) as needed.

Best,  
Jordan Chapman  
Graduate research assistant  
West Virginia University

---

<div class="post-metadata">

### Author: ![ebriand](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/ebriand/32/2314_2.png) [@ebriand](https://gromacs.bioexcel.eu/u/ebriand)
#### Post date: [January 27, 2022, 8:14am UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/2 "2022-01-27T08:14:13Z")

</div>

If you can provide such problematic tpr file and/or the .top/.gro and command line you used to generate it, it would help diagnosing the problem.

---

<div class="post-metadata">

### Author: ![jschapman](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jschapman](https://gromacs.bioexcel.eu/u/jschapman)
#### Post date: [January 28, 2022, 5:30pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/3 "2022-01-28T17:30:26Z")

</div>

Sure thing. I’ve included a link below containing the input structure file, molecular and system topology files, the tpr file generated, and the MD options specified for the energy minimization. The command lines I used are:

gmx grompp -f minim.mdp -c initial\_config.gro -r initial\_config.gro -p topol.top -o minim.tpr  
gmx mdrun -deffnm minim -ntmpi 1 -ntomp 1

[https://drive.google.com/drive/folders/1A\_8Ck6ya59ai0BNPpPYVYv\_wEjPSFzNN]

Let me know if you need any additional information.

---

<div class="post-metadata">

### Author: ![jschapman](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jschapman](https://gromacs.bioexcel.eu/u/jschapman)
#### Post date: [January 28, 2022, 5:32pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/4 "2022-01-28T17:32:53Z")

</div>

Sorry, this link should work:

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1A_8Ck6ya59ai0BNPpPYVYv_wEjPSFzNN&followup=https:%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1A_8Ck6ya59ai0BNPpPYVYv_wEjPSFzNN)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

---

<div class="post-metadata">

### Author: ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)
#### Post date: [January 28, 2022, 6:49pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/5 "2022-01-28T18:49:21Z")

</div>

The files are inaccessible and says you need to provide permission to access them.

---

<div class="post-metadata">

### Author: ![jschapman](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jschapman](https://gromacs.bioexcel.eu/u/jschapman)
#### Post date: [January 28, 2022, 6:58pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/6 "2022-01-28T18:58:34Z")

</div>

Does this link work? Sorry, don’t use Google Drive often.

[https://drive.google.com/drive/folders/1A\_8Ck6ya59ai0BNPpPYVYv\_wEjPSFzNN?usp=sharing](https://drive.google.com/drive/folders/1A_8Ck6ya59ai0BNPpPYVYv_wEjPSFzNN?usp=sharing)

---

<div class="post-metadata">

### Author: ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)
#### Post date: [January 28, 2022, 7:10pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/7 "2022-01-28T19:10:51Z")

</div>

Yes, that works.

Have you tried minimizing without the metal site? Immediate seg fault usually means infinite energy, so the first troubleshooting step I would take is to remove anything nonstandard to make sure the rest of the system is sensible, and then you know where the issue is.

---

<div class="post-metadata">

### Author: ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)
#### Post date: [January 28, 2022, 7:14pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/8 "2022-01-28T19:14:55Z")

</div>

```
Steepest Descents:
   Tolerance (Fmax) = 1.00000e+03
   Number of steps = 1000
Step= 0, Dmax= 1.0e-02 nm, Epot= 3.92826e+34 Fmax= inf, atom= 9313
```

I get a seg fault, but it gives the reason why - you have something physically impossible near atom 9313. You’ve got a lot of unusual species in this system, many small molecules bound, and the box appears to barely fit the protein, so I’d suggest backing up and working first with only the protein in a suitable box of water, then slowly incorporating the nonstandard species (there are some sugars, an acetate, heme, etc) to see where the problem is.

Update: look at the geometry of the NAG residue. It’s completely twisted on itself. There is no hope of minimization resolving it. Zooming in on atom 9313 makes this apparent.

---

<div class="post-metadata">

### Author: ![jschapman](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jschapman](https://gromacs.bioexcel.eu/u/jschapman)
#### Post date: [January 31, 2022, 4:49pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/9 "2022-01-31T16:49:25Z")

</div>

I suspected that any instability was coming from one of the nonstandard residues, but it was difficult to diagnose without the error message. Thank you for your help!

---

<div class="post-metadata">

### Author: ![Aditya999](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@Aditya999](https://gromacs.bioexcel.eu/u/Aditya999)
#### Post date: [March 30, 2023, 6:35pm UTC](https://gromacs.bioexcel.eu/t/segmentation-fault-no-error-message/3548/10 "2023-03-30T18:35:14Z")

</div>

I have also observed a similar error but I have noticed that it occurs only when I only use large ligands. What could be the issue  
Regards
