-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GFN-FF runs into a segfault #849
Comments
Hi @BuggsBuster, Lines 1924 to 1933 in 3f25dfd
Looking at the code, in your example of an Acetylene molecule, the if statement would never trigger, leading to uninitialized jj and kk variables, which is most likely the error source, when they are used here:Lines 1935 to 1936 in 3f25dfd
We should probably just break the subroutine, when C2 and C3 can not be found, but I will let the Force Field professionals decide ;). @Thomas3R, can you take a look at this? |
Thanks for the detailed bug report! Though I could not replicate the bug, I agree with Marcel and think merge #854 should resolve this issue. Please open a new issue if your problem persists. |
Resolves grimme-lab#849 Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
Describe the bug
A clear and concise description of what the bug is.
Using the latest stable XTB version 6.6.1 I run into a segfault when performing a single point calculation on our cluster using GFN-FF for either of the two structures attached.
Running the same jobs on my personal laptop, I just get a warning instead of the segfault:
When I rerun these job on my laptop in the same folder, XTB is able to read the topology file produced in the first iteration.
In the attached files, I piped stdout and stderr into the respective
res.out
files.To Reproduce
Steps to reproduce the behaviour:
xtb inp.xyz --gfnff --verbose
xtb
with (all the options here)xtb
with your options and the--verbose
flagPlease provide all input and output file such that we confirm your report.
Expected behaviour
A clear and concise description of what you expected to happen.
A single point calculation without any segfaults nor any warnings.
Additional context
Add any other context about the problem here.
Based on a rough analysis, I assume the bug originates from the following code snippet obtained from the
specialTorsList
procedure contained ingfnff_ini.f90
:The variables
jj
andkk
are declared, but not initialized at the beginning. I assume that the two if statements, that are meant to assign values tojj
andkk
, are never entered for the given examples, leaving the two variables uninitialized. Thus, in the last if statement,jj
andkk
end up with values beyond the size of the arraystopo%hyb
andmol%at
, resulting in the segfault.Can you confirm the issue?
xtb661_issue.zip
The text was updated successfully, but these errors were encountered: