Project

General

Profile

Bug #466

g_bond segfaults when called with no arguments or required files only

Added by Peter Kasson over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
analysis tools
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

g_hbond segfaults on a strcasecmp() call; I'm guessing that one of the default arguments isn't treated properly

Tested on OS/X 10.4, 10.5, 10.6.

The two calls directly to strcasecmp() in gmx_hbond.c are:
/* NN-loop? If so, what estimator to use ?*/
NN = 1;
while (NN < NN_NR && strcasecmp(NNtype0, NNtype[NN])!=0)
NN++;
if (NN == NN_NR)
gmx_fatal(FARGS, "Invalid NN-loop type.");

bNN = FALSE;
for (i=2; bNN==FALSE && i&lt;NN_NR; i++)
bNN = bNN || NN == i;
if (NN > NN_NONE && bMerge)
bMerge = FALSE;
/* geminate recombination? If so, which flavor? */
gemmode = 1;
while (gemmode < gemNR && strcasecmp(gemType[0], gemType[gemmode])!=0)
gemmode++;
if (gemmode == gemNR)
gmx_fatal(FARGS, "Invalid recombination type.");

History

#1 Updated by David van der Spoel over 9 years ago

Fixed bug 466 by commenting out the offending lines, which were part of
code under development.

Also available in: Atom PDF