[Pw_forum] example09 segfault - ramtns used but not allocated in dynmatrix.f90

Jean-Roch Huntzinger jean-roch.huntzinger at univ-montp2.fr
Mon Dec 12 10:02:27 CET 2011


Dear all,

The attached patch solves a segfault in example09 on 
qe 4.3.2 compiled with gfortran 4.5.3 [or equally with 4.5.0 or 4.6.2] :
running normal mode calculation for CH4..../run_example: line 226:  4939
Segmentation fault      (core dumped) $PH_COMMAND < ch4.nm.in > ch4.nm.out

Using gdb shows that lraman was false;
in this case ramtns is never allocated,
hence the evaluation of the expression ramtns*omega/fpi*convfact
failed during the call to write_dyn_mat_header, line 152 of dynmatrix.f90.

The userguide warns about segfaults, 
but here it does not sound like a compiler bug.
Is this correct ? Should I file a bug report ?

Jean-Roch Huntzinger
-- 
L2C/SMC UMR 5221 - Université Montpellier 2, CNRS - France
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dynmatrix.f90.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20111212/7cfcbd72/attachment.bin>


More information about the users mailing list