Project

General

Profile

Bug #218

segmentation fault in g_rmsf -aniso

Added by Daniel Seeliger about 11 years ago. Updated about 11 years ago.

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

Description

When using g_rmsf -aniso I get (not always surprisingly) a segmentation fault.
I guess this is due to line 359 in gmx_rmsf.c where the memory for U is released.

359: sfree(U);

In line 367/368 this array is used again.

367: for(i=0; i<isize; i++)
368: rmsf[i] = U[i][XX*DIM + XX] + U[i][YY*DIM + YY] + U[i][ZZ*DIM + ZZ];

When commenting out line 359 it works fine.

History

#1 Updated by Erik Lindahl about 11 years ago

Fixed in the 4.0 branch.

Also available in: Atom PDF