Memory leak in mshift.c
Created an attachment (id=306)
Example files to trigger crash
There seems to be some memory leak problems in rm_pbc that occur in m_shift. I have been able to trigger the odd behaviour by declaring a few ints in my analysis program.
The program included is an early development version which contains many important bugs in the analysis phase; however I include this since it is a lot simpler than the current (working) version.
gcc -o bondana-works -lm -lmd -lgmx -Wall -g bondanalyze-gmx-works.c
gcc -o bondana -lm -lmd -lgmx -Wall -g bondanalyze-gmx.c
and run with
./bondana -f confout.gro -s ajo.tpr
(gro and tpr files included in attachment)
Program received signal SIGSEGV, Segmentation fault.
mk_graph_ilist (fplog=<value optimized out>, ilist=<value optimized out>, at_start=<value optimized out>, at_end=<value optimized out>, bShakeOnly=<value optimized out>,
bSettle=<value optimized out>, g=<value optimized out>) at ../../../src/gmxlib/mshift.c:227
#3 Updated by Jussi Lehtola almost 12 years ago
Further info: the system is 64-bit with 4GB of memory.